diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2012-07-24 10:33:12 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-07-24 10:33:12 -0400 |
commit | e5766aea5b9b7519654261c27b639f567b5415b4 (patch) | |
tree | a4c9cab5c07e5656d0199871e348765fb8a0269d /arch/mips/bcm63xx/boards | |
parent | 288752a8aa1be6cf89ee5066435a617efd97fb86 (diff) |
MIPS: BCM63XX: Add basic BCM6328 support
This includes CPU speed, memory size detection and working UART, but
lacking the appropriate drivers, no support for attached flash.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: Maxime Bizon <mbizon@freebox.fr>
Cc: Florian Fainelli <florian@openwrt.org>
Cc: Kevin Cernekee <cernekee@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/3951/
Reviewed-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/bcm63xx/boards')
-rw-r--r-- | arch/mips/bcm63xx/boards/board_bcm963xx.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c index bdfbdf95f000..be7498a2a923 100644 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c | |||
@@ -708,9 +708,15 @@ void __init board_prom_init(void) | |||
708 | char cfe_version[32]; | 708 | char cfe_version[32]; |
709 | u32 val; | 709 | u32 val; |
710 | 710 | ||
711 | /* read base address of boot chip select (0) */ | 711 | /* read base address of boot chip select (0) |
712 | val = bcm_mpi_readl(MPI_CSBASE_REG(0)); | 712 | * 6328 does not have MPI but boots from a fixed address |
713 | val &= MPI_CSBASE_BASE_MASK; | 713 | */ |
714 | if (BCMCPU_IS_6328()) | ||
715 | val = 0x18000000; | ||
716 | else { | ||
717 | val = bcm_mpi_readl(MPI_CSBASE_REG(0)); | ||
718 | val &= MPI_CSBASE_BASE_MASK; | ||
719 | } | ||
714 | boot_addr = (u8 *)KSEG1ADDR(val); | 720 | boot_addr = (u8 *)KSEG1ADDR(val); |
715 | 721 | ||
716 | /* dump cfe version */ | 722 | /* dump cfe version */ |