mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-27 16:21:06 +02:00
[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
This commit is contained in:
parent
dde3611c93
commit
f8da08ef39
@ -324,7 +324,7 @@ void __init board_prom_init(void)
|
|||||||
u32 val;
|
u32 val;
|
||||||
|
|
||||||
/* read base address of boot chip select (0)
|
/* 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 */
|
* MIPS Flash address */
|
||||||
if (BCMCPU_IS_6338() || BCMCPU_IS_6345())
|
if (BCMCPU_IS_6338() || BCMCPU_IS_6345())
|
||||||
val = 0x1fc00000;
|
val = 0x1fc00000;
|
||||||
@ -554,8 +554,12 @@ int __init board_register_devices(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* read base address of boot chip select (0) */
|
/* read base address of boot chip select (0) */
|
||||||
val = bcm_mpi_readl(MPI_CSBASE_REG(0));
|
if (BCMCPU_IS_6338() || BCMCPU_IS_6345())
|
||||||
val &= MPI_CSBASE_BASE_MASK;
|
val = 0x1fc0000;
|
||||||
|
else {
|
||||||
|
val = bcm_mpi_readl(MPI_CSBASE_REG(0));
|
||||||
|
val &= MPI_CSBASE_BASE_MASK;
|
||||||
|
}
|
||||||
mtd_resources[0].start = val;
|
mtd_resources[0].start = val;
|
||||||
mtd_resources[0].end = 0x1FFFFFFF;
|
mtd_resources[0].end = 0x1FFFFFFF;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user