]> git.sur5r.net Git - u-boot/blobdiff - board/renesas/salvator-x/salvator-x.c
ARM: rmobile: Zap rmobile_sysinfo on Gen3
[u-boot] / board / renesas / salvator-x / salvator-x.c
index debd1db7214973ad607c77323b911560c1313f0e..f21360c4c5287b4f10f6deafe5f8c2a5da5a3a17 100644 (file)
@@ -79,17 +79,19 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
+       u32 cpu_type = rmobile_get_cpu_type();
+
        /* adress of boot parameters */
        gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
 
-#if defined(CONFIG_R8A7795)
-       /* GSX: force power and clock supply */
-       writel(0x0000001F, SYSC_PWRONCR2);
-       while (readl(SYSC_PWRSR2) != 0x000003E0)
-               mdelay(20);
+       if (cpu_type == RMOBILE_CPU_TYPE_R8A7795) {
+               /* GSX: force power and clock supply */
+               writel(0x0000001F, SYSC_PWRONCR2);
+               while (readl(SYSC_PWRSR2) != 0x000003E0)
+                       mdelay(20);
 
-       mstp_clrbits_le32(MSTPSR1, SMSTPCR1, GSX_MSTP112);
-#endif
+               mstp_clrbits_le32(MSTPSR1, SMSTPCR1, GSX_MSTP112);
+       }
 
        /* USB1 pull-up */
        setbits_le32(PFC_PUEN6, PUEN_USB1_OVC | PUEN_USB1_PWEN);
@@ -140,10 +142,6 @@ int dram_init_banksize(void)
        return 0;
 }
 
-const struct rmobile_sysinfo sysinfo = {
-       CONFIG_RCAR_BOARD_STRING
-};
-
 #define RST_BASE       0xE6160000
 #define RST_CA57RESCNT (RST_BASE + 0x40)
 #define RST_CA53RESCNT (RST_BASE + 0x44)