ppc4xx: Correctly pass phyiscal FLASH base address into dtb
authorStefan Roese <sr@denx.de>
Tue, 25 Mar 2008 16:51:13 +0000 (17:51 +0100)
committerStefan Roese <sr@denx.de>
Thu, 27 Mar 2008 08:54:41 +0000 (09:54 +0100)
The routine ft_board_setup() configures the EBC NOR mappings for the
Linux physmap_of driver. Since on 460EX/GT we remap the FLASH from
0x4.fc00.0000 to 0x4.cc00.0000 because of the max. 16MByte boot-CS
problem, we need to pass the corrected address here too.

Signed-off-by: Stefan Roese <sr@denx.de>
board/amcc/canyonlands/canyonlands.c

index fa3ae85ead202459aad671aae4b5c505b2f5f22a..8cc6a89fac1df564d53dfcd1933ffb7621436593 100644 (file)
@@ -414,7 +414,7 @@ void ft_board_setup(void *blob, bd_t *bd)
        /* Fixup NOR mapping */
        val[0] = 0;                             /* chip select number */
        val[1] = 0;                             /* always 0 */
-       val[2] = gd->bd->bi_flashstart;
+       val[2] = CFG_FLASH_BASE_PHYS_L;         /* we fixed up this address */
        val[3] = gd->bd->bi_flashsize;
        rc = fdt_find_and_setprop(blob, "/plb/opb/ebc", "ranges",
                                  val, sizeof(val), 1);