diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-06-27 18:58:00 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-06-27 18:58:00 +0000 |
commit | d0c0b1b484d5486d79dcd46b7f0774cc2dd318e4 (patch) | |
tree | 201f35aa228d7b8faa9efcf97735803f75a9f914 /target/linux/brcm63xx/files | |
parent | 53035bf4e2e71d6e16aee62a96d005335fd0fd12 (diff) | |
download | master-187ad058-d0c0b1b484d5486d79dcd46b7f0774cc2dd318e4.tar.gz master-187ad058-d0c0b1b484d5486d79dcd46b7f0774cc2dd318e4.tar.bz2 master-187ad058-d0c0b1b484d5486d79dcd46b7f0774cc2dd318e4.zip |
[brcm63xx] fix the flash address comment and register the flash device again with its proper physical address on 6338/6345
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16587 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/files')
-rw-r--r-- | target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c index 98c9005940..c41951b988 100644 --- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c +++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c @@ -324,7 +324,7 @@ void __init board_prom_init(void) u32 val; /* read base address of boot chip select (0) - * 6338 does not have MPI but boots from standard + * 6338/6345 does not have MPI but boots from standard * MIPS Flash address */ if (BCMCPU_IS_6338() || BCMCPU_IS_6345()) val = 0x1fc00000; @@ -554,8 +554,12 @@ int __init board_register_devices(void) #endif /* read base address of boot chip select (0) */ - val = bcm_mpi_readl(MPI_CSBASE_REG(0)); - val &= MPI_CSBASE_BASE_MASK; + if (BCMCPU_IS_6338() || BCMCPU_IS_6345()) + val = 0x1fc0000; + else { + val = bcm_mpi_readl(MPI_CSBASE_REG(0)); + val &= MPI_CSBASE_BASE_MASK; + } mtd_resources[0].start = val; mtd_resources[0].end = 0x1FFFFFFF; |