MIPS: Alchemy: merge PB1100/1500 support into DB1000 code.
PATCH 1/1 MIPS: Alchemy: merge PB1100/1500 support into DB1000 code.
The PB1100/1500 are similar to their DB-cousins but with a few more devices on the bus.
This patch adds PB1100/1500 support to the existing DB1100/1500 code.
---
Tested only on DB1100 and DB1500 as I don't have any PB1xxx boards. I didn't copy the custom board config from the PB1x sources since newer versions of YAMON already take care of it. I figure the code was added since the original developers only had very early yamon code on their boards.
Applies on top of the pb1550 merge patch.
arch/mips/alchemy/Kconfig | 19 +-- arch/mips/alchemy/devboards/Makefile | 2 - arch/mips/alchemy/devboards/db1000.c | 120 ++++++++++++++----- arch/mips/alchemy/devboards/pb1100.c | 167 -------------------------- arch/mips/alchemy/devboards/pb1500.c | 198 ------------------------------- arch/mips/configs/pb1100_defconfig | 124 ------------------- arch/mips/configs/pb1500_defconfig | 141 ---------------------- arch/mips/include/asm/mach-db1x00/bcsr.h | 2 + 8 files changed, 95 insertions(+), 678 deletions(-) delete mode 100644 arch/mips/alchemy/devboards/pb1100.c delete mode 100644 arch/mips/alchemy/devboards/pb1500.c delete mode 100644 arch/mips/configs/pb1100_defconfig delete mode 100644 arch/mips/configs/pb1500_defconfig
arch/mips/alchemy/Kconfig +1 -18
@@ -27,7 +27,7 @@ config MIPS_MTX1 select SYS_HAS_EARLY_PRINTK config MIPS_DB1000 - bool "Alchemy DB1000/DB1500/DB1100 boards" + bool "Alchemy DB1000/DB1500/DB1100 PB1500/1100 boards" select ALCHEMY_GPIOINT_AU1000 select DMA_NONCOHERENT select HW_HAS_PCI
@@ -45,23 +45,6 @@ config MIPS_DB1235 select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_HAS_EARLY_PRINTK -config MIPS_PB1100 - bool "Alchemy PB1100 board" - select ALCHEMY_GPIOINT_AU1000 - select DMA_NONCOHERENT - select HW_HAS_PCI - select SWAP_IO_SPACE - select SYS_SUPPORTS_LITTLE_ENDIAN - select SYS_HAS_EARLY_PRINTK - -config MIPS_PB1500 - bool "Alchemy PB1500 board" - select ALCHEMY_GPIOINT_AU1000 - select DMA_NONCOHERENT - select HW_HAS_PCI - select SYS_SUPPORTS_LITTLE_ENDIAN - select SYS_HAS_EARLY_PRINTK - config MIPS_XXS1500 bool "MyCable XXS1500 board" select DMA_NONCOHERENT
arch/mips/alchemy/devboards/Makefile +0 -2
@@ -4,7 +4,5 @@ obj-y += bcsr.o platform.o obj-$(CONFIG_PM) += pm.o -obj-$(CONFIG_MIPS_PB1100) += pb1100.o -obj-$(CONFIG_MIPS_PB1500) += pb1500.o obj-$(CONFIG_MIPS_DB1000) += db1000.o obj-$(CONFIG_MIPS_DB1235) += db1235.o db1200.o db1300.o db1550.o
arch/mips/alchemy/devboards/db1000.c +92 -28
210 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1100.c deleted +0 -167
167 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1500.c deleted +0 -198
198 lines not on this page · raw message
arch/mips/configs/pb1100_defconfig deleted +0 -124
124 lines not on this page · raw message
arch/mips/configs/pb1500_defconfig deleted +0 -141
141 lines not on this page · raw message
arch/mips/include/asm/mach-db1x00/bcsr.h +2 -0
@@ -162,6 +162,8 @@ enum bcsr_whoami_boards {#define BCSR_BOARD_PCIEXTARB 0x0200#define BCSR_BOARD_GPIO200RST 0x0400#define BCSR_BOARD_PCICLKOUT 0x0800 +#define BCSR_BOARD_PB1100_SD0PWR 0x0400 +#define BCSR_BOARD_PB1100_SD1PWR 0x0800#define BCSR_BOARD_PCICFG 0x1000#define BCSR_BOARD_SPISEL 0x2000/* PB/DB1550 */ #define BCSR_BOARD_SD0WP 0x4000/* DB1100 */
Signature · 1 line
1.7.12
Thanks, queued.
I love this patch series. So many fewer defconfigs to test :-)
Ralf
Quoted 3 lines · Ralf Baechle
Thanks, queued.
I love this patch series. So many fewer defconfigs to test :-)
Thank you, that was one of my main motivations.
Manuel