sunxi: Enable non-secure access to RTC on sun6i (A31s)
[oweals/u-boot.git] / arch / arm / cpu / armv7 / sunxi / dram_sun6i.c
index 05f8e7638f7d8655e978c64794ecad994b7f9239..5dbbf6186fe6fe4f3dfa34ab2839bdd84c3f411c 100644 (file)
@@ -326,20 +326,6 @@ static void mctl_port_cfg(void)
        writel(0x00000307, &mctl_com->mbagcr[5]);
 }
 
-static bool mctl_mem_matches(u32 offset)
-{
-       const int match_count = 64;
-       int i, matches = 0;
-
-       for (i = 0; i < match_count; i++) {
-               if (readl(CONFIG_SYS_SDRAM_BASE + i * 4) ==
-                   readl(CONFIG_SYS_SDRAM_BASE + offset + i * 4))
-                       matches++;
-       }
-
-       return matches == match_count;
-}
-
 unsigned long sunxi_dram_init(void)
 {
        struct sunxi_mctl_com_reg * const mctl_com =