]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
m68k: mcf5445x: allow CS0 to be undefined
authorAngelo Dureghello <angelo@sysam.it>
Sun, 14 May 2017 22:17:48 +0000 (00:17 +0200)
committerAngelo Dureghello <angelo@sysam.it>
Thu, 17 Aug 2017 23:26:39 +0000 (01:26 +0200)
On some boards, CONFIG_SYS_CS0_BASE can be undefined, since
CS0 is not connected to any signal.

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
arch/m68k/cpu/mcf5445x/cpu_init.c
arch/m68k/cpu/mcf5445x/start.S

index b4a8eefa94d9af90e3b8a7d37745f0ded520f8cd..5d2b116be1d9f2477787ff0f0ce8013fd6396457 100644 (file)
@@ -205,6 +205,7 @@ void cpu_init_f(void)
        /* FlexBus Chipselect */
        init_fbcs();
 
+#ifdef CONFIG_SYS_CS0_BASE
        /*
         * now the flash base address is no longer at 0 (Newer ColdFire family
         * boot at address 0 instead of 0xFFnn_nnnn). The vector table must
@@ -212,6 +213,7 @@ void cpu_init_f(void)
         */
        if (CONFIG_SYS_CS0_BASE != 0)
                setvbr(CONFIG_SYS_CS0_BASE);
+#endif
 
        icache_enable();
 }
index 41d9088b6afcdc4d10e74d7948eaa77ff5454c03..4c09489bcb73f4afb3303c7af9329a1f81bb06c1 100644 (file)
@@ -159,6 +159,7 @@ asm_dram_init:
        move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET), %sp
        clr.l   %sp@-
 
+#ifdef CONFIG_SYS_CS0_BASE
        /* Must disable global address */
        move.l  #0xFC008000, %a1
        move.l  #(CONFIG_SYS_CS0_BASE), (%a1)
@@ -166,6 +167,7 @@ asm_dram_init:
        move.l  #(CONFIG_SYS_CS0_CTRL), (%a1)
        move.l  #0xFC008004, %a1
        move.l  #(CONFIG_SYS_CS0_MASK), (%a1)
+#endif
 #endif /* CONFIG_CF_SBF */
 
 #ifdef CONFIG_MCF5441x
@@ -342,6 +344,7 @@ asm_nand_init:
        movec   %d0, %ACR2
        movec   %d0, %ACR3
 
+#ifdef CONFIG_SYS_CS0_BASE
        /* Must disable global address */
        move.l  #0xFC008000, %a1
        move.l  #(CONFIG_SYS_CS0_BASE), (%a1)
@@ -349,6 +352,7 @@ asm_nand_init:
        move.l  #(CONFIG_SYS_CS0_CTRL), (%a1)
        move.l  #0xFC008004, %a1
        move.l  #(CONFIG_SYS_CS0_MASK), (%a1)
+#endif
 
        /* NAND port configuration */
        move.l  #0xEC094048, %a1