Skip to content

Commit e7300d0

Browse files
mbizonfreeboxralfbaechle
authored andcommitted
MIPS: BCM63xx: Add support for the Broadcom BCM63xx family of SOCs.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr> Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 0de663e commit e7300d0

40 files changed

Lines changed: 5896 additions & 0 deletions

‎arch/mips/Kconfig‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,21 @@ config BCM47XX
8080
help
8181
Support for BCM47XX based boards
8282

83+
config BCM63XX
84+
bool "Broadcom BCM63XX based boards"
85+
select CEVT_R4K
86+
select CSRC_R4K
87+
select DMA_NONCOHERENT
88+
select IRQ_CPU
89+
select SYS_HAS_CPU_MIPS32_R1
90+
select SYS_SUPPORTS_32BIT_KERNEL
91+
select SYS_SUPPORTS_BIG_ENDIAN
92+
select SYS_HAS_EARLY_PRINTK
93+
select SWAP_IO_SPACE
94+
select ARCH_REQUIRE_GPIOLIB
95+
help
96+
Support for BCM63XX based boards
97+
8398
config MIPS_COBALT
8499
bool "Cobalt Server"
85100
select CEVT_R4K
@@ -645,6 +660,7 @@ endchoice
645660

646661
source "arch/mips/alchemy/Kconfig"
647662
source "arch/mips/basler/excite/Kconfig"
663+
source "arch/mips/bcm63xx/Kconfig"
648664
source "arch/mips/jazz/Kconfig"
649665
source "arch/mips/lasat/Kconfig"
650666
source "arch/mips/pmc-sierra/Kconfig"

‎arch/mips/Makefile‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,13 @@ core-$(CONFIG_BCM47XX) += arch/mips/bcm47xx/
564564
cflags-$(CONFIG_BCM47XX) += -I$(srctree)/arch/mips/include/asm/mach-bcm47xx
565565
load-$(CONFIG_BCM47XX) := 0xffffffff80001000
566566

567+
#
568+
# Broadcom BCM63XX boards
569+
#
570+
core-$(CONFIG_BCM63XX) += arch/mips/bcm63xx/
571+
cflags-$(CONFIG_BCM63XX) += -I$(srctree)/arch/mips/include/asm/mach-bcm63xx/
572+
load-$(CONFIG_BCM63XX) := 0xffffffff80010000
573+
567574
#
568575
# SNI RM
569576
#

‎arch/mips/bcm63xx/Kconfig‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
menu "CPU support"
2+
depends on BCM63XX
3+
4+
config BCM63XX_CPU_6338
5+
bool "support 6338 CPU"
6+
select HW_HAS_PCI
7+
select USB_ARCH_HAS_OHCI
8+
select USB_OHCI_BIG_ENDIAN_DESC
9+
select USB_OHCI_BIG_ENDIAN_MMIO
10+
11+
config BCM63XX_CPU_6345
12+
bool "support 6345 CPU"
13+
select USB_OHCI_BIG_ENDIAN_DESC
14+
select USB_OHCI_BIG_ENDIAN_MMIO
15+
16+
config BCM63XX_CPU_6348
17+
bool "support 6348 CPU"
18+
select HW_HAS_PCI
19+
20+
config BCM63XX_CPU_6358
21+
bool "support 6358 CPU"
22+
select HW_HAS_PCI
23+
endmenu
24+
25+
source "arch/mips/bcm63xx/boards/Kconfig"

‎arch/mips/bcm63xx/Makefile‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
obj-y += clk.o cpu.o cs.o gpio.o irq.o prom.o setup.o timer.o \
2+
dev-dsp.o
3+
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
4+
5+
obj-y += boards/
6+
7+
EXTRA_CFLAGS += -Werror

‎arch/mips/bcm63xx/boards/Kconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
choice
2+
prompt "Board support"
3+
depends on BCM63XX
4+
default BOARD_BCM963XX
5+
6+
config BOARD_BCM963XX
7+
bool "Generic Broadcom 963xx boards"
8+
select SSB
9+
help
10+
11+
endchoice

‎arch/mips/bcm63xx/boards/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
obj-$(CONFIG_BOARD_BCM963XX) += board_bcm963xx.o
2+
3+
EXTRA_CFLAGS += -Werror

0 commit comments

Comments
 (0)