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/dev-flash.c | |
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/dev-flash.c')
-rw-r--r-- | arch/mips/bcm63xx/dev-flash.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/bcm63xx/dev-flash.c b/arch/mips/bcm63xx/dev-flash.c index 1051faedab2d..58371c7deac2 100644 --- a/arch/mips/bcm63xx/dev-flash.c +++ b/arch/mips/bcm63xx/dev-flash.c | |||
@@ -60,6 +60,12 @@ static int __init bcm63xx_detect_flash_type(void) | |||
60 | u32 val; | 60 | u32 val; |
61 | 61 | ||
62 | switch (bcm63xx_get_cpu_id()) { | 62 | switch (bcm63xx_get_cpu_id()) { |
63 | case BCM6328_CPU_ID: | ||
64 | val = bcm_misc_readl(MISC_STRAPBUS_6328_REG); | ||
65 | if (val & STRAPBUS_6328_BOOT_SEL_SERIAL) | ||
66 | return BCM63XX_FLASH_TYPE_SERIAL; | ||
67 | else | ||
68 | return BCM63XX_FLASH_TYPE_NAND; | ||
63 | case BCM6338_CPU_ID: | 69 | case BCM6338_CPU_ID: |
64 | case BCM6345_CPU_ID: | 70 | case BCM6345_CPU_ID: |
65 | case BCM6348_CPU_ID: | 71 | case BCM6348_CPU_ID: |