MIPS: Alchemy board and driver updates
Subsystems (15)
cover MIPS: Alchemy board and driver updates
Here's a collection of patches to the Alchemy board and driver codebases I've been sitting on a while.
All apply against latest linus-git (as of 2011-11-01 1800Z) merged with Ralf's upstream-linus branch.
Overview:
#01-02 get rid of unused board code (PB1000, Bosporus/Mirage). I have no test
hardware; getting rid of Bosporus/Mirage makes it much easier to merge support for DB1000/1500/1100. I have datasheets for all three and can bring them back if desired, but I'd rather not if at all possible.
#03 db1200 irq code optimization
#04-05 Au1300/Db1300 support
#06 better db1550 support, like db1200 and db1300.
#07-08 board support code is (imo needlessly) scattered across multiple files.
these patches merge them into per-board files.
#09 au1200fb calls globally-visible functions to control panels. this patch
introduces platform data instead, because it's much nicer.
#10 pb1200 is just a db1200 with more mmc and camera sockets. this patch
implements board autodetection and setup for both to the db1200 code.
#11 db1000/1500/1100 are basically identical (plus PCI for db1500). after
applying this patch a kernel image can be built which runs on all three.
#12 add MMC support to the DB1100
#13 add the on-chip RTC device to all pb/db boards.
#14 convert au1550nd.c to a platform driver. I initially did this because
gen_nand didn't seem to work on the DB1550 until I realized YAMON did
not configure the NAND CS correctly (the original writers realized that
and had au1550nd.c correct that). After a YAMON update gen_nand works
for the DB1550, but since I have no PB1550 I opted to keep au1550nd.
#15 with the au1550nd.c conversion some headers have become obsolete.
#16 convert au1k_ir IRDA driver to platform_driver.
#17 add IrDA platform data for DB1000/1100 (necessary after #16).
#18 add ADS78xx touchscreen support to DB1100.All compile and run-tested where possible.
Thanks,
Manuel Lauss
Manuel Lauss (18):
MIPS: Alchemy: remove PB1000 support
MIPS: Alchemy: drop MIRAGE/BOSPORUS board support
MIPS: Alchemy: devboards: remove unneeded BCSR IRQ register writes
MIPS: Alchemy: Au1300 SoC support
MIPS: Alchemy: DB1300 support
MIPS: Alchemy: better DB1550 support
MIPS: Alchemy: merge GPR/MTX-1/XXS1500 board code into single files
MIPS: Alchemy: merge devboard code into single per-board files.
MIPS: Alchemy: move au1200fb global functions to platform data
MIPS: Alchemy: Merge PB1200 support into DB1200 code.
MIPS: Alchemy: one kernel for DB1000/DB1500/DB1100
MIPS: Alchemy: MMC for DB1100
MIPS: Alchemy: add RTC device to all devboards
MTD: nand: make au1550nd.c a platform_driver
MIPS: Alchemy: remove unused board headers
net/irda: convert au1k_ir to platform driver.
MIPS: Alchemy: hook up IrDA on DB1000/DB1100
MIPS: Alchemy: Touchscreen support on DB1100
arch/mips/alchemy/Kconfig | 60 +- arch/mips/alchemy/Makefile | 3 + arch/mips/alchemy/Platform | 58 +- arch/mips/alchemy/board-gpr.c | 303 ++++++ arch/mips/alchemy/board-mtx1.c | 313 ++++++ arch/mips/alchemy/board-xxs1500.c | 154 +++ arch/mips/alchemy/common/Makefile | 3 +- arch/mips/alchemy/common/dbdma.c | 46 + arch/mips/alchemy/common/gpioint.c | 411 ++++++++ arch/mips/alchemy/common/gpiolib.c | 42 + arch/mips/alchemy/common/irq.c | 11 - arch/mips/alchemy/common/platform.c | 31 +- arch/mips/alchemy/common/power.c | 3 + arch/mips/alchemy/common/sleeper.S | 73 ++ arch/mips/alchemy/common/time.c | 1 + arch/mips/alchemy/common/vss.c | 84 ++ arch/mips/alchemy/devboards/Makefile | 19 +- arch/mips/alchemy/devboards/bcsr.c | 11 +- arch/mips/alchemy/devboards/db1000.c | 564 ++++++++++ arch/mips/alchemy/devboards/db1200.c | 913 ++++++++++++++++ arch/mips/alchemy/devboards/db1200/Makefile | 1 - arch/mips/alchemy/devboards/db1200/platform.c | 648 ------------ arch/mips/alchemy/devboards/db1200/setup.c | 81 -- arch/mips/alchemy/devboards/db1300.c | 784 ++++++++++++++ arch/mips/alchemy/devboards/db1550.c | 498 +++++++++ arch/mips/alchemy/devboards/db1x00/Makefile | 8 - arch/mips/alchemy/devboards/db1x00/board_setup.c | 229 ---- arch/mips/alchemy/devboards/db1x00/platform.c | 315 ------ arch/mips/alchemy/devboards/pb1000/Makefile | 8 - arch/mips/alchemy/devboards/pb1000/board_setup.c | 209 ---- arch/mips/alchemy/devboards/pb1100.c | 167 +++ arch/mips/alchemy/devboards/pb1100/Makefile | 8 - arch/mips/alchemy/devboards/pb1100/board_setup.c | 127 --- arch/mips/alchemy/devboards/pb1100/platform.c | 77 -- arch/mips/alchemy/devboards/pb1200/Makefile | 5 - arch/mips/alchemy/devboards/pb1200/board_setup.c | 174 --- arch/mips/alchemy/devboards/pb1200/platform.c | 339 ------ arch/mips/alchemy/devboards/pb1500.c | 198 ++++ arch/mips/alchemy/devboards/pb1500/Makefile | 8 - arch/mips/alchemy/devboards/pb1500/board_setup.c | 139 --- arch/mips/alchemy/devboards/pb1500/platform.c | 94 -- arch/mips/alchemy/devboards/pb1550.c | 244 +++++ arch/mips/alchemy/devboards/pb1550/Makefile | 8 - arch/mips/alchemy/devboards/pb1550/board_setup.c | 80 -- arch/mips/alchemy/devboards/pb1550/platform.c | 140 --- arch/mips/alchemy/devboards/platform.c | 13 +- arch/mips/alchemy/devboards/prom.c | 11 +- arch/mips/alchemy/gpr/Makefile | 8 - arch/mips/alchemy/gpr/board_setup.c | 75 -- arch/mips/alchemy/gpr/init.c | 63 -- arch/mips/alchemy/gpr/platform.c | 230 ---- arch/mips/alchemy/mtx-1/Makefile | 9 - arch/mips/alchemy/mtx-1/board_setup.c | 94 -- arch/mips/alchemy/mtx-1/init.c | 66 -- arch/mips/alchemy/mtx-1/platform.c | 230 ---- arch/mips/alchemy/xxs1500/Makefile | 8 - arch/mips/alchemy/xxs1500/board_setup.c | 93 -- arch/mips/alchemy/xxs1500/init.c | 63 -- arch/mips/alchemy/xxs1500/platform.c | 63 -- arch/mips/boot/compressed/uart-alchemy.c | 5 +- arch/mips/configs/db1000_defconfig | 369 ++++++-- arch/mips/configs/db1100_defconfig | 122 --- arch/mips/configs/db1300_defconfig | 391 +++++++ arch/mips/configs/db1500_defconfig | 128 --- arch/mips/configs/db1550_defconfig | 288 ++++-- arch/mips/configs/pb1200_defconfig | 170 --- arch/mips/include/asm/cpu.h | 1 + arch/mips/include/asm/mach-au1x00/au1000.h | 273 ++++- arch/mips/include/asm/mach-au1x00/au1100_mmc.h | 2 + arch/mips/include/asm/mach-au1x00/au1200fb.h | 14 + arch/mips/include/asm/mach-au1x00/au1550nd.h | 16 + arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h | 31 + arch/mips/include/asm/mach-au1x00/gpio-au1300.h | 241 +++++ arch/mips/include/asm/mach-au1x00/gpio.h | 3 + arch/mips/include/asm/mach-db1x00/bcsr.h | 36 +- arch/mips/include/asm/mach-db1x00/db1200.h | 11 +- arch/mips/include/asm/mach-db1x00/db1300.h | 40 + arch/mips/include/asm/mach-db1x00/db1x00.h | 79 -- arch/mips/include/asm/mach-db1x00/irq.h | 23 + arch/mips/include/asm/mach-pb1x00/mc146818rtc.h | 34 - arch/mips/include/asm/mach-pb1x00/pb1000.h | 87 -- arch/mips/include/asm/mach-pb1x00/pb1200.h | 139 --- arch/mips/include/asm/mach-pb1x00/pb1550.h | 73 -- arch/mips/kernel/cpu-probe.c | 7 + drivers/i2c/busses/Kconfig | 4 +- drivers/mmc/host/au1xmmc.c | 45 +- drivers/mtd/nand/au1550nd.c | 308 +++--- drivers/net/irda/Kconfig | 6 +- drivers/net/irda/au1000_ircc.h | 125 --- drivers/net/irda/au1k_ir.c | 1229 ++++++++++++---------- drivers/pcmcia/Kconfig | 8 +- drivers/pcmcia/Makefile | 4 - drivers/pcmcia/au1000_generic.c | 545 ---------- drivers/pcmcia/au1000_generic.h | 135 --- drivers/pcmcia/au1000_pb1x00.c | 294 ------ drivers/pcmcia/db1xxx_ss.c | 26 +- drivers/spi/Kconfig | 4 +- drivers/usb/host/alchemy-common.c | 277 +++++ drivers/usb/host/ohci-au1xxx.c | 13 +- drivers/video/Kconfig | 8 +- drivers/video/au1100fb.c | 12 - drivers/video/au1200fb.c | 273 +++--- sound/soc/au1x/Kconfig | 16 +- sound/soc/au1x/db1200.c | 73 ++- 104 files changed, 7817 insertions(+), 6889 deletions(-) create mode 100644 arch/mips/alchemy/Makefile create mode 100644 arch/mips/alchemy/board-gpr.c create mode 100644 arch/mips/alchemy/board-mtx1.c create mode 100644 arch/mips/alchemy/board-xxs1500.c create mode 100644 arch/mips/alchemy/common/gpioint.c create mode 100644 arch/mips/alchemy/common/vss.c create mode 100644 arch/mips/alchemy/devboards/db1000.c create mode 100644 arch/mips/alchemy/devboards/db1200.c delete mode 100644 arch/mips/alchemy/devboards/db1200/Makefile delete mode 100644 arch/mips/alchemy/devboards/db1200/platform.c delete mode 100644 arch/mips/alchemy/devboards/db1200/setup.c create mode 100644 arch/mips/alchemy/devboards/db1300.c create mode 100644 arch/mips/alchemy/devboards/db1550.c delete mode 100644 arch/mips/alchemy/devboards/db1x00/Makefile delete mode 100644 arch/mips/alchemy/devboards/db1x00/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/db1x00/platform.c delete mode 100644 arch/mips/alchemy/devboards/pb1000/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1000/board_setup.c create mode 100644 arch/mips/alchemy/devboards/pb1100.c delete mode 100644 arch/mips/alchemy/devboards/pb1100/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1100/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/pb1100/platform.c delete mode 100644 arch/mips/alchemy/devboards/pb1200/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1200/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/pb1200/platform.c create mode 100644 arch/mips/alchemy/devboards/pb1500.c delete mode 100644 arch/mips/alchemy/devboards/pb1500/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1500/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/pb1500/platform.c create mode 100644 arch/mips/alchemy/devboards/pb1550.c delete mode 100644 arch/mips/alchemy/devboards/pb1550/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1550/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/pb1550/platform.c delete mode 100644 arch/mips/alchemy/gpr/Makefile delete mode 100644 arch/mips/alchemy/gpr/board_setup.c delete mode 100644 arch/mips/alchemy/gpr/init.c delete mode 100644 arch/mips/alchemy/gpr/platform.c delete mode 100644 arch/mips/alchemy/mtx-1/Makefile delete mode 100644 arch/mips/alchemy/mtx-1/board_setup.c delete mode 100644 arch/mips/alchemy/mtx-1/init.c delete mode 100644 arch/mips/alchemy/mtx-1/platform.c delete mode 100644 arch/mips/alchemy/xxs1500/Makefile delete mode 100644 arch/mips/alchemy/xxs1500/board_setup.c delete mode 100644 arch/mips/alchemy/xxs1500/init.c delete mode 100644 arch/mips/alchemy/xxs1500/platform.c delete mode 100644 arch/mips/configs/db1100_defconfig create mode 100644 arch/mips/configs/db1300_defconfig delete mode 100644 arch/mips/configs/db1500_defconfig delete mode 100644 arch/mips/configs/pb1200_defconfig create mode 100644 arch/mips/include/asm/mach-au1x00/au1200fb.h create mode 100644 arch/mips/include/asm/mach-au1x00/au1550nd.h create mode 100644 arch/mips/include/asm/mach-au1x00/gpio-au1300.h create mode 100644 arch/mips/include/asm/mach-db1x00/db1300.h delete mode 100644 arch/mips/include/asm/mach-db1x00/db1x00.h create mode 100644 arch/mips/include/asm/mach-db1x00/irq.h delete mode 100644 arch/mips/include/asm/mach-pb1x00/mc146818rtc.h delete mode 100644 arch/mips/include/asm/mach-pb1x00/pb1000.h delete mode 100644 arch/mips/include/asm/mach-pb1x00/pb1200.h delete mode 100644 arch/mips/include/asm/mach-pb1x00/pb1550.h delete mode 100644 drivers/net/irda/au1000_ircc.h delete mode 100644 drivers/pcmcia/au1000_generic.c delete mode 100644 drivers/pcmcia/au1000_generic.h delete mode 100644 drivers/pcmcia/au1000_pb1x00.c
Signature · 1 line
1.7.7.1
PATCH 1/18 MIPS: Alchemy: remove PB1000 support
Noone seems to have test hardware or care anymore. Drop PB1000 support and along with it the old Alchemy PCMCIA socket driver.
--- arch/mips/alchemy/Kconfig | 9 - arch/mips/alchemy/Platform | 7 - arch/mips/alchemy/common/irq.c | 11 - arch/mips/alchemy/devboards/Makefile | 1 - arch/mips/alchemy/devboards/pb1000/Makefile | 8 - arch/mips/alchemy/devboards/pb1000/board_setup.c | 209 --------- arch/mips/alchemy/devboards/prom.c | 2 +- arch/mips/include/asm/mach-pb1x00/pb1000.h | 87 ---- drivers/net/irda/au1k_ir.c | 5 +- drivers/pcmcia/Kconfig | 4 - drivers/pcmcia/Makefile | 4 - drivers/pcmcia/au1000_generic.c | 545 ---------------------- drivers/pcmcia/au1000_generic.h | 135 ------ drivers/pcmcia/au1000_pb1x00.c | 294 ------------ 14 files changed, 2 insertions(+), 1319 deletions(-) delete mode 100644 arch/mips/alchemy/devboards/pb1000/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1000/board_setup.c delete mode 100644 arch/mips/include/asm/mach-pb1x00/pb1000.h delete mode 100644 drivers/pcmcia/au1000_generic.c delete mode 100644 drivers/pcmcia/au1000_generic.h delete mode 100644 drivers/pcmcia/au1000_pb1x00.c
arch/mips/alchemy/Kconfig +0 -9
@@ -78,15 +78,6 @@ config MIPS_MIRAGE select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_HAS_EARLY_PRINTK -config MIPS_PB1000 - bool "Alchemy PB1000 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_PB1100 bool "Alchemy PB1100 board" select ALCHEMY_GPIOINT_AU1000
arch/mips/alchemy/Platform +0 -7
@@ -5,13 +5,6 @@ platform-$(CONFIG_MIPS_ALCHEMY) += alchemy/common/ # -# AMD Alchemy Pb1000 eval board -# -platform-$(CONFIG_MIPS_PB1000) += alchemy/devboards/ -cflags-$(CONFIG_MIPS_PB1000) += -I$(srctree)/arch/mips/include/asm/mach-pb1x00 -load-$(CONFIG_MIPS_PB1000) += 0xffffffff80100000 - -# # AMD Alchemy Pb1100 eval board # platform-$(CONFIG_MIPS_PB1100) += alchemy/devboards/
arch/mips/alchemy/common/irq.c +0 -11
@@ -35,9 +35,6 @@#include <asm/irq_cpu.h> #include <asm/mipsregs.h> #include <asm/mach-au1x00/au1000.h> -#ifdef CONFIG_MIPS_PB1000 -#include <asm/mach-pb1x00/pb1000.h> -#endif /* Interrupt Controller register offsets */ #define IC_CFG0RD 0x40
@@ -265,14 +262,6 @@ static void au1x_ic1_unmask(struct irq_data *d)__raw_writel (1 << bit, base +IC_MASKSET );__raw_writel (1 << bit, base +IC_WAKESET ); - -/* very hacky. does the pb1000 cpld auto-disable this int? -* nowhere in the current kernel sources is it disabled. --mlau -*/ -#if defined(CONFIG_MIPS_PB1000 ) -if (d->irq ==AU1000_GPIO15_INT ) -__raw_writel (0x4000 , (void __iomem *)PB1000_MDR );/* enable int */ -#endif wmb (); }
arch/mips/alchemy/devboards/Makefile +0 -1
@@ -4,7 +4,6 @@ obj-y += prom.o bcsr.o platform.o obj-$(CONFIG_PM) += pm.o -obj-$(CONFIG_MIPS_PB1000) += pb1000/ obj-$(CONFIG_MIPS_PB1100) += pb1100/ obj-$(CONFIG_MIPS_PB1200) += pb1200/ obj-$(CONFIG_MIPS_PB1500) += pb1500/
arch/mips/alchemy/devboards/pb1000/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# -# Copyright 2000, 2008 MontaVista Software Inc. -# Author: MontaVista Software, Inc. <[email protected]> -# -# Makefile for the Alchemy Semiconductor Pb1000 board. -# - -obj-y := board_setup.o
arch/mips/alchemy/devboards/pb1000/board_setup.c deleted +0 -209
209 lines not on this page · raw message
arch/mips/alchemy/devboards/prom.c +1 -1
@@ -33,7 +33,7 @@#include <asm/mach-au1x00/au1000.h> #include <prom.h> -#if defined(CONFIG_MIPS_PB1000 ) || defined(CONFIG_MIPS_DB1000 ) || \ +#if defined(CONFIG_MIPS_DB1000 ) || \ defined(CONFIG_MIPS_PB1100 ) || defined(CONFIG_MIPS_DB1100 ) || \ defined(CONFIG_MIPS_PB1500 ) || defined(CONFIG_MIPS_DB1500 ) || \ defined(CONFIG_MIPS_BOSPORUS ) || defined(CONFIG_MIPS_MIRAGE )
arch/mips/include/asm/mach-pb1x00/pb1000.h deleted +0 -87
87 lines not on this page · raw message
drivers/net/irda/au1k_ir.c +1 -4
@@ -32,10 +32,7 @@#include <asm/irq.h> #include <asm/io.h> #include <asm/au1000.h> -#if defined(CONFIG_MIPS_PB1000 ) || defined(CONFIG_MIPS_PB1100 ) -#include <asm/pb1000.h> -#elif defined(CONFIG_MIPS_DB1000 ) || defined(CONFIG_MIPS_DB1100 ) -#include <asm/db1x00.h> +#if defined(CONFIG_MIPS_DB1000 ) || defined(CONFIG_MIPS_DB1100 )#include <asm/mach-db1x00/bcsr.h> #else #error au1k_ir: unsupported board
drivers/pcmcia/Kconfig +0 -4
@@ -155,10 +155,6 @@ config PCMCIA_M8XX This driver is also available as a module called m8xx_pcmcia. -config PCMCIA_AU1X00 - tristate "Au1x00 pcmcia support" - depends on MIPS_ALCHEMY && PCMCIA - config PCMCIA_ALCHEMY_DEVBOARD tristate "Alchemy Db/Pb1xxx PCMCIA socket services" depends on MIPS_ALCHEMY && PCMCIA
drivers/pcmcia/Makefile +0 -4
@@ -29,7 +29,6 @@ obj-$(CONFIG_PCMCIA_SA1100) += sa11xx_base.o sa1100_cs.o obj-$(CONFIG_PCMCIA_SA1111) += sa11xx_base.o sa1111_cs.o obj-$(CONFIG_M32R_PCC) += m32r_pcc.o obj-$(CONFIG_M32R_CFC) += m32r_cfc.o -obj-$(CONFIG_PCMCIA_AU1X00) += au1x00_ss.o obj-$(CONFIG_PCMCIA_BCM63XX) += bcm63xx_pcmcia.o obj-$(CONFIG_PCMCIA_VRC4171) += vrc4171_card.o obj-$(CONFIG_PCMCIA_VRC4173) += vrc4173_cardu.o
@@ -39,9 +38,6 @@ obj-$(CONFIG_AT91_CF) += at91_cf.o obj-$(CONFIG_ELECTRA_CF) += electra_cf.o obj-$(CONFIG_PCMCIA_ALCHEMY_DEVBOARD) += db1xxx_ss.o -au1x00_ss-y += au1000_generic.o -au1x00_ss-$(CONFIG_MIPS_PB1000) += au1000_pb1x00.o - sa1111_cs-y += sa1111_generic.o sa1111_cs-$(CONFIG_ASSABET_NEPONSET) += sa1100_neponset.o sa1111_cs-$(CONFIG_SA1100_BADGE4) += sa1100_badge4.o
drivers/pcmcia/au1000_generic.c deleted +0 -545
545 lines not on this page · raw message
drivers/pcmcia/au1000_generic.h deleted +0 -135
135 lines not on this page · raw message
drivers/pcmcia/au1000_pb1x00.c deleted +0 -294
294 lines not on this page · raw message
Signature · 1 line
1.7.7.1
Re: [PATCH 01/18] MIPS: Alchemy: remove PB1000 support
Quoted 6 lines · Manuel Lauss
arch/mips/alchemy/Kconfig | 9 - arch/mips/alchemy/Platform | 7 - arch/mips/alchemy/common/irq.c | 11 - arch/mips/alchemy/devboards/Makefile | 1 - arch/mips/alchemy/devboards/pb1000/Makefile | 8 - arch/mips/alchemy/devboards/pb1000/board_setup.c | 209 ---------
Quoted 8 lines
arch/mips/alchemy/devboards/prom.c | 2 +- arch/mips/include/asm/mach-pb1x00/pb1000.h | 87 ---- drivers/net/irda/au1k_ir.c | 5 +- drivers/pcmcia/Kconfig | 4 - drivers/pcmcia/Makefile | 4 - drivers/pcmcia/au1000_generic.c | 545 ---------------------- drivers/pcmcia/au1000_generic.h | 135 ------ drivers/pcmcia/au1000_pb1x00.c | 294 ------------
Please repost cc'ing the net / irda and pcmcia lists and maintainers. Even if code is only getting removed there still is a potencial for conflicts with other patches and generally maintainers' ego prefers a full mailbox :)
Thanks,
Ralf
PATCH RESEND 1/18 MIPS: Alchemy: remove PB1000 support
In reply to Manuel LaussNoone seems to have test hardware or care anymore. Drop PB1000 support and along with it the old Alchemy PCMCIA socket driver.
---
Resend with CC's added as requested by Ralf.
Cc'ing netdev for IrDA driver parts and pcmcia for the socket driver removal.
arch/mips/alchemy/Kconfig | 9 - arch/mips/alchemy/Platform | 7 - arch/mips/alchemy/common/irq.c | 11 - arch/mips/alchemy/devboards/Makefile | 1 - arch/mips/alchemy/devboards/pb1000/Makefile | 8 - arch/mips/alchemy/devboards/pb1000/board_setup.c | 209 --------- arch/mips/alchemy/devboards/prom.c | 2 +- arch/mips/include/asm/mach-pb1x00/pb1000.h | 87 ---- drivers/net/irda/au1k_ir.c | 5 +- drivers/pcmcia/Kconfig | 4 - drivers/pcmcia/Makefile | 4 - drivers/pcmcia/au1000_generic.c | 545 ---------------------- drivers/pcmcia/au1000_generic.h | 135 ------ drivers/pcmcia/au1000_pb1x00.c | 294 ------------ 14 files changed, 2 insertions(+), 1319 deletions(-) delete mode 100644 arch/mips/alchemy/devboards/pb1000/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1000/board_setup.c delete mode 100644 arch/mips/include/asm/mach-pb1x00/pb1000.h delete mode 100644 drivers/pcmcia/au1000_generic.c delete mode 100644 drivers/pcmcia/au1000_generic.h delete mode 100644 drivers/pcmcia/au1000_pb1x00.c
arch/mips/alchemy/Kconfig +0 -9
@@ -78,15 +78,6 @@ config MIPS_MIRAGE select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_HAS_EARLY_PRINTK -config MIPS_PB1000 - bool "Alchemy PB1000 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_PB1100 bool "Alchemy PB1100 board" select ALCHEMY_GPIOINT_AU1000
arch/mips/alchemy/Platform +0 -7
@@ -5,13 +5,6 @@ platform-$(CONFIG_MIPS_ALCHEMY) += alchemy/common/ # -# AMD Alchemy Pb1000 eval board -# -platform-$(CONFIG_MIPS_PB1000) += alchemy/devboards/ -cflags-$(CONFIG_MIPS_PB1000) += -I$(srctree)/arch/mips/include/asm/mach-pb1x00 -load-$(CONFIG_MIPS_PB1000) += 0xffffffff80100000 - -# # AMD Alchemy Pb1100 eval board # platform-$(CONFIG_MIPS_PB1100) += alchemy/devboards/
arch/mips/alchemy/common/irq.c +0 -11
@@ -35,9 +35,6 @@#include <asm/irq_cpu.h> #include <asm/mipsregs.h> #include <asm/mach-au1x00/au1000.h> -#ifdef CONFIG_MIPS_PB1000 -#include <asm/mach-pb1x00/pb1000.h> -#endif /* Interrupt Controller register offsets */ #define IC_CFG0RD 0x40
@@ -265,14 +262,6 @@ static void au1x_ic1_unmask(struct irq_data *d)__raw_writel (1 << bit, base +IC_MASKSET );__raw_writel (1 << bit, base +IC_WAKESET ); - -/* very hacky. does the pb1000 cpld auto-disable this int? -* nowhere in the current kernel sources is it disabled. --mlau -*/ -#if defined(CONFIG_MIPS_PB1000 ) -if (d->irq ==AU1000_GPIO15_INT ) -__raw_writel (0x4000 , (void __iomem *)PB1000_MDR );/* enable int */ -#endif wmb (); }
arch/mips/alchemy/devboards/Makefile +0 -1
@@ -4,7 +4,6 @@ obj-y += prom.o bcsr.o platform.o obj-$(CONFIG_PM) += pm.o -obj-$(CONFIG_MIPS_PB1000) += pb1000/ obj-$(CONFIG_MIPS_PB1100) += pb1100/ obj-$(CONFIG_MIPS_PB1200) += pb1200/ obj-$(CONFIG_MIPS_PB1500) += pb1500/
arch/mips/alchemy/devboards/pb1000/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# -# Copyright 2000, 2008 MontaVista Software Inc. -# Author: MontaVista Software, Inc. <[email protected]> -# -# Makefile for the Alchemy Semiconductor Pb1000 board. -# - -obj-y := board_setup.o
arch/mips/alchemy/devboards/pb1000/board_setup.c deleted +0 -209
209 lines not on this page · raw message
arch/mips/alchemy/devboards/prom.c +1 -1
@@ -33,7 +33,7 @@#include <asm/mach-au1x00/au1000.h> #include <prom.h> -#if defined(CONFIG_MIPS_PB1000 ) || defined(CONFIG_MIPS_DB1000 ) || \ +#if defined(CONFIG_MIPS_DB1000 ) || \ defined(CONFIG_MIPS_PB1100 ) || defined(CONFIG_MIPS_DB1100 ) || \ defined(CONFIG_MIPS_PB1500 ) || defined(CONFIG_MIPS_DB1500 ) || \ defined(CONFIG_MIPS_BOSPORUS ) || defined(CONFIG_MIPS_MIRAGE )
arch/mips/include/asm/mach-pb1x00/pb1000.h deleted +0 -87
87 lines not on this page · raw message
drivers/net/irda/au1k_ir.c +1 -4
@@ -32,10 +32,7 @@#include <asm/irq.h> #include <asm/io.h> #include <asm/au1000.h> -#if defined(CONFIG_MIPS_PB1000 ) || defined(CONFIG_MIPS_PB1100 ) -#include <asm/pb1000.h> -#elif defined(CONFIG_MIPS_DB1000 ) || defined(CONFIG_MIPS_DB1100 ) -#include <asm/db1x00.h> +#if defined(CONFIG_MIPS_DB1000 ) || defined(CONFIG_MIPS_DB1100 )#include <asm/mach-db1x00/bcsr.h> #else #error au1k_ir: unsupported board
drivers/pcmcia/Kconfig +0 -4
@@ -155,10 +155,6 @@ config PCMCIA_M8XX This driver is also available as a module called m8xx_pcmcia. -config PCMCIA_AU1X00 - tristate "Au1x00 pcmcia support" - depends on MIPS_ALCHEMY && PCMCIA - config PCMCIA_ALCHEMY_DEVBOARD tristate "Alchemy Db/Pb1xxx PCMCIA socket services" depends on MIPS_ALCHEMY && PCMCIA
drivers/pcmcia/Makefile +0 -4
@@ -29,7 +29,6 @@ obj-$(CONFIG_PCMCIA_SA1100) += sa11xx_base.o sa1100_cs.o obj-$(CONFIG_PCMCIA_SA1111) += sa11xx_base.o sa1111_cs.o obj-$(CONFIG_M32R_PCC) += m32r_pcc.o obj-$(CONFIG_M32R_CFC) += m32r_cfc.o -obj-$(CONFIG_PCMCIA_AU1X00) += au1x00_ss.o obj-$(CONFIG_PCMCIA_BCM63XX) += bcm63xx_pcmcia.o obj-$(CONFIG_PCMCIA_VRC4171) += vrc4171_card.o obj-$(CONFIG_PCMCIA_VRC4173) += vrc4173_cardu.o
@@ -39,9 +38,6 @@ obj-$(CONFIG_AT91_CF) += at91_cf.o obj-$(CONFIG_ELECTRA_CF) += electra_cf.o obj-$(CONFIG_PCMCIA_ALCHEMY_DEVBOARD) += db1xxx_ss.o -au1x00_ss-y += au1000_generic.o -au1x00_ss-$(CONFIG_MIPS_PB1000) += au1000_pb1x00.o - sa1111_cs-y += sa1111_generic.o sa1111_cs-$(CONFIG_ASSABET_NEPONSET) += sa1100_neponset.o sa1111_cs-$(CONFIG_SA1100_BADGE4) += sa1100_badge4.o
drivers/pcmcia/au1000_generic.c deleted +0 -545
545 lines not on this page · raw message
drivers/pcmcia/au1000_generic.h deleted +0 -135
135 lines not on this page · raw message
drivers/pcmcia/au1000_pb1x00.c deleted +0 -294
294 lines not on this page · raw message
Signature · 1 line
1.7.7.1
Re: [PATCH RESEND 01/18] MIPS: Alchemy: remove PB1000 support
Quoted 2 lines · Manuel Lauss
Noone seems to have test hardware or care anymore. Drop PB1000 support and along with it the old Alchemy PCMCIA socket driver.
Nobody (n)acked so I queued this one for 3.3.
Thanks,
Ralf
PATCH 2/18 MIPS: Alchemy: drop MIRAGE/BOSPORUS board support
In reply to Manuel LaussNo test hardware and no (apparent) users. These boards seem very similar to the DB1500, so if required support can be brought back again (I have datasheets) but then with dedicated board code, not tacked on to DB1000 support.
---
I need these gone for upcoming combined DB1000/1500/1100 support.
arch/mips/alchemy/Kconfig | 14 --- arch/mips/alchemy/Platform | 14 --- arch/mips/alchemy/devboards/Makefile | 2 - arch/mips/alchemy/devboards/db1x00/board_setup.c | 105 +--------------------- arch/mips/alchemy/devboards/db1x00/platform.c | 68 +-------------- arch/mips/alchemy/devboards/prom.c | 3 +- 6 files changed, 3 insertions(+), 203 deletions(-)
arch/mips/alchemy/Kconfig +0 -14
@@ -22,13 +22,6 @@ config MIPS_MTX1 select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_HAS_EARLY_PRINTK -config MIPS_BOSPORUS - bool "Alchemy Bosporus board" - select ALCHEMY_GPIOINT_AU1000 - select DMA_NONCOHERENT - select SYS_SUPPORTS_LITTLE_ENDIAN - select SYS_HAS_EARLY_PRINTK - config MIPS_DB1000 bool "Alchemy DB1000 board" select ALCHEMY_GPIOINT_AU1000
@@ -71,13 +64,6 @@ config MIPS_DB1550 select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_HAS_EARLY_PRINTK -config MIPS_MIRAGE - bool "Alchemy Mirage board" - select DMA_NONCOHERENT - select ALCHEMY_GPIOINT_AU1000 - select SYS_SUPPORTS_LITTLE_ENDIAN - select SYS_HAS_EARLY_PRINTK - config MIPS_PB1100 bool "Alchemy PB1100 board" select ALCHEMY_GPIOINT_AU1000
arch/mips/alchemy/Platform +0 -14
@@ -68,20 +68,6 @@ cflags-$(CONFIG_MIPS_DB1200) += -I$(srctree)/arch/mips/include/asm/mach-db1x00 load-$(CONFIG_MIPS_DB1200) += 0xffffffff80100000 # -# AMD Alchemy Bosporus eval board -# -platform-$(CONFIG_MIPS_BOSPORUS) += alchemy/devboards/ -cflags-$(CONFIG_MIPS_BOSPORUS) += -I$(srctree)/arch/mips/include/asm/mach-db1x00 -load-$(CONFIG_MIPS_BOSPORUS) += 0xffffffff80100000 - -# -# AMD Alchemy Mirage eval board -# -platform-$(CONFIG_MIPS_MIRAGE) += alchemy/devboards/ -cflags-$(CONFIG_MIPS_MIRAGE) += -I$(srctree)/arch/mips/include/asm/mach-db1x00 -load-$(CONFIG_MIPS_MIRAGE) += 0xffffffff80100000 - -# # 4G-Systems eval board # platform-$(CONFIG_MIPS_MTX1) += alchemy/mtx-1/
arch/mips/alchemy/devboards/Makefile +0 -2
@@ -13,5 +13,3 @@ obj-$(CONFIG_MIPS_DB1100) += db1x00/ obj-$(CONFIG_MIPS_DB1200) += db1200/ obj-$(CONFIG_MIPS_DB1500) += db1x00/ obj-$(CONFIG_MIPS_DB1550) += db1x00/ -obj-$(CONFIG_MIPS_BOSPORUS) += db1x00/ -obj-$(CONFIG_MIPS_MIRAGE) += db1x00/
arch/mips/alchemy/devboards/db1x00/board_setup.c +1 -104
131 lines not on this page · raw message
arch/mips/alchemy/devboards/db1x00/platform.c +1 -67
124 lines not on this page · raw message
arch/mips/alchemy/devboards/prom.c +1 -2
@@ -35,8 +35,7 @@#if defined(CONFIG_MIPS_DB1000 ) || \ defined(CONFIG_MIPS_PB1100 ) || defined(CONFIG_MIPS_DB1100 ) || \ - defined(CONFIG_MIPS_PB1500 ) || defined(CONFIG_MIPS_DB1500 ) || \ - defined(CONFIG_MIPS_BOSPORUS ) || defined(CONFIG_MIPS_MIRAGE ) + defined(CONFIG_MIPS_PB1500 ) || defined(CONFIG_MIPS_DB1500 )#define ALCHEMY_BOARD_DEFAULT_MEMSIZE 0x04000000#else /* Au1550/Au1200-based develboards */
Signature · 1 line
1.7.7.1
Ralf Baechle
AppliedRe: [PATCH 02/18] MIPS: Alchemy: drop MIRAGE/BOSPORUS board support
Quoted 4 lines · Manuel Lauss
No test hardware and no (apparent) users. These boards seem very similar to the DB1500, so if required support can be brought back again (I have datasheets) but then with dedicated board code, not tacked on to DB1000 support.
Experience says reaction is always a release after the feature removal ;)
Queued for 3.3. Thanks,
Ralf
PATCH 3/18 MIPS: Alchemy: devboards: remove unneeded BCSR IRQ reg acc
In reply to Manuel LaussInitially I had to write to both the MASK and ENABLE registers, otherwise the CPLD would generate tons of spurious interrupts. With the change to the demux handler to disable the muxed line, it is now sufficient to disable the interrupt by writing either the enable or mask register.
--- arch/mips/alchemy/devboards/bcsr.c | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-)
arch/mips/alchemy/devboards/bcsr.c +2 -9
@@ -97,14 +97,9 @@ static void bcsr_csc_handler(unsigned int irq, struct irq_desc *d)enable_irq (irq); } -/* NOTE: both the enable and mask bits must be cleared, otherwise the -* CPLD generates tons of spurious interrupts (at least on my DB1200). -* -- mlau -*/ static void bcsr_irq_mask (struct irq_data *d) {unsigned short v =1 << (d->irq - bcsr_csc_base); -__raw_writew (v, bcsr_virt +BCSR_REG_INTCLR );__raw_writew (v, bcsr_virt +BCSR_REG_MASKCLR );wmb (); }
@@ -112,7 +107,6 @@ static void bcsr_irq_mask(struct irq_data *d)static void bcsr_irq_maskack (struct irq_data *d) {unsigned short v =1 << (d->irq - bcsr_csc_base); -__raw_writew (v, bcsr_virt +BCSR_REG_INTCLR );__raw_writew (v, bcsr_virt +BCSR_REG_MASKCLR );__raw_writew (v, bcsr_virt +BCSR_REG_INTSTAT );/* ack */ wmb ();
@@ -121,7 +115,6 @@ static void bcsr_irq_maskack(struct irq_data *d)static void bcsr_irq_unmask (struct irq_data *d) {unsigned short v =1 << (d->irq - bcsr_csc_base); -__raw_writew (v, bcsr_virt +BCSR_REG_INTSET );__raw_writew (v, bcsr_virt +BCSR_REG_MASKSET );wmb (); }
@@ -137,9 +130,9 @@ void __init bcsr_init_irq(int csc_start, int csc_end, int hook_irq) {unsigned int irq; -/* mask & disable & ack all */ -__raw_writew (0xffff , bcsr_virt +BCSR_REG_INTCLR ); +/* mask & enable & ack all */ __raw_writew (0xffff , bcsr_virt +BCSR_REG_MASKCLR ); +__raw_writew (0xffff , bcsr_virt +BCSR_REG_INTSET );__raw_writew (0xffff , bcsr_virt +BCSR_REG_INTSTAT );wmb ();
Signature · 1 line
1.7.7.1
Ralf Baechle
AppliedRe: [PATCH 03/18] MIPS: Alchemy: devboards: remove unneeded BCSR IRQ reg acc
Queued for 3.3. Thanks,
Ralf
PATCH 4/18 MIPS: Alchemy: Au1300 SoC support
In reply to Manuel LaussAdd basic support for the Au1300 variant(s):
- New GPIO/Interrupt controller
- DBDMA ids
- USB setup
- MMC support
- enable various PSC drivers
- detection code.
--- arch/mips/alchemy/Kconfig | 4 + arch/mips/alchemy/common/Makefile | 3 +- arch/mips/alchemy/common/dbdma.c | 46 +++ arch/mips/alchemy/common/gpioint.c | 411 ++++++++++++++++++++++ arch/mips/alchemy/common/gpiolib.c | 42 +++ arch/mips/alchemy/common/platform.c | 31 ++- arch/mips/alchemy/common/power.c | 3 + arch/mips/alchemy/common/sleeper.S | 73 ++++ arch/mips/alchemy/common/time.c | 1 + arch/mips/alchemy/common/vss.c | 84 +++++ arch/mips/include/asm/cpu.h | 1 + arch/mips/include/asm/mach-au1x00/au1000.h | 221 +++++++++++- arch/mips/include/asm/mach-au1x00/au1100_mmc.h | 2 + arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h | 31 ++ arch/mips/include/asm/mach-au1x00/gpio-au1300.h | 241 +++++++++++++ arch/mips/include/asm/mach-au1x00/gpio.h | 3 + arch/mips/kernel/cpu-probe.c | 7 + drivers/i2c/busses/Kconfig | 4 +- drivers/mmc/host/au1xmmc.c | 45 ++- drivers/spi/Kconfig | 4 +- drivers/usb/host/alchemy-common.c | 277 +++++++++++++++ drivers/usb/host/ohci-au1xxx.c | 13 +- drivers/video/Kconfig | 8 +- sound/soc/au1x/Kconfig | 6 +- 24 files changed, 1514 insertions(+), 47 deletions(-) create mode 100644 arch/mips/alchemy/common/gpioint.c create mode 100644 arch/mips/alchemy/common/vss.c create mode 100644 arch/mips/include/asm/mach-au1x00/gpio-au1300.h
arch/mips/alchemy/Kconfig +4 -0
@@ -2,6 +2,10 @@ config ALCHEMY_GPIOINT_AU1000 bool +# au1300-style GPIO/INT controller +config ALCHEMY_GPIOINT_AU1300 + bool + # select this in your board config if you don't want to use the gpio # namespace as documented in the manuals. In this case however you need # to create the necessary gpio_* functions in your board code/headers!
arch/mips/alchemy/common/Makefile +2 -1
@@ -6,9 +6,10 @@ # obj-y += prom.o time.o clocks.o platform.o power.o setup.o \ - sleeper.o dma.o dbdma.o + sleeper.o dma.o dbdma.o vss.o obj-$(CONFIG_ALCHEMY_GPIOINT_AU1000) += irq.o +obj-$(CONFIG_ALCHEMY_GPIOINT_AU1300) += gpioint.o # optional gpiolib support ifeq ($(CONFIG_ALCHEMY_GPIO_INDIRECT),)
arch/mips/alchemy/common/dbdma.c +46 -0
58 lines not on this page · raw message
arch/mips/alchemy/common/gpioint.c new file +411 -0
411 lines not on this page · raw message
arch/mips/alchemy/common/gpiolib.c +42 -0
66 lines not on this page · raw message
arch/mips/alchemy/common/platform.c +29 -2
@@ -82,6 +82,12 @@ static struct plat_serial8250_port au1x00_uart_data[][4] __initdata = {PORT (AU1000_UART0_PHYS_ADDR ,AU1200_UART0_INT ), PORT(AU1000_UART1_PHYS_ADDR, AU1200_UART1_INT), }, + [ALCHEMY_CPU_AU1300] = { +PORT (AU1300_UART0_PHYS_ADDR ,AU1300_UART0_INT ), +PORT (AU1300_UART1_PHYS_ADDR ,AU1300_UART1_INT ), +PORT (AU1300_UART2_PHYS_ADDR ,AU1300_UART2_INT ), + PORT(AU1300_UART3_PHYS_ADDR, AU1300_UART3_INT), + }, }; static struct platform_device au1xx0_uart_device = {
@@ -122,10 +128,12 @@ static unsigned long alchemy_ohci_data[][2] __initdata = { [ALCHEMY_CPU_AU1100] = { AU1000_USB_OHCI_PHYS_ADDR, AU1100_USB_HOST_INT }, [ALCHEMY_CPU_AU1550] = { AU1550_USB_OHCI_PHYS_ADDR, AU1550_USB_HOST_INT }, [ALCHEMY_CPU_AU1200] = { AU1200_USB_OHCI_PHYS_ADDR, AU1200_USB_INT }, + [ALCHEMY_CPU_AU1300] = { AU1300_USB_OHCI0_PHYS_ADDR, AU1300_USB_INT }, };static unsigned long alchemy_ehci_data[][2 ]__initdata = { [ALCHEMY_CPU_AU1200 ] = {AU1200_USB_EHCI_PHYS_ADDR ,AU1200_USB_INT }, + [ALCHEMY_CPU_AU1300 ] = {AU1300_USB_EHCI_PHYS_ADDR ,AU1300_USB_INT }, };static int __init _new_usbres (struct resource **r,struct platform_device **d)
@@ -169,8 +177,8 @@ static void __init alchemy_setup_usb(int ctype)printk (KERN_INFO "Alchemy USB: cannot add OHCI0\n" ); -/* setup EHCI0: Au1200 */ -if (ctype ==ALCHEMY_CPU_AU1200 ) { +/* setup EHCI0: Au1200/Au1300 */ +if ((ctype ==ALCHEMY_CPU_AU1200 ) || (ctype ==ALCHEMY_CPU_AU1300 )) {if (_new_usbres (&res, &pdev))return ;
@@ -187,6 +195,25 @@ static void __init alchemy_setup_usb(int ctype)if (platform_device_register (pdev))printk (KERN_INFO "Alchemy USB: cannot add EHCI0\n" ); } + +/* Au1300: OHCI1 */ +if (ctype ==ALCHEMY_CPU_AU1300 ) { +if (_new_usbres (&res, &pdev)) +return ; + + res[0 ].start =AU1300_USB_OHCI1_PHYS_ADDR ; + res[0 ].end = res[0 ].start +0x100 -1 ; + res[0 ].flags =IORESOURCE_MEM ; + res[1 ].start =AU1300_USB_INT ; + res[1 ].end = res[1 ].start; + res[1 ].flags =IORESOURCE_IRQ ; + pdev->name ="au1xxx-ohci" ; + pdev->id =1 ; + pdev->dev.dma_mask = &alchemy_ohci_dmamask; + +if (platform_device_register (pdev)) +printk (KERN_INFO "Alchemy USB: cannot add OHCI1\n" ); + } }/* Macro to help defining the Ethernet MAC resources */
arch/mips/alchemy/common/power.c +3 -0
@@ -126,6 +126,9 @@ void au_sleep(void)case ALCHEMY_CPU_AU1200 :alchemy_sleep_au1550 ();break ; +case ALCHEMY_CPU_AU1300 : +alchemy_sleep_au1300 (); +break ; }restore_core_regs ();
arch/mips/alchemy/common/sleeper.S +73 -0
79 lines not on this page · raw message
arch/mips/alchemy/common/time.c +1 -0
@@ -178,6 +178,7 @@ static int alchemy_m2inttab[] __initdata = {AU1100_RTC_MATCH2_INT ,AU1550_RTC_MATCH2_INT ,AU1200_RTC_MATCH2_INT , + AU1300_RTC_MATCH2_INT, };void __init plat_time_init (void )
arch/mips/alchemy/common/vss.c new file +84 -0
84 lines not on this page · raw message
arch/mips/include/asm/cpu.h +1 -0
@@ -166,6 +166,7 @@#define PRID_IMP_NETLOGIC_XLS412B 0x4c00#define PRID_IMP_NETLOGIC_XLS408B 0x4e00#define PRID_IMP_NETLOGIC_XLS404B 0x4f00 +#define PRID_IMP_NETLOGIC_AU13XX 0x8000/* * Definitions for 7:0 on legacy processors
arch/mips/include/asm/mach-au1x00/au1000.h +209 -12
315 lines not on this page · raw message
arch/mips/include/asm/mach-au1x00/au1100_mmc.h +2 -0
@@ -130,8 +130,10 @@ struct au1xmmc_platform_data {#define SD_CONFIG2_DF (0x00000008)#define SD_CONFIG2_DC (0x00000010)#define SD_CONFIG2_xx2 (0x000000e0) +#define SD_CONFIG2_BB (0x00000080)#define SD_CONFIG2_WB (0x00000100)#define SD_CONFIG2_RW (0x00000200) +#define SD_CONFIG2_DP (0x00000400)/*
arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h +31 -0
@@ -183,6 +183,37 @@ typedef volatile struct au1xxx_ddma_desc {#define AU1200_DSCR_CMD0_PSC1_SYNC 25#define AU1200_DSCR_CMD0_CIM_SYNC 26 +#define AU1300_DSCR_CMD0_UART0_TX 0 +#define AU1300_DSCR_CMD0_UART0_RX 1 +#define AU1300_DSCR_CMD0_UART1_TX 2 +#define AU1300_DSCR_CMD0_UART1_RX 3 +#define AU1300_DSCR_CMD0_UART2_TX 4 +#define AU1300_DSCR_CMD0_UART2_RX 5 +#define AU1300_DSCR_CMD0_UART3_TX 6 +#define AU1300_DSCR_CMD0_UART3_RX 7 +#define AU1300_DSCR_CMD0_SDMS_TX0 8 +#define AU1300_DSCR_CMD0_SDMS_RX0 9 +#define AU1300_DSCR_CMD0_SDMS_TX1 10 +#define AU1300_DSCR_CMD0_SDMS_RX1 11 +#define AU1300_DSCR_CMD0_AES_TX 12 +#define AU1300_DSCR_CMD0_AES_RX 13 +#define AU1300_DSCR_CMD0_PSC0_TX 14 +#define AU1300_DSCR_CMD0_PSC0_RX 15 +#define AU1300_DSCR_CMD0_PSC1_TX 16 +#define AU1300_DSCR_CMD0_PSC1_RX 17 +#define AU1300_DSCR_CMD0_PSC2_TX 18 +#define AU1300_DSCR_CMD0_PSC2_RX 19 +#define AU1300_DSCR_CMD0_PSC3_TX 20 +#define AU1300_DSCR_CMD0_PSC3_RX 21 +#define AU1300_DSCR_CMD0_LCD 22 +#define AU1300_DSCR_CMD0_NAND_FLASH 23 +#define AU1300_DSCR_CMD0_SDMS_TX2 24 +#define AU1300_DSCR_CMD0_SDMS_RX2 25 +#define AU1300_DSCR_CMD0_CIM_SYNC 26 +#define AU1300_DSCR_CMD0_UDMA 27 +#define AU1300_DSCR_CMD0_DMA_REQ0 28 +#define AU1300_DSCR_CMD0_DMA_REQ1 29 +#define DSCR_CMD0_THROTTLE 30#define DSCR_CMD0_ALWAYS 31#define DSCR_NDEV_IDS 32
arch/mips/include/asm/mach-au1x00/gpio-au1300.h new file +241 -0
241 lines not on this page · raw message
arch/mips/include/asm/mach-au1x00/gpio.h +3 -0
@@ -12,6 +12,7 @@#include <asm/mach-au1x00/au1000.h> #include <asm/mach-au1x00/gpio-au1000.h> +#include <asm/mach-au1x00/gpio-au1300.h> /* On Au1000, Au1500 and Au1100 GPIOs won't work as inputs before * SYS_PININPUTEN is written to at least once. On Au1550/Au1200/Au1300 this
@@ -58,6 +59,8 @@ static inline int __au_irq_to_gpio(unsigned int irq)switch (alchemy_get_cputype ()) { case ALCHEMY_CPU_AU1000...ALCHEMY_CPU_AU1200:return alchemy_irq_to_gpio (irq); +case ALCHEMY_CPU_AU1300 : +return au1300_irq_to_gpio (irq); }return -EINVAL ; }
arch/mips/kernel/cpu-probe.c +7 -0
@@ -1010,6 +1010,13 @@ static inline void cpu_probe_netlogic(struct cpuinfo_mips *c, int cpu) {decode_configs (c); +if ((c->processor_id &0xff00 ) ==PRID_IMP_NETLOGIC_AU13XX ) { + c->cputype =CPU_ALCHEMY ; + __cpu_name[cpu] ="Au1300" ; +/* following stuff is not for Alchemy */ +return ; + } + c->options = (MIPS_CPU_TLB | MIPS_CPU_4KEX | MIPS_CPU_COUNTER |
drivers/i2c/busses/Kconfig +2 -2
@@ -300,11 +300,11 @@ config I2C_AT91 unless your system can cope with those limitations. config I2C_AU1550 - tristate "Au1550/Au1200 SMBus interface" + tristate "Au1550/Au1200/Au1300 SMBus interface" depends on MIPS_ALCHEMY help If you say yes to this option, support will be included for the - Au1550 and Au1200 SMBus interface. + Au1550/Au1200/Au1300 SMBus interface. This driver can also be built as a module. If so, the module will be called i2c-au1550.
drivers/mmc/host/au1xmmc.c +28 -17
89 lines not on this page · raw message
drivers/spi/Kconfig +2 -2
@@ -87,12 +87,12 @@ config SPI_BFIN_SPORT Enable support for a SPI bus via the Blackfin SPORT peripheral. config SPI_AU1550 - tristate "Au1550/Au12x0 SPI Controller" + tristate "Au1550/Au1200/Au1300 SPI Controller" depends on MIPS_ALCHEMY && EXPERIMENTAL select SPI_BITBANG help If you say yes to this option, support will be included for the - Au1550 SPI controller (may also work with Au1200,Au1210,Au1250). + PSC SPI controller found on Au1550, Au1200 and Au1300 series. config SPI_BITBANG tristate "Utilities for Bitbanging SPI masters"
drivers/usb/host/alchemy-common.c +277 -0
310 lines not on this page · raw message
drivers/usb/host/ohci-au1xxx.c +9 -4
@@ -89,7 +89,7 @@ static const struct hc_driver ohci_au1xxx_hc_driver = {static int ohci_hcd_au1xxx_drv_probe (struct platform_device *pdev) { -int ret; +int ret, unit;struct usb_hcd *hcd;if (usb_disabled ())
@@ -120,7 +120,9 @@ static int ohci_hcd_au1xxx_drv_probe(struct platform_device *pdev) goto err2; } -if (alchemy_usb_control (ALCHEMY_USB_OHCI0 ,1 )) { + unit = (hcd->rsrc_start ==AU1300_USB_OHCI1_PHYS_ADDR ) ? +ALCHEMY_USB_OHCI1 :ALCHEMY_USB_OHCI0 ; +if (alchemy_usb_control (unit,1 )) {printk (KERN_INFO "%s: controller init failed!\n" , pdev->name); ret = -ENODEV ; goto err3;
@@ -135,7 +137,7 @@ static int ohci_hcd_au1xxx_drv_probe(struct platform_device *pdev)return ret; } -alchemy_usb_control (ALCHEMY_USB_OHCI0 ,0 ); +alchemy_usb_control (unit,0 ); err3:iounmap (hcd->regs); err2:
@@ -148,9 +150,12 @@ err1:static int ohci_hcd_au1xxx_drv_remove (struct platform_device *pdev) {struct usb_hcd *hcd =platform_get_drvdata (pdev); +int unit; + unit = (hcd->rsrc_start ==AU1300_USB_OHCI1_PHYS_ADDR ) ? +ALCHEMY_USB_OHCI1 :ALCHEMY_USB_OHCI0 ;usb_remove_hcd (hcd); -alchemy_usb_control (ALCHEMY_USB_OHCI0 ,0 ); +alchemy_usb_control (unit,0 );iounmap (hcd->regs);release_mem_region (hcd->rsrc_start, hcd->rsrc_len);usb_put_hcd (hcd);
drivers/video/Kconfig +4 -4
@@ -1763,16 +1763,16 @@ config FB_AU1100 au1100fb:panel=<name>. config FB_AU1200 - bool "Au1200 LCD Driver" + bool "Au1200/Au1300 LCD Driver" depends on (FB = y) && MIPS_ALCHEMY select FB_SYS_FILLRECT select FB_SYS_COPYAREA select FB_SYS_IMAGEBLIT select FB_SYS_FOPS help - This is the framebuffer driver for the AMD Au1200 SOC. It can drive - various panels and CRTs by passing in kernel cmd line option - au1200fb:panel=<name>. + This is the framebuffer driver for the Au1200/Au1300 SOCs. + It can drive various panels and CRTs by passing in kernel cmd line + option au1200fb:panel=<name>. config FB_VT8500 bool "VT8500 LCD Driver"
sound/soc/au1x/Kconfig +3 -3
@@ -1,13 +1,13 @@ ## -## Au1200/Au1550 PSC + DBDMA +## Au1200/Au1550/Au1300 PSC + DBDMA ## config SND_SOC_AU1XPSC - tristate "SoC Audio for Au1200/Au1250/Au1550" + tristate "SoC Audio for Au12xx/Au13xx/Au1550" depends on MIPS_ALCHEMY help This option enables support for the Programmable Serial Controllers in AC97 and I2S mode, and the Descriptor-Based DMA - Controller (DBDMA) as found on the Au1200/Au1250/Au1550 SoC. + Controller (DBDMA) as found on the Au12xx/Au13xx/Au1550 SoC. config SND_SOC_AU1XPSC_I2S tristate
Signature · 1 line
1.7.7.1
Ralf Baechle
AppliedRe: [PATCH 04/18] MIPS: Alchemy: Au1300 SoC support
Queued for 3.3. Thanks,
Ralf
PATCH 5/18 MIPS: Alchemy: DB1300 support
In reply to Manuel LaussBasic support for the DB1300 board.
--- arch/mips/alchemy/Kconfig | 8 + arch/mips/alchemy/Platform | 7 + arch/mips/alchemy/devboards/Makefile | 1 + arch/mips/alchemy/devboards/db1300.c | 786 ++++++++++++++++++++++++++++ arch/mips/alchemy/devboards/prom.c | 4 + arch/mips/boot/compressed/uart-alchemy.c | 5 +- arch/mips/configs/db1300_defconfig | 391 ++++++++++++++ arch/mips/include/asm/mach-db1x00/bcsr.h | 34 +- arch/mips/include/asm/mach-db1x00/db1300.h | 40 ++ arch/mips/include/asm/mach-db1x00/irq.h | 23 + drivers/pcmcia/Kconfig | 4 +- drivers/pcmcia/db1xxx_ss.c | 26 +- drivers/video/au1200fb.c | 36 ++ sound/soc/au1x/Kconfig | 10 +- sound/soc/au1x/db1200.c | 43 ++- 15 files changed, 1398 insertions(+), 20 deletions(-) create mode 100644 arch/mips/alchemy/devboards/db1300.c create mode 100644 arch/mips/configs/db1300_defconfig create mode 100644 arch/mips/include/asm/mach-db1x00/db1300.h create mode 100644 arch/mips/include/asm/mach-db1x00/irq.h
arch/mips/alchemy/Kconfig +8 -0
@@ -49,6 +49,14 @@ config MIPS_DB1200 select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_HAS_EARLY_PRINTK +config MIPS_DB1300 + bool "NetLogic DB1300 board" + select ALCHEMY_GPIOINT_AU1300 + select DMA_COHERENT + select MIPS_DISABLE_OBSOLETE_IDE + select SYS_SUPPORTS_LITTLE_ENDIAN + select SYS_HAS_EARLY_PRINTK + config MIPS_DB1500 bool "Alchemy DB1500 board" select ALCHEMY_GPIOINT_AU1000
arch/mips/alchemy/Platform +7 -0
@@ -68,6 +68,13 @@ cflags-$(CONFIG_MIPS_DB1200) += -I$(srctree)/arch/mips/include/asm/mach-db1x00 load-$(CONFIG_MIPS_DB1200) += 0xffffffff80100000 # +# NetLogic DBAu1300 development platform +# +platform-$(CONFIG_MIPS_DB1300) += alchemy/devboards/ +cflags-$(CONFIG_MIPS_DB1300) += -I$(srctree)/arch/mips/include/asm/mach-db1x00 +load-$(CONFIG_MIPS_DB1300) += 0xffffffff80100000 + +# # 4G-Systems eval board # platform-$(CONFIG_MIPS_MTX1) += alchemy/mtx-1/
arch/mips/alchemy/devboards/Makefile +1 -0
@@ -11,5 +11,6 @@ obj-$(CONFIG_MIPS_PB1550) += pb1550/ obj-$(CONFIG_MIPS_DB1000) += db1x00/ obj-$(CONFIG_MIPS_DB1100) += db1x00/ obj-$(CONFIG_MIPS_DB1200) += db1200/ +obj-$(CONFIG_MIPS_DB1300) += db1300.o obj-$(CONFIG_MIPS_DB1500) += db1x00/ obj-$(CONFIG_MIPS_DB1550) += db1x00/
arch/mips/alchemy/devboards/db1300.c new file +786 -0
786 lines not on this page · raw message
arch/mips/alchemy/devboards/prom.c +4 -0
@@ -61,5 +61,9 @@ void __init prom_init(void)void prom_putchar (unsigned char c) { +#ifdef CONFIG_MIPS_DB1300 +alchemy_uart_putchar (AU1300_UART2_PHYS_ADDR , c); +#else alchemy_uart_putchar (AU1000_UART0_PHYS_ADDR , c); +#endif }
arch/mips/boot/compressed/uart-alchemy.c +4 -1
@@ -2,6 +2,9 @@void putc (char c) { -/* all current (Jan. 2010) in-kernel boards */ +#ifdef CONFIG_MIPS_DB1300 +alchemy_uart_putchar (AU1300_UART2_PHYS_ADDR , c); +#else alchemy_uart_putchar (AU1000_UART0_PHYS_ADDR , c); +#endif }
arch/mips/configs/db1300_defconfig new file +391 -0
391 lines not on this page · raw message
arch/mips/include/asm/mach-db1x00/bcsr.h +27 -7
@@ -34,6 +34,8 @@#define PB1200_BCSR_PHYS_ADDR 0x0D800000#define PB1200_BCSR_HEXLED_OFS 0x00400000 +#define DB1300_BCSR_PHYS_ADDR 0x19800000 +#define DB1300_BCSR_HEXLED_OFS 0x00400000enum bcsr_id {/* BCSR base 1 */
@@ -105,6 +107,7 @@ enum bcsr_whoami_boards {BCSR_WHOAMI_PB1200 =BCSR_WHOAMI_PB1200_DDR1 ,BCSR_WHOAMI_PB1200_DDR2 ,BCSR_WHOAMI_DB1200 , + BCSR_WHOAMI_DB1300, };/* STATUS reg. Unless otherwise noted, they're valid on all boards.
@@ -118,12 +121,12 @@ enum bcsr_whoami_boards {#define BCSR_STATUS_SRAMWIDTH 0x0080#define BCSR_STATUS_FLASHBUSY 0x0100#define BCSR_STATUS_ROMBUSY 0x0400 -#define BCSR_STATUS_SD0WP 0x0400/* DB1200 */ +#define BCSR_STATUS_SD0WP 0x0400/* DB1200/DB1300:SD1 */ #define BCSR_STATUS_SD1WP 0x0800#define BCSR_STATUS_USBOTGID 0x0800/* PB/DB1550 */ #define BCSR_STATUS_DB1000_SWAPBOOT 0x2000 -#define BCSR_STATUS_DB1200_SWAPBOOT 0x0040/* DB1200 */ -#define BCSR_STATUS_IDECBLID 0x0200/* DB1200 */ +#define BCSR_STATUS_DB1200_SWAPBOOT 0x0040/* DB1200/1300 */ +#define BCSR_STATUS_IDECBLID 0x0200/* DB1200/1300 */ #define BCSR_STATUS_DB1200_U0RXD 0x1000/* DB1200 */ #define BCSR_STATUS_DB1200_U1RXD 0x2000/* DB1200 */ #define BCSR_STATUS_FLASHDEN 0xC000
@@ -133,6 +136,11 @@ enum bcsr_whoami_boards {#define BCSR_STATUS_PB1550_U1RXD 0x2000/* PB1550 */ #define BCSR_STATUS_PB1550_U3RXD 0x8000/* PB1550 */ +#define BCSR_STATUS_CFWP 0x4000/* DB1300 */ +#define BCSR_STATUS_USBOCn 0x2000/* DB1300 */ +#define BCSR_STATUS_OTGOCn 0x1000/* DB1300 */ +#define BCSR_STATUS_DCDMARQ 0x0010/* DB1300 */ +#define BCSR_STATUS_IDEDMARQ 0x0020/* DB1300 */ /* DB/PB1000,1100,1500,1550 */ #define BCSR_RESETS_PHY0 0x0001
@@ -160,12 +168,12 @@ enum bcsr_whoami_boards {#define BCSR_BOARD_SD1WP 0x8000/* DB1100 */ -/* DB/PB1200 */ +/* DB/PB1200/1300 */ #define BCSR_RESETS_ETH 0x0001#define BCSR_RESETS_CAMERA 0x0002#define BCSR_RESETS_DC 0x0004#define BCSR_RESETS_IDE 0x0008 -#define BCSR_RESETS_TV 0x0010/* DB1200 */ +#define BCSR_RESETS_TV 0x0010/* DB1200/1300 */ /* Not resets but in the same register */ #define BCSR_RESETS_PWMR1MUX 0x0800/* DB1200 */ #define BCSR_RESETS_PB1200_WSCFSM 0x0800/* PB1200 */
@@ -174,13 +182,22 @@ enum bcsr_whoami_boards {#define BCSR_RESETS_SPISEL 0x4000#define BCSR_RESETS_SD1MUX 0x8000/* PB1200 */ +#define BCSR_RESETS_VDDQSHDN 0x0200/* DB1300 */ +#define BCSR_RESETS_OTPPGM 0x0400/* DB1300 */ +#define BCSR_RESETS_OTPSCLK 0x0800/* DB1300 */ +#define BCSR_RESETS_OTPWRPROT 0x1000/* DB1300 */ +#define BCSR_RESETS_OTPCSB 0x2000/* DB1300 */ +#define BCSR_RESETS_OTGPWR 0x4000/* DB1300 */ +#define BCSR_RESETS_USBHPWR 0x8000/* DB1300 */ +#define BCSR_BOARD_LCDVEE 0x0001#define BCSR_BOARD_LCDVDD 0x0002#define BCSR_BOARD_LCDBL 0x0004#define BCSR_BOARD_CAMSNAP 0x0010#define BCSR_BOARD_CAMPWR 0x0020#define BCSR_BOARD_SD0PWR 0x0040 - +#define BCSR_BOARD_CAMCS 0x0010/* DB1300 */ +#define BCSR_BOARD_HDMI_DE 0x0040/* DB1300 */ #define BCSR_SWITCHES_DIP 0x00FF#define BCSR_SWITCHES_DIP_1 0x0080
@@ -214,7 +231,10 @@ enum bcsr_whoami_boards {#define BCSR_SYSTEM_RESET 0x8000/* clear to reset */ #define BCSR_SYSTEM_PWROFF 0x4000/* set to power off */ #define BCSR_SYSTEM_VDDI 0x001F/* PB1xxx boards */ - +#define BCSR_SYSTEM_DEBUGCSMASK 0x003F/* DB1300 */ +#define BCSR_SYSTEM_UDMAMODE 0x0100/* DB1300 */ +#define BCSR_SYSTEM_WAKEONIRQ 0x0200/* DB1300 */ +#define BCSR_SYSTEM_VDDI1300 0x3C00/* DB1300 */
arch/mips/include/asm/mach-db1x00/db1300.h new file +40 -0
@@ -0,0 +1,40 @@ +/* +* NetLogic DB1300 board constants +*/ + +#ifndef _DB1300_H_ +#define _DB1300_H_ + +/* FPGA (external mux) interrupt sources */ +#define DB1300_FIRST_INT (ALCHEMY_GPIC_INT_LAST + 1) +#define DB1300_IDE_INT (DB1300_FIRST_INT + 0) +#define DB1300_ETH_INT (DB1300_FIRST_INT + 1) +#define DB1300_CF_INT (DB1300_FIRST_INT + 2) +#define DB1300_VIDEO_INT (DB1300_FIRST_INT + 4) +#define DB1300_HDMI_INT (DB1300_FIRST_INT + 5) +#define DB1300_DC_INT (DB1300_FIRST_INT + 6) +#define DB1300_FLASH_INT (DB1300_FIRST_INT + 7) +#define DB1300_CF_INSERT_INT (DB1300_FIRST_INT + 8) +#define DB1300_CF_EJECT_INT (DB1300_FIRST_INT + 9) +#define DB1300_AC97_INT (DB1300_FIRST_INT + 10) +#define DB1300_AC97_PEN_INT (DB1300_FIRST_INT + 11) +#define DB1300_SD1_INSERT_INT (DB1300_FIRST_INT + 12) +#define DB1300_SD1_EJECT_INT (DB1300_FIRST_INT + 13) +#define DB1300_OTG_VBUS_OC_INT (DB1300_FIRST_INT + 14) +#define DB1300_HOST_VBUS_OC_INT (DB1300_FIRST_INT + 15) +#define DB1300_LAST_INT (DB1300_FIRST_INT + 15) + +/* SMSC9210 CS */ +#define DB1300_ETH_PHYS_ADDR 0x19000000 +#define DB1300_ETH_PHYS_END 0x197fffff + +/* ATA CS */ +#define DB1300_IDE_PHYS_ADDR 0x18800000 +#define DB1300_IDE_REG_SHIFT 5 +#define DB1300_IDE_PHYS_LEN (16 << DB1300_IDE_REG_SHIFT) + +/* NAND CS */ +#define DB1300_NAND_PHYS_ADDR 0x20000000 +#define DB1300_NAND_PHYS_END 0x20000fff + +#endif /* _DB1300_H_ */
arch/mips/include/asm/mach-db1x00/irq.h new file +23 -0
@@ -0,0 +1,23 @@ +/* +* This file is subject to the terms and conditions of the GNU General Public +* License. See the file "COPYING" in the main directory of this archive +* for more details. +* +* Copyright (C) 2003 by Ralf Baechle +*/ +#ifndef __ASM_MACH_GENERIC_IRQ_H +#define __ASM_MACH_GENERIC_IRQ_H + + +#ifdef NR_IRQS +#undef NR_IRQS +#endif + +#ifndef MIPS_CPU_IRQ_BASE +#define MIPS_CPU_IRQ_BASE 0 +#endif + +/* 8 (MIPS) + 128 (au1300) + 16 (cpld) */ +#define NR_IRQS 152 + +#endif /* __ASM_MACH_GENERIC_IRQ_H */
drivers/pcmcia/Kconfig +2 -2
@@ -161,8 +161,8 @@ config PCMCIA_ALCHEMY_DEVBOARD select 64BIT_PHYS_ADDR help Enable this driver of you want PCMCIA support on your Alchemy - Db1000, Db/Pb1100, Db/Pb1500, Db/Pb1550, Db/Pb1200 board. - NOT suitable for the PB1000! + Db1000, Db/Pb1100, Db/Pb1500, Db/Pb1550, Db/Pb1200, DB1300 + board. NOT suitable for the PB1000! This driver is also available as a module called db1xxx_ss.ko
drivers/pcmcia/db1xxx_ss.c +22 -4
@@ -7,7 +7,7 @@/* This is a fairly generic PCMCIA socket driver suitable for the * following Alchemy Development boards: -* Db1000, Db/Pb1500, Db/Pb1100, Db/Pb1550, Db/Pb1200. +* Db1000, Db/Pb1500, Db/Pb1100, Db/Pb1550, Db/Pb1200, Db1300 * * The Db1000 is used as a reference: Per-socket card-, carddetect- and * statuschange IRQs connected to SoC GPIOs, control and status register
@@ -18,6 +18,7 @@* - Pb1100/Pb1500: single socket only; voltage key bits VS are * at STATUS[5:4] (instead of STATUS[1:0]). * - Au1200-based: additional card-eject irqs, irqs not gpios! +* - Db1300: Db1200-like, no pwr ctrl, single socket (#1). */ #include <linux/delay.h>
@@ -58,11 +59,17 @@ struct db1x_pcmcia_sock {#define BOARD_TYPE_DEFAULT 0/* most boards */ #define BOARD_TYPE_DB1200 1/* IRQs aren't gpios */ #define BOARD_TYPE_PB1100 2/* VS bits slightly different */ +#define BOARD_TYPE_DB1300 3/* no power control */ int board_type; };#define to_db1x_socket (x) container_of(x, struct db1x_pcmcia_sock, socket) +static int db1300_card_inserted (struct db1x_pcmcia_sock *sock) +{ +return bcsr_read (BCSR_SIGSTAT ) & (1 <<8 ); +} +/* DB/PB1200: check CPLD SIGSTATUS register bit 10/12 */ static int db1200_card_inserted (struct db1x_pcmcia_sock *sock) {
@@ -83,6 +90,8 @@ static int db1x_card_inserted(struct db1x_pcmcia_sock *sock)switch (sock->board_type) {case BOARD_TYPE_DB1200 :return db1200_card_inserted (sock); +case BOARD_TYPE_DB1300 : +return db1300_card_inserted (sock);default :return db1000_card_inserted (sock); }
@@ -159,7 +168,8 @@ static int db1x_pcmcia_setup_irqs(struct db1x_pcmcia_sock *sock)* ejection handler have been registered and the currently * active one disabled. */ -if (sock->board_type ==BOARD_TYPE_DB1200 ) { +if ((sock->board_type ==BOARD_TYPE_DB1200 ) || + (sock->board_type ==BOARD_TYPE_DB1300 )) { ret =request_irq (sock->insert_irq, db1200_pcmcia_cdirq,IRQF_DISABLED ,"pcmcia_insert" , sock);if (ret)
@@ -173,7 +183,7 @@ static int db1x_pcmcia_setup_irqs(struct db1x_pcmcia_sock *sock) }/* enable the currently silent one */ -if (db1200_card_inserted (sock)) +if (db1x_card_inserted (sock))enable_irq (sock->eject_irq);else enable_irq (sock->insert_irq);
@@ -269,7 +279,8 @@ static int db1x_pcmcia_configure(struct pcmcia_socket *skt, }/* create new voltage code */ - cr_set |= ((v <<2 ) | p) << (sock->nr *8 ); +if (sock->board_type !=BOARD_TYPE_DB1300 ) + cr_set |= ((v <<2 ) | p) << (sock->nr *8 ); changed = state->flags ^ sock->old_flags;
@@ -342,6 +353,10 @@ static int db1x_pcmcia_get_status(struct pcmcia_socket *skt,/* if Vcc is not zero, we have applied power to a card */ status |=GET_VCC (cr, sock->nr) ?SS_POWERON :0 ; +/* DB1300: power always on, but don't tell when no card present */ +if ((sock->board_type ==BOARD_TYPE_DB1300 ) && (status &SS_DETECT )) + status =SS_POWERON |SS_3VCARD |SS_DETECT ; +/* reset de-asserted? then we're ready */ status |= (GET_RESET (cr, sock->nr)) ?SS_READY :SS_RESET ;
@@ -418,6 +433,9 @@ static int __devinit db1x_pcmcia_socket_probe(struct platform_device *pdev) case BCSR_WHOAMI_PB1200 ... BCSR_WHOAMI_DB1200: sock->board_type =BOARD_TYPE_DB1200 ;break ; +case BCSR_WHOAMI_DB1300 : + sock->board_type =BOARD_TYPE_DB1300 ; +break ;default :printk (KERN_INFO "db1xxx-ss: unknown board %d!\n" , bid); ret = -ENODEV ;
drivers/video/au1200fb.c +36 -0
@@ -639,6 +639,42 @@ static struct panel_settings known_lcd_panels[] = 856, 856, 480, 480, }, + [9] = { + .name = "DB1300_800x480", + .monspecs = { + .modedb = NULL, + .modedb_len = 0, + .hfmin = 30000, + .hfmax = 70000, + .vfmin = 60, + .vfmax = 60, + .dclkmin = 6000000, + .dclkmax = 28000000, + .input = FB_DISP_RGB, + }, + .mode_screen =LCD_SCREEN_SX_N (800 ) | + LCD_SCREEN_SY_N(480), + .mode_horztiming =LCD_HORZTIMING_HPW_N (5 ) | +LCD_HORZTIMING_HND1_N (16 ) | + LCD_HORZTIMING_HND2_N(8), + .mode_verttiming =LCD_VERTTIMING_VPW_N (4 ) | +LCD_VERTTIMING_VND1_N (8 ) | + LCD_VERTTIMING_VND2_N(5), + .mode_clkcontrol =LCD_CLKCONTROL_PCD_N (1 ) | +LCD_CLKCONTROL_IV | + LCD_CLKCONTROL_IH, + .mode_pwmdiv = 0x00000000, + .mode_pwmhi = 0x00000000, + .mode_outmask = 0x00FFFFFF, + .mode_fifoctrl = 0x2f2f2f2f, + .mode_toyclksrc = 0x00000004, /* AUXPLL directly */ + .mode_backlight = 0x00000000, + .mode_auxpll = (48/12) * 2, + .device_init = board_au1200fb_panel_init, + .device_shutdown = board_au1200fb_panel_shutdown, + 800, 800, + 480, 480, + }, };#define NUM_PANELS (ARRAY_SIZE(known_lcd_panels))
sound/soc/au1x/Kconfig +6 -4
@@ -51,12 +51,14 @@ config SND_SOC_DB1000 of boards (DB1000/DB1500/DB1100). config SND_SOC_DB1200 - tristate "DB1200 AC97+I2S audio support" - depends on SND_SOC_AU1XPSC + tristate "DB1200/DB1300 Audio support" + select SND_SOC_AU1XPSC select SND_SOC_AU1XPSC_AC97 select SND_SOC_AC97_CODEC + select SND_SOC_WM9712 select SND_SOC_AU1XPSC_I2S select SND_SOC_WM8731 help - Select this option to enable audio (AC97 or I2S) on the - Alchemy/AMD/RMI DB1200 demoboard. + Select this option to enable audio (AC97 and I2S) on the + Alchemy/AMD/RMI/NetLogic Db1200 and Db1300 evaluation boards. + If you need Db1300 touchscreen support, you definitely want to say Y.
sound/soc/au1x/db1200.c +41 -2
74 lines not on this page · raw message
Signature · 1 line
1.7.7.1
Ralf Baechle
AppliedRe: [PATCH 05/18] MIPS: Alchemy: DB1300 support
Queued for 3.3. Thanks,
Ralf
PATCH 1/1 MIPS: Alchemy: db1300: fix build: missing module.h
add module.h to fix build (symbol_get/symbol_put) against 3.2-rc1
---
Please fold into "[PATCH 05/18] Basic support for the DB1300 board."
arch/mips/alchemy/devboards/db1300.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/mips/alchemy/devboards/db1300.c +1 -0
@@ -14,6 +14,7 @@#include <linux/leds.h> #include <linux/ata_platform.h> #include <linux/mmc/host.h> +#include <linux/module.h> #include <linux/mtd/mtd.h> #include <linux/mtd/nand.h> #include <linux/mtd/partitions.h>
Signature · 1 line
1.7.7.2
Re: [PATCH] MIPS: Alchemy: db1300: fix build: missing module.h
Quoted 5 lines · Manuel Lauss
add
module.hto fix build (symbol_get/symbol_put) against 3.2-rc1Signed-off-by Manuel Lauss <[email protected]>---
Please fold into "[PATCH 05/18] Basic support for the DB1300 board."
Done.
Ralf
PATCH 6/18 MIPS: Alchemy: better DB1550 support
In reply to Manuel LaussImproved DB1550 support, with audio and serial busses.
--- arch/mips/alchemy/Kconfig | 2 +- arch/mips/alchemy/devboards/Makefile | 2 +- arch/mips/alchemy/devboards/db1550.c | 506 ++++++++++++++++++++++ arch/mips/alchemy/devboards/db1x00/board_setup.c | 24 +- arch/mips/alchemy/devboards/db1x00/platform.c | 61 +--- arch/mips/configs/db1550_defconfig | 288 +++++++++---- arch/mips/include/asm/mach-db1x00/bcsr.h | 2 +- arch/mips/include/asm/mach-db1x00/db1x00.h | 16 - sound/soc/au1x/Kconfig | 4 +- sound/soc/au1x/db1200.c | 34 ++- 10 files changed, 763 insertions(+), 176 deletions(-) create mode 100644 arch/mips/alchemy/devboards/db1550.c
arch/mips/alchemy/Kconfig +1 -1
@@ -71,7 +71,7 @@ config MIPS_DB1550 bool "Alchemy DB1550 board" select ALCHEMY_GPIOINT_AU1000 select HW_HAS_PCI - select DMA_NONCOHERENT + select DMA_COHERENT select MIPS_DISABLE_OBSOLETE_IDE select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_HAS_EARLY_PRINTK
arch/mips/alchemy/devboards/Makefile +1 -1
@@ -13,4 +13,4 @@ obj-$(CONFIG_MIPS_DB1100) += db1x00/ obj-$(CONFIG_MIPS_DB1200) += db1200/ obj-$(CONFIG_MIPS_DB1300) += db1300.o obj-$(CONFIG_MIPS_DB1500) += db1x00/ -obj-$(CONFIG_MIPS_DB1550) += db1x00/ +obj-$(CONFIG_MIPS_DB1550) += db1550.o
arch/mips/alchemy/devboards/db1550.c new file +506 -0
506 lines not on this page · raw message
arch/mips/alchemy/devboards/db1x00/board_setup.c +3 -21
@@ -48,11 +48,6 @@ const char *get_system_type(void)void __init board_setup (void ) { -unsigned long bcsr1, bcsr2; - - bcsr1 =DB1000_BCSR_PHYS_ADDR ; - bcsr2 =DB1000_BCSR_PHYS_ADDR +DB1000_BCSR_HEXLED_OFS ; -#ifdef CONFIG_MIPS_DB1000 printk (KERN_INFO "AMD Alchemy Au1000/Db1000 Board\n" );#endif
@@ -62,15 +57,9 @@ void __init board_setup(void)#ifdef CONFIG_MIPS_DB1100 printk (KERN_INFO "AMD Alchemy Au1100/Db1100 Board\n" );#endif -#ifdef CONFIG_MIPS_DB1550 -printk (KERN_INFO "AMD Alchemy Au1550/Db1550 Board\n" ); - - bcsr1 =DB1550_BCSR_PHYS_ADDR ; - bcsr2 =DB1550_BCSR_PHYS_ADDR +DB1550_BCSR_HEXLED_OFS ; -#endif -/* initialize board register space */ -bcsr_init (bcsr1, bcsr2); +bcsr_init (DB1000_BCSR_PHYS_ADDR , +DB1000_BCSR_PHYS_ADDR +DB1000_BCSR_HEXLED_OFS );#if defined(CONFIG_IRDA ) && defined(CONFIG_AU1000_FIR ) {
@@ -92,14 +81,7 @@ void __init board_setup(void)static int __init db1x00_init_irq (void ) { -#if defined(CONFIG_MIPS_DB1550 ) -irq_set_irq_type (AU1550_GPIO0_INT ,IRQF_TRIGGER_LOW );/* CD0# */ -irq_set_irq_type (AU1550_GPIO1_INT ,IRQF_TRIGGER_LOW );/* CD1# */ -irq_set_irq_type (AU1550_GPIO3_INT ,IRQF_TRIGGER_LOW );/* CARD0# */ -irq_set_irq_type (AU1550_GPIO5_INT ,IRQF_TRIGGER_LOW );/* CARD1# */ -irq_set_irq_type (AU1550_GPIO21_INT ,IRQF_TRIGGER_LOW );/* STSCHG0# */ -irq_set_irq_type (AU1550_GPIO22_INT ,IRQF_TRIGGER_LOW );/* STSCHG1# */ -#elif defined(CONFIG_MIPS_DB1500 ) +#if defined(CONFIG_MIPS_DB1500 )irq_set_irq_type (AU1500_GPIO0_INT ,IRQF_TRIGGER_LOW );/* CD0# */ irq_set_irq_type (AU1500_GPIO3_INT ,IRQF_TRIGGER_LOW );/* CD1# */ irq_set_irq_type (AU1500_GPIO2_INT ,IRQF_TRIGGER_LOW );/* CARD0# */
arch/mips/alchemy/devboards/db1x00/platform.c +9 -52
115 lines not on this page · raw message
arch/mips/configs/db1550_defconfig +208 -80
363 lines not on this page · raw message
arch/mips/include/asm/mach-db1x00/bcsr.h +1 -1
@@ -163,7 +163,7 @@ enum bcsr_whoami_boards {#define BCSR_BOARD_GPIO200RST 0x0400#define BCSR_BOARD_PCICLKOUT 0x0800#define BCSR_BOARD_PCICFG 0x1000 -#define BCSR_BOARD_SPISEL 0x4000/* PB/DB1550 */ +#define BCSR_BOARD_SPISEL 0x2000/* PB/DB1550 */ #define BCSR_BOARD_SD0WP 0x4000/* DB1100 */ #define BCSR_BOARD_SD1WP 0x8000/* DB1100 */
arch/mips/include/asm/mach-db1x00/db1x00.h +0 -16
@@ -29,22 +29,6 @@#include <asm/mach-au1x00/au1xxx_psc.h> -#ifdef CONFIG_MIPS_DB1550 - -#define DBDMA_AC97_TX_CHAN AU1550_DSCR_CMD0_PSC1_TX -#define DBDMA_AC97_RX_CHAN AU1550_DSCR_CMD0_PSC1_RX -#define DBDMA_I2S_TX_CHAN AU1550_DSCR_CMD0_PSC3_TX -#define DBDMA_I2S_RX_CHAN AU1550_DSCR_CMD0_PSC3_RX - -#define SPI_PSC_BASE AU1550_PSC0_PHYS_ADDR -#define AC97_PSC_BASE AU1550_PSC1_PHYS_ADDR -#define SMBUS_PSC_BASE AU1550_PSC2_PHYS_ADDR -#define I2S_PSC_BASE AU1550_PSC3_PHYS_ADDR - -#define NAND_PHYS_ADDR 0x20000000 - -#endif -/* * NAND defines *
sound/soc/au1x/Kconfig +2 -2
@@ -51,7 +51,7 @@ config SND_SOC_DB1000 of boards (DB1000/DB1500/DB1100). config SND_SOC_DB1200 - tristate "DB1200/DB1300 Audio support" + tristate "DB1200/DB1300/DB1550 Audio support" select SND_SOC_AU1XPSC select SND_SOC_AU1XPSC_AC97 select SND_SOC_AC97_CODEC
@@ -60,5 +60,5 @@ config SND_SOC_DB1200 select SND_SOC_WM8731 help Select this option to enable audio (AC97 and I2S) on the - Alchemy/AMD/RMI/NetLogic Db1200 and Db1300 evaluation boards. + Alchemy/AMD/RMI/NetLogic Db1200, Db1550 and Db1300 evaluation boards. If you need Db1300 touchscreen support, you definitely want to say Y.
sound/soc/au1x/db1200.c +32 -2
@@ -1,5 +1,5 @@/* -* DB1200/DB1300 ASoC audio fabric support code. +* DB1200/DB1300/DB1550 ASoC audio fabric support code. * * (c) 2008-2011 Manuel Lauss <[email protected]> *
@@ -34,6 +34,12 @@ static struct platform_device_id db1200_pids[] = { }, { .name = "db1300-i2s", .driver_data = 3, + }, { + .name = "db1550-ac97", + .driver_data = 4, + }, { + .name = "db1550-i2s", + .driver_data = 5, }, {}, };
@@ -70,6 +76,12 @@ static struct snd_soc_card db1300_ac97_machine = { .num_links = 1, }; +static struct snd_soc_card db1550_ac97_machine = { + .name ="DB1550_AC97" , + .dai_link = &db1200_ac97_dai, + .num_links =1 , +}; +/*------------------------- I2S PART ---------------------------*/ static int db1200_i2s_startup (struct snd_pcm_substream *substream)
@@ -135,6 +147,22 @@ static struct snd_soc_card db1300_i2s_machine = { .num_links = 1, }; +static struct snd_soc_dai_link db1550_i2s_dai = { + .name ="WM8731" , + .stream_name ="WM8731 PCM" , + .codec_dai_name ="wm8731-hifi" , + .cpu_dai_name ="au1xpsc_i2s.3" , + .platform_name ="au1xpsc-pcm.3" , + .codec_name ="wm8731.0-001b" , + .ops = &db1200_i2s_wm8731_ops, +}; + +static struct snd_soc_card db1550_i2s_machine = { + .name ="DB1550_I2S" , + .dai_link = &db1550_i2s_dai, + .num_links =1 , +}; +/*------------------------- COMMON PART ---------------------------*/ static struct snd_soc_card *db1200_cards[]__devinitdata = {
@@ -142,6 +170,8 @@ static struct snd_soc_card *db1200_cards[] __devinitdata = { &db1200_i2s_machine, &db1300_ac97_machine, &db1300_i2s_machine, + &db1550_ac97_machine, + &db1550_i2s_machine, };static int __devinit db1200_audio_probe (struct platform_device *pdev)
@@ -186,5 +216,5 @@ module_init(db1200_audio_load);module_exit (db1200_audio_unload);MODULE_LICENSE ("GPL" ); -MODULE_DESCRIPTION ("DB1200/DB1300 ASoC audio support" ); +MODULE_DESCRIPTION ("DB1200/DB1300/DB1550 ASoC audio support" );MODULE_AUTHOR ("Manuel Lauss" );
Signature · 1 line
1.7.7.1
Ralf Baechle
AppliedRe: [PATCH 06/18] MIPS: Alchemy: better DB1550 support
Queued for 3.3. Thanks,
Ralf
PATCH 7/18 MIPS: Alchemy: merge GPR/MTX-1/XXS1500 board code into single files
In reply to Manuel LaussMost of these files are have more comments than real code; merge them all into single board-<name>.c files.
--- arch/mips/alchemy/Makefile | 3 + arch/mips/alchemy/Platform | 8 +- arch/mips/alchemy/board-gpr.c | 303 ++++++++++++++++++++++++++++++ arch/mips/alchemy/board-mtx1.c | 313 +++++++++++++++++++++++++++++++ arch/mips/alchemy/board-xxs1500.c | 154 +++++++++++++++ arch/mips/alchemy/gpr/Makefile | 8 - arch/mips/alchemy/gpr/board_setup.c | 75 -------- arch/mips/alchemy/gpr/init.c | 63 ------ arch/mips/alchemy/gpr/platform.c | 230 ----------------------- arch/mips/alchemy/mtx-1/Makefile | 9 - arch/mips/alchemy/mtx-1/board_setup.c | 94 --------- arch/mips/alchemy/mtx-1/init.c | 66 ------- arch/mips/alchemy/mtx-1/platform.c | 230 ----------------------- arch/mips/alchemy/xxs1500/Makefile | 8 - arch/mips/alchemy/xxs1500/board_setup.c | 93 --------- arch/mips/alchemy/xxs1500/init.c | 63 ------ arch/mips/alchemy/xxs1500/platform.c | 63 ------ 17 files changed, 777 insertions(+), 1006 deletions(-) create mode 100644 arch/mips/alchemy/Makefile create mode 100644 arch/mips/alchemy/board-gpr.c create mode 100644 arch/mips/alchemy/board-mtx1.c create mode 100644 arch/mips/alchemy/board-xxs1500.c delete mode 100644 arch/mips/alchemy/gpr/Makefile delete mode 100644 arch/mips/alchemy/gpr/board_setup.c delete mode 100644 arch/mips/alchemy/gpr/init.c delete mode 100644 arch/mips/alchemy/gpr/platform.c delete mode 100644 arch/mips/alchemy/mtx-1/Makefile delete mode 100644 arch/mips/alchemy/mtx-1/board_setup.c delete mode 100644 arch/mips/alchemy/mtx-1/init.c delete mode 100644 arch/mips/alchemy/mtx-1/platform.c delete mode 100644 arch/mips/alchemy/xxs1500/Makefile delete mode 100644 arch/mips/alchemy/xxs1500/board_setup.c delete mode 100644 arch/mips/alchemy/xxs1500/init.c delete mode 100644 arch/mips/alchemy/xxs1500/platform.c
arch/mips/alchemy/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +obj-$(CONFIG_MIPS_GPR) += board-gpr.o +obj-$(CONFIG_MIPS_MTX1) += board-mtx1.o +obj-$(CONFIG_MIPS_XXS1500) += board-xxs1500.o
arch/mips/alchemy/Platform +4 -4
@@ -75,21 +75,21 @@ cflags-$(CONFIG_MIPS_DB1300) += -I$(srctree)/arch/mips/include/asm/mach-db1x00 load-$(CONFIG_MIPS_DB1300) += 0xffffffff80100000 # -# 4G-Systems eval board +# 4G-Systems MTX-1 "MeshCube" wireless router # -platform-$(CONFIG_MIPS_MTX1) += alchemy/mtx-1/ +platform-$(CONFIG_MIPS_MTX1) += alchemy/ load-$(CONFIG_MIPS_MTX1) += 0xffffffff80100000 # # MyCable eval board # -platform-$(CONFIG_MIPS_XXS1500) += alchemy/xxs1500/ +platform-$(CONFIG_MIPS_XXS1500) += alchemy/ load-$(CONFIG_MIPS_XXS1500) += 0xffffffff80100000 # # Trapeze ITS GRP board # -platform-$(CONFIG_MIPS_GPR) += alchemy/gpr/ +platform-$(CONFIG_MIPS_GPR) += alchemy/ load-$(CONFIG_MIPS_GPR) += 0xffffffff80100000 # boards can specify their own <gpio.h> in one of their include dirs.
arch/mips/alchemy/board-gpr.c new file +303 -0
303 lines not on this page · raw message
arch/mips/alchemy/board-mtx1.c new file +313 -0
313 lines not on this page · raw message
arch/mips/alchemy/board-xxs1500.c new file +154 -0
154 lines not on this page · raw message
arch/mips/alchemy/gpr/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# -# Copyright 2003 MontaVista Software Inc. -# Author: MontaVista Software, Inc. <[email protected]> -# -# Makefile for Trapeze ITS GPR board. -# - -obj-y += board_setup.o init.o platform.o
arch/mips/alchemy/gpr/board_setup.c deleted +0 -75
75 lines not on this page · raw message
arch/mips/alchemy/gpr/init.c deleted +0 -63
63 lines not on this page · raw message
arch/mips/alchemy/gpr/platform.c deleted +0 -230
230 lines not on this page · raw message
arch/mips/alchemy/mtx-1/Makefile deleted +0 -9
@@ -1,9 +0,0 @@ -# -# Copyright 2003 MontaVista Software Inc. -# Author: MontaVista Software, Inc. <[email protected]> -# Bruno Randolf <[email protected]> -# -# Makefile for 4G Systems MTX-1 board. -# - -obj-y += init.o board_setup.o platform.o
arch/mips/alchemy/mtx-1/board_setup.c deleted +0 -94
94 lines not on this page · raw message
arch/mips/alchemy/mtx-1/init.c deleted +0 -66
66 lines not on this page · raw message
arch/mips/alchemy/mtx-1/platform.c deleted +0 -230
230 lines not on this page · raw message
arch/mips/alchemy/xxs1500/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# -# Copyright 2003 MontaVista Software Inc. -# Author: MontaVista Software, Inc. <[email protected]> -# -# Makefile for MyCable XXS1500 board. -# - -obj-y += init.o board_setup.o platform.o
arch/mips/alchemy/xxs1500/board_setup.c deleted +0 -93
93 lines not on this page · raw message
arch/mips/alchemy/xxs1500/init.c deleted +0 -63
63 lines not on this page · raw message
arch/mips/alchemy/xxs1500/platform.c deleted +0 -63
63 lines not on this page · raw message
Signature · 1 line
1.7.7.1
Ralf Baechle
AppliedRe: [PATCH 07/18] MIPS: Alchemy: merge GPR/MTX-1/XXS1500 board code into single files
Queued for 3.3. Thanks,
Ralf
PATCH 8/18 MIPS: Alchemy: merge devboard code into single per-board files.
In reply to Manuel Lauss--- arch/mips/alchemy/devboards/Makefile | 16 +- arch/mips/alchemy/devboards/db1200.c | 705 ++++++++++++++++++++++ arch/mips/alchemy/devboards/db1200/Makefile | 1 - arch/mips/alchemy/devboards/db1200/platform.c | 648 -------------------- arch/mips/alchemy/devboards/db1200/setup.c | 81 --- arch/mips/alchemy/devboards/db1x00.c | 256 ++++++++ arch/mips/alchemy/devboards/db1x00/Makefile | 8 - arch/mips/alchemy/devboards/db1x00/board_setup.c | 108 ---- arch/mips/alchemy/devboards/db1x00/platform.c | 206 ------- arch/mips/alchemy/devboards/pb1100.c | 167 +++++ arch/mips/alchemy/devboards/pb1100/Makefile | 8 - arch/mips/alchemy/devboards/pb1100/board_setup.c | 127 ---- arch/mips/alchemy/devboards/pb1100/platform.c | 77 --- arch/mips/alchemy/devboards/pb1200.c | 464 ++++++++++++++ arch/mips/alchemy/devboards/pb1200/Makefile | 5 - arch/mips/alchemy/devboards/pb1200/board_setup.c | 174 ------ arch/mips/alchemy/devboards/pb1200/platform.c | 339 ----------- arch/mips/alchemy/devboards/pb1500.c | 198 ++++++ arch/mips/alchemy/devboards/pb1500/Makefile | 8 - arch/mips/alchemy/devboards/pb1500/board_setup.c | 139 ----- arch/mips/alchemy/devboards/pb1500/platform.c | 94 --- arch/mips/alchemy/devboards/pb1550.c | 178 ++++++ arch/mips/alchemy/devboards/pb1550/Makefile | 8 - arch/mips/alchemy/devboards/pb1550/board_setup.c | 80 --- arch/mips/alchemy/devboards/pb1550/platform.c | 140 ----- 25 files changed, 1976 insertions(+), 2259 deletions(-) create mode 100644 arch/mips/alchemy/devboards/db1200.c delete mode 100644 arch/mips/alchemy/devboards/db1200/Makefile delete mode 100644 arch/mips/alchemy/devboards/db1200/platform.c delete mode 100644 arch/mips/alchemy/devboards/db1200/setup.c create mode 100644 arch/mips/alchemy/devboards/db1x00.c delete mode 100644 arch/mips/alchemy/devboards/db1x00/Makefile delete mode 100644 arch/mips/alchemy/devboards/db1x00/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/db1x00/platform.c create mode 100644 arch/mips/alchemy/devboards/pb1100.c delete mode 100644 arch/mips/alchemy/devboards/pb1100/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1100/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/pb1100/platform.c create mode 100644 arch/mips/alchemy/devboards/pb1200.c delete mode 100644 arch/mips/alchemy/devboards/pb1200/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1200/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/pb1200/platform.c create mode 100644 arch/mips/alchemy/devboards/pb1500.c delete mode 100644 arch/mips/alchemy/devboards/pb1500/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1500/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/pb1500/platform.c create mode 100644 arch/mips/alchemy/devboards/pb1550.c delete mode 100644 arch/mips/alchemy/devboards/pb1550/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1550/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/pb1550/platform.c
arch/mips/alchemy/devboards/Makefile +8 -8
@@ -4,13 +4,13 @@ obj-y += prom.o bcsr.o platform.o obj-$(CONFIG_PM) += pm.o -obj-$(CONFIG_MIPS_PB1100) += pb1100/ -obj-$(CONFIG_MIPS_PB1200) += pb1200/ -obj-$(CONFIG_MIPS_PB1500) += pb1500/ -obj-$(CONFIG_MIPS_PB1550) += pb1550/ -obj-$(CONFIG_MIPS_DB1000) += db1x00/ -obj-$(CONFIG_MIPS_DB1100) += db1x00/ -obj-$(CONFIG_MIPS_DB1200) += db1200/ +obj-$(CONFIG_MIPS_PB1100) += pb1100.o +obj-$(CONFIG_MIPS_PB1200) += pb1200.o +obj-$(CONFIG_MIPS_PB1500) += pb1500.o +obj-$(CONFIG_MIPS_PB1550) += pb1550.o +obj-$(CONFIG_MIPS_DB1000) += db1x00.o +obj-$(CONFIG_MIPS_DB1100) += db1x00.o +obj-$(CONFIG_MIPS_DB1200) += db1200.o obj-$(CONFIG_MIPS_DB1300) += db1300.o -obj-$(CONFIG_MIPS_DB1500) += db1x00/ +obj-$(CONFIG_MIPS_DB1500) += db1x00.o obj-$(CONFIG_MIPS_DB1550) += db1550.o
arch/mips/alchemy/devboards/db1200.c new file +705 -0
705 lines not on this page · raw message
arch/mips/alchemy/devboards/db1200/Makefile deleted +0 -1
@@ -1 +0,0 @@ -obj-y += setup.o platform.o
arch/mips/alchemy/devboards/db1200/platform.c deleted +0 -648
648 lines not on this page · raw message
arch/mips/alchemy/devboards/db1200/setup.c deleted +0 -81
81 lines not on this page · raw message
arch/mips/alchemy/devboards/db1x00.c new file +256 -0
256 lines not on this page · raw message
arch/mips/alchemy/devboards/db1x00/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# -# Copyright 2000, 2008 MontaVista Software Inc. -# Author: MontaVista Software, Inc. <[email protected]> -# -# Makefile for the Alchemy Semiconductor DBAu1xx0 boards. -# - -obj-y := board_setup.o platform.o
arch/mips/alchemy/devboards/db1x00/board_setup.c deleted +0 -108
108 lines not on this page · raw message
arch/mips/alchemy/devboards/db1x00/platform.c deleted +0 -206
206 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1100.c new file +167 -0
167 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1100/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# -# Copyright 2000, 2001, 2008 MontaVista Software Inc. -# Author: MontaVista Software, Inc. <[email protected]> -# -# Makefile for the Alchemy Semiconductor Pb1100 board. -# - -obj-y := board_setup.o platform.o
arch/mips/alchemy/devboards/pb1100/board_setup.c deleted +0 -127
127 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1100/platform.c deleted +0 -77
77 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1200.c new file +464 -0
464 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1200/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# -# Makefile for the Alchemy Semiconductor Pb1200/DBAu1200 boards. -# - -obj-y := board_setup.o platform.o
arch/mips/alchemy/devboards/pb1200/board_setup.c deleted +0 -174
118 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1200/platform.c deleted +0 -339
339 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1500.c new file +198 -0
198 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1500/Makefile deleted +0 -8
Lines of this file are not shown. View the raw message.
arch/mips/alchemy/devboards/pb1500/board_setup.c deleted +0 -139
139 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1500/platform.c deleted +0 -94
94 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1550.c new file +178 -0
178 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1550/Makefile deleted +0 -8
Lines of this file are not shown. View the raw message.
arch/mips/alchemy/devboards/pb1550/board_setup.c deleted +0 -80
80 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1550/platform.c deleted +0 -140
140 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.7.1
Part of the diff is not shown here. View the raw message.
PATCH v2 8/18 MIPS: Alchemy: merge devboard code into single per-board files.
---
v2: rediffed against Linus' latest git.
arch/mips/alchemy/devboards/Makefile | 16 +- arch/mips/alchemy/devboards/db1200.c | 705 ++++++++++++++++++++++ arch/mips/alchemy/devboards/db1200/Makefile | 1 - arch/mips/alchemy/devboards/db1200/platform.c | 648 -------------------- arch/mips/alchemy/devboards/db1200/setup.c | 81 --- arch/mips/alchemy/devboards/db1x00.c | 256 ++++++++ arch/mips/alchemy/devboards/db1x00/Makefile | 8 - arch/mips/alchemy/devboards/db1x00/board_setup.c | 108 ---- arch/mips/alchemy/devboards/db1x00/platform.c | 207 ------- arch/mips/alchemy/devboards/pb1100.c | 167 +++++ arch/mips/alchemy/devboards/pb1100/Makefile | 8 - arch/mips/alchemy/devboards/pb1100/board_setup.c | 127 ---- arch/mips/alchemy/devboards/pb1100/platform.c | 77 --- arch/mips/alchemy/devboards/pb1200.c | 464 ++++++++++++++ arch/mips/alchemy/devboards/pb1200/Makefile | 5 - arch/mips/alchemy/devboards/pb1200/board_setup.c | 174 ------ arch/mips/alchemy/devboards/pb1200/platform.c | 339 ----------- arch/mips/alchemy/devboards/pb1500.c | 198 ++++++ arch/mips/alchemy/devboards/pb1500/Makefile | 8 - arch/mips/alchemy/devboards/pb1500/board_setup.c | 139 ----- arch/mips/alchemy/devboards/pb1500/platform.c | 94 --- arch/mips/alchemy/devboards/pb1550.c | 178 ++++++ arch/mips/alchemy/devboards/pb1550/Makefile | 8 - arch/mips/alchemy/devboards/pb1550/board_setup.c | 80 --- arch/mips/alchemy/devboards/pb1550/platform.c | 140 ----- 25 files changed, 1976 insertions(+), 2260 deletions(-) create mode 100644 arch/mips/alchemy/devboards/db1200.c delete mode 100644 arch/mips/alchemy/devboards/db1200/Makefile delete mode 100644 arch/mips/alchemy/devboards/db1200/platform.c delete mode 100644 arch/mips/alchemy/devboards/db1200/setup.c create mode 100644 arch/mips/alchemy/devboards/db1x00.c delete mode 100644 arch/mips/alchemy/devboards/db1x00/Makefile delete mode 100644 arch/mips/alchemy/devboards/db1x00/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/db1x00/platform.c create mode 100644 arch/mips/alchemy/devboards/pb1100.c delete mode 100644 arch/mips/alchemy/devboards/pb1100/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1100/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/pb1100/platform.c create mode 100644 arch/mips/alchemy/devboards/pb1200.c delete mode 100644 arch/mips/alchemy/devboards/pb1200/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1200/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/pb1200/platform.c create mode 100644 arch/mips/alchemy/devboards/pb1500.c delete mode 100644 arch/mips/alchemy/devboards/pb1500/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1500/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/pb1500/platform.c create mode 100644 arch/mips/alchemy/devboards/pb1550.c delete mode 100644 arch/mips/alchemy/devboards/pb1550/Makefile delete mode 100644 arch/mips/alchemy/devboards/pb1550/board_setup.c delete mode 100644 arch/mips/alchemy/devboards/pb1550/platform.c
arch/mips/alchemy/devboards/Makefile +8 -8
@@ -4,13 +4,13 @@ obj-y += prom.o bcsr.o platform.o obj-$(CONFIG_PM) += pm.o -obj-$(CONFIG_MIPS_PB1100) += pb1100/ -obj-$(CONFIG_MIPS_PB1200) += pb1200/ -obj-$(CONFIG_MIPS_PB1500) += pb1500/ -obj-$(CONFIG_MIPS_PB1550) += pb1550/ -obj-$(CONFIG_MIPS_DB1000) += db1x00/ -obj-$(CONFIG_MIPS_DB1100) += db1x00/ -obj-$(CONFIG_MIPS_DB1200) += db1200/ +obj-$(CONFIG_MIPS_PB1100) += pb1100.o +obj-$(CONFIG_MIPS_PB1200) += pb1200.o +obj-$(CONFIG_MIPS_PB1500) += pb1500.o +obj-$(CONFIG_MIPS_PB1550) += pb1550.o +obj-$(CONFIG_MIPS_DB1000) += db1x00.o +obj-$(CONFIG_MIPS_DB1100) += db1x00.o +obj-$(CONFIG_MIPS_DB1200) += db1200.o obj-$(CONFIG_MIPS_DB1300) += db1300.o -obj-$(CONFIG_MIPS_DB1500) += db1x00/ +obj-$(CONFIG_MIPS_DB1500) += db1x00.o obj-$(CONFIG_MIPS_DB1550) += db1550.o
arch/mips/alchemy/devboards/db1200.c new file +705 -0
705 lines not on this page · raw message
arch/mips/alchemy/devboards/db1200/Makefile deleted +0 -1
@@ -1 +0,0 @@ -obj-y += setup.o platform.o
arch/mips/alchemy/devboards/db1200/platform.c deleted +0 -648
648 lines not on this page · raw message
arch/mips/alchemy/devboards/db1200/setup.c deleted +0 -81
81 lines not on this page · raw message
arch/mips/alchemy/devboards/db1x00.c new file +256 -0
256 lines not on this page · raw message
arch/mips/alchemy/devboards/db1x00/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# -# Copyright 2000, 2008 MontaVista Software Inc. -# Author: MontaVista Software, Inc. <[email protected]> -# -# Makefile for the Alchemy Semiconductor DBAu1xx0 boards. -# - -obj-y := board_setup.o platform.o
arch/mips/alchemy/devboards/db1x00/board_setup.c deleted +0 -108
108 lines not on this page · raw message
arch/mips/alchemy/devboards/db1x00/platform.c deleted +0 -207
207 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1100.c new file +167 -0
167 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1100/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# -# Copyright 2000, 2001, 2008 MontaVista Software Inc. -# Author: MontaVista Software, Inc. <[email protected]> -# -# Makefile for the Alchemy Semiconductor Pb1100 board. -# - -obj-y := board_setup.o platform.o
arch/mips/alchemy/devboards/pb1100/board_setup.c deleted +0 -127
127 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1100/platform.c deleted +0 -77
77 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1200.c new file +464 -0
464 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1200/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -# -# Makefile for the Alchemy Semiconductor Pb1200/DBAu1200 boards. -# - -obj-y := board_setup.o platform.o
arch/mips/alchemy/devboards/pb1200/board_setup.c deleted +0 -174
117 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1200/platform.c deleted +0 -339
339 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1500.c new file +198 -0
198 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1500/Makefile deleted +0 -8
Lines of this file are not shown. View the raw message.
arch/mips/alchemy/devboards/pb1500/board_setup.c deleted +0 -139
139 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1500/platform.c deleted +0 -94
94 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1550.c new file +178 -0
178 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1550/Makefile deleted +0 -8
Lines of this file are not shown. View the raw message.
arch/mips/alchemy/devboards/pb1550/board_setup.c deleted +0 -80
80 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1550/platform.c deleted +0 -140
140 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.7.1
Part of the diff is not shown here. View the raw message.
Ralf Baechle
AppliedRe: [PATCH v2 08/18] MIPS: Alchemy: merge devboard code into single per-board files.
Queued for 3.3. Thanks,
Ralf
PATCH 9/18 MIPS: Alchemy: move au1200fb global functions to platform data
In reply to Manuel Laussau1200fb calls 3 functions which have to be defined in board code. Fix this ugliness with the introduction of platform_data.
---
I'd like this to go in via the MIPS tree since patches depend on it.
arch/mips/alchemy/devboards/db1200.c | 51 +++--- arch/mips/alchemy/devboards/db1300.c | 52 +++--- arch/mips/alchemy/devboards/pb1200.c | 55 ++++--- arch/mips/include/asm/mach-au1x00/au1200fb.h | 14 ++ drivers/video/au1200fb.c | 241 ++++++++++++-------------- 5 files changed, 213 insertions(+), 200 deletions(-) create mode 100644 arch/mips/include/asm/mach-au1x00/au1200fb.h
arch/mips/alchemy/devboards/db1200.c +29 -22
@@ -37,6 +37,7 @@#include <asm/mach-au1x00/au1000.h> #include <asm/mach-au1x00/au1100_mmc.h> #include <asm/mach-au1x00/au1xxx_dbdma.h> +#include <asm/mach-au1x00/au1200fb.h> #include <asm/mach-au1x00/au1550_spi.h> #include <asm/mach-db1x00/bcsr.h> #include <asm/mach-db1x00/db1200.h>
@@ -422,6 +423,33 @@ static struct platform_device db1200_mmc0_dev = {/**********************************************************************/ +static int db1200fb_panel_index (void ) +{ +return (bcsr_read (BCSR_SWITCHES ) >>8 ) &0x0f ; +} + +static int db1200fb_panel_init (void ) +{ +/* Apply power */ +bcsr_mod (BCSR_BOARD ,0 ,BCSR_BOARD_LCDVEE |BCSR_BOARD_LCDVDD | +BCSR_BOARD_LCDBL ); +return 0 ; +} + +static int db1200fb_panel_shutdown (void ) +{ +/* Remove power */ +bcsr_mod (BCSR_BOARD ,BCSR_BOARD_LCDVEE |BCSR_BOARD_LCDVDD | +BCSR_BOARD_LCDBL ,0 ); +return 0 ; +} + +static struct au1200fb_platdata db1200fb_pd = { + .panel_index = db1200fb_panel_index, + .panel_init = db1200fb_panel_init, + .panel_shutdown = db1200fb_panel_shutdown, +}; +static struct resource au1200_lcd_res[] = { [0 ] = { .start =AU1200_LCD_PHYS_ADDR ,
@@ -443,6 +471,7 @@ static struct platform_device au1200_lcd_dev = { .dev = { .dma_mask = &au1200_lcd_dmamask, .coherent_dma_mask = DMA_BIT_MASK(32), + .platform_data = &db1200fb_pd, }, .num_resources = ARRAY_SIZE(au1200_lcd_res), .resource = au1200_lcd_res,
@@ -681,25 +710,3 @@ static int __init db1200_dev_init(void)return platform_add_devices (db1200_devs,ARRAY_SIZE (db1200_devs)); }device_initcall (db1200_dev_init); - -/* au1200fb calls these: STERBT EINEN TRAGISCHEN TOD!!! */ -int board_au1200fb_panel (void ) -{ -return (bcsr_read (BCSR_SWITCHES ) >>8 ) &0x0f ; -} - -int board_au1200fb_panel_init (void ) -{ -/* Apply power */ -bcsr_mod (BCSR_BOARD ,0 ,BCSR_BOARD_LCDVEE |BCSR_BOARD_LCDVDD | -BCSR_BOARD_LCDBL ); -return 0 ; -} - -int board_au1200fb_panel_shutdown (void ) -{ -/* Remove power */ -bcsr_mod (BCSR_BOARD ,BCSR_BOARD_LCDVEE |BCSR_BOARD_LCDVDD | -BCSR_BOARD_LCDBL ,0 ); -return 0 ; -}
arch/mips/alchemy/devboards/db1300.c +29 -23
73 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1200.c +31 -24
87 lines not on this page · raw message
arch/mips/include/asm/mach-au1x00/au1200fb.h new file +14 -0
@@ -0,0 +1,14 @@ +/* +* platform data for au1200fb driver. +*/ + +#ifndef _AU1200FB_PLAT_H_ +#define _AU1200FB_PLAT_H_ + +struct au1200fb_platdata { +int (*panel_index)(void ); +int (*panel_init)(void ); +int (*panel_shutdown)(void ); +}; + +#endif
drivers/video/au1200fb.c +110 -131
427 lines not on this page · raw message
Signature · 1 line
1.7.7.1
Re: [PATCH 09/18] MIPS: Alchemy: move au1200fb global functions to
No (n)ack or comments received, so I've queued this for 3.3. Thanks,
Ralf
PATCH 10/18 MIPS: Alchemy: Merge PB1200 support into DB1200 code.
In reply to Manuel LaussThe PB1200 is basically a DB1200 with additional MMC and camera sockets and different base addresses for external hardware (CPLD, IDE, Net, NAND).
This patch implements the missing PB1200 features in DB1200 support code and runtime board detection.
Tested on DB1200 only.
--- arch/mips/alchemy/Kconfig | 10 +- arch/mips/alchemy/Platform | 9 +- arch/mips/alchemy/devboards/Makefile | 1 - arch/mips/alchemy/devboards/db1200.c | 245 +++++++++++++- arch/mips/alchemy/devboards/pb1200.c | 471 ---------------------------- arch/mips/configs/pb1200_defconfig | 170 ---------- arch/mips/include/asm/mach-db1x00/db1200.h | 11 +- arch/mips/include/asm/mach-pb1x00/pb1200.h | 139 -------- 8 files changed, 238 insertions(+), 818 deletions(-) delete mode 100644 arch/mips/alchemy/devboards/pb1200.c delete mode 100644 arch/mips/configs/pb1200_defconfig delete mode 100644 arch/mips/include/asm/mach-pb1x00/pb1200.h
arch/mips/alchemy/Kconfig +1 -9
@@ -42,7 +42,7 @@ config MIPS_DB1100 select SYS_HAS_EARLY_PRINTK config MIPS_DB1200 - bool "Alchemy DB1200 board" + bool "Alchemy DB1200/PB1200 board" select ALCHEMY_GPIOINT_AU1000 select DMA_COHERENT select MIPS_DISABLE_OBSOLETE_IDE
@@ -85,14 +85,6 @@ config MIPS_PB1100 select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_HAS_EARLY_PRINTK -config MIPS_PB1200 - bool "Alchemy PB1200 board" - select ALCHEMY_GPIOINT_AU1000 - select DMA_NONCOHERENT - select MIPS_DISABLE_OBSOLETE_IDE - select SYS_SUPPORTS_LITTLE_ENDIAN - select SYS_HAS_EARLY_PRINTK - config MIPS_PB1500 bool "Alchemy PB1500 board" select ALCHEMY_GPIOINT_AU1000
arch/mips/alchemy/Platform +1 -8
@@ -26,13 +26,6 @@ cflags-$(CONFIG_MIPS_PB1550) += -I$(srctree)/arch/mips/include/asm/mach-pb1x00 load-$(CONFIG_MIPS_PB1550) += 0xffffffff80100000 # -# AMD Alchemy Pb1200 eval board -# -platform-$(CONFIG_MIPS_PB1200) += alchemy/devboards/ -cflags-$(CONFIG_MIPS_PB1200) += -I$(srctree)/arch/mips/include/asm/mach-pb1x00 -load-$(CONFIG_MIPS_PB1200) += 0xffffffff80100000 - -# # AMD Alchemy Db1000 eval board # platform-$(CONFIG_MIPS_DB1000) += alchemy/devboards/
@@ -61,7 +54,7 @@ cflags-$(CONFIG_MIPS_DB1550) += -I$(srctree)/arch/mips/include/asm/mach-db1x00 load-$(CONFIG_MIPS_DB1550) += 0xffffffff80100000 # -# AMD Alchemy Db1200 eval board +# AMD Alchemy Db1200/Pb1200 eval boards # platform-$(CONFIG_MIPS_DB1200) += alchemy/devboards/ cflags-$(CONFIG_MIPS_DB1200) += -I$(srctree)/arch/mips/include/asm/mach-db1x00
arch/mips/alchemy/devboards/Makefile +0 -1
@@ -5,7 +5,6 @@ obj-y += prom.o bcsr.o platform.o obj-$(CONFIG_PM) += pm.o obj-$(CONFIG_MIPS_PB1100) += pb1100.o -obj-$(CONFIG_MIPS_PB1200) += pb1200.o obj-$(CONFIG_MIPS_PB1500) += pb1500.o obj-$(CONFIG_MIPS_PB1550) += pb1550.o obj-$(CONFIG_MIPS_DB1000) += db1x00.o
arch/mips/alchemy/devboards/db1200.c +227 -18
318 lines not on this page · raw message
arch/mips/alchemy/devboards/pb1200.c deleted +0 -471
471 lines not on this page · raw message
arch/mips/configs/pb1200_defconfig deleted +0 -170
170 lines not on this page · raw message
arch/mips/include/asm/mach-db1x00/db1200.h +9 -2
@@ -43,15 +43,20 @@#define BCSR_INT_PC1EJECT 0x0800#define BCSR_INT_SD0INSERT 0x1000#define BCSR_INT_SD0EJECT 0x2000 +#define BCSR_INT_SD1INSERT 0x4000 +#define BCSR_INT_SD1EJECT 0x8000 -#define IDE_PHYS_ADDR 0x18800000#define IDE_REG_SHIFT 5 -#define DB1200_IDE_PHYS_ADDR IDE_PHYS_ADDR +#define DB1200_IDE_PHYS_ADDR 0x18800000#define DB1200_IDE_PHYS_LEN (16 << IDE_REG_SHIFT)#define DB1200_ETH_PHYS_ADDR 0x19000300#define DB1200_NAND_PHYS_ADDR 0x20000000 +#define PB1200_IDE_PHYS_ADDR 0x0C800000 +#define PB1200_ETH_PHYS_ADDR 0x0D000300 +#define PB1200_NAND_PHYS_ADDR 0x1C000000 +/* * External Interrupts for DBAu1200 as of 8/6/2004. * Bit positions in the CPLD registers can be calculated by taking
@@ -77,6 +82,8 @@ enum external_db1200_ints {DB1200_PC1_EJECT_INT ,DB1200_SD0_INSERT_INT ,DB1200_SD0_EJECT_INT , +PB1200_SD1_INSERT_INT , +PB1200_SD1_EJECT_INT , DB1200_INT_END = DB1200_INT_BEGIN + 15, };
arch/mips/include/asm/mach-pb1x00/pb1200.h deleted +0 -139
139 lines not on this page · raw message
Signature · 1 line
1.7.7.1
Ralf Baechle
AppliedRe: [PATCH 10/18] MIPS: Alchemy: Merge PB1200 support into DB1200 code.
Queued for 3.3. Thanks,
Ralf
PATCH 11/18 MIPS: Alchemy: one kernel for DB1000/DB1500/DB1100
In reply to Manuel LaussThese 3 boards are very similar; with this patch a single kernel image which runs on all three can be built.
Tested on DB1500 and DB1100.
--- arch/mips/alchemy/Kconfig | 21 +-- arch/mips/alchemy/Platform | 16 +-- arch/mips/alchemy/devboards/Makefile | 4 +- arch/mips/alchemy/devboards/db1000.c | 267 ++++++++++++++++++++++++ arch/mips/alchemy/devboards/db1x00.c | 256 ----------------------- arch/mips/alchemy/devboards/prom.c | 4 +- arch/mips/configs/db1000_defconfig | 369 ++++++++++++++++++++++++++++------ arch/mips/configs/db1100_defconfig | 122 ----------- arch/mips/configs/db1500_defconfig | 128 ------------ drivers/net/irda/au1k_ir.c | 10 +- drivers/video/au1100fb.c | 12 - 11 files changed, 584 insertions(+), 625 deletions(-) create mode 100644 arch/mips/alchemy/devboards/db1000.c delete mode 100644 arch/mips/alchemy/devboards/db1x00.c delete mode 100644 arch/mips/configs/db1100_defconfig delete mode 100644 arch/mips/configs/db1500_defconfig
arch/mips/alchemy/Kconfig +3 -18
@@ -27,17 +27,12 @@ config MIPS_MTX1 select SYS_HAS_EARLY_PRINTK config MIPS_DB1000 - bool "Alchemy DB1000 board" + bool "Alchemy DB1000/DB1500/DB1100 boards" select ALCHEMY_GPIOINT_AU1000 select DMA_NONCOHERENT select HW_HAS_PCI - select SYS_SUPPORTS_LITTLE_ENDIAN - select SYS_HAS_EARLY_PRINTK - -config MIPS_DB1100 - bool "Alchemy DB1100 board" - select ALCHEMY_GPIOINT_AU1000 - select DMA_NONCOHERENT + select MIPS_DISABLE_OBSOLETE_IDE + select SYS_SUPPORTS_BIG_ENDIAN select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_HAS_EARLY_PRINTK
@@ -57,16 +52,6 @@ config MIPS_DB1300 select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_HAS_EARLY_PRINTK -config MIPS_DB1500 - bool "Alchemy DB1500 board" - select ALCHEMY_GPIOINT_AU1000 - select DMA_NONCOHERENT - select HW_HAS_PCI - select MIPS_DISABLE_OBSOLETE_IDE - select SYS_SUPPORTS_BIG_ENDIAN - select SYS_SUPPORTS_LITTLE_ENDIAN - select SYS_HAS_EARLY_PRINTK - config MIPS_DB1550 bool "Alchemy DB1550 board" select ALCHEMY_GPIOINT_AU1000
arch/mips/alchemy/Platform +1 -15
@@ -26,27 +26,13 @@ cflags-$(CONFIG_MIPS_PB1550) += -I$(srctree)/arch/mips/include/asm/mach-pb1x00 load-$(CONFIG_MIPS_PB1550) += 0xffffffff80100000 # -# AMD Alchemy Db1000 eval board +# AMD Alchemy Db1000/Db1500/Db1100 eval boards # platform-$(CONFIG_MIPS_DB1000) += alchemy/devboards/ cflags-$(CONFIG_MIPS_DB1000) += -I$(srctree)/arch/mips/include/asm/mach-db1x00 load-$(CONFIG_MIPS_DB1000) += 0xffffffff80100000 # -# AMD Alchemy Db1100 eval board -# -platform-$(CONFIG_MIPS_DB1100) += alchemy/devboards/ -cflags-$(CONFIG_MIPS_DB1100) += -I$(srctree)/arch/mips/include/asm/mach-db1x00 -load-$(CONFIG_MIPS_DB1100) += 0xffffffff80100000 - -# -# AMD Alchemy Db1500 eval board -# -platform-$(CONFIG_MIPS_DB1500) += alchemy/devboards/ -cflags-$(CONFIG_MIPS_DB1500) += -I$(srctree)/arch/mips/include/asm/mach-db1x00 -load-$(CONFIG_MIPS_DB1500) += 0xffffffff80100000 - -# # AMD Alchemy Db1550 eval board # platform-$(CONFIG_MIPS_DB1550) += alchemy/devboards/
arch/mips/alchemy/devboards/Makefile +1 -3
@@ -7,9 +7,7 @@ obj-$(CONFIG_PM) += pm.o obj-$(CONFIG_MIPS_PB1100) += pb1100.o obj-$(CONFIG_MIPS_PB1500) += pb1500.o obj-$(CONFIG_MIPS_PB1550) += pb1550.o -obj-$(CONFIG_MIPS_DB1000) += db1x00.o -obj-$(CONFIG_MIPS_DB1100) += db1x00.o +obj-$(CONFIG_MIPS_DB1000) += db1000.o obj-$(CONFIG_MIPS_DB1200) += db1200.o obj-$(CONFIG_MIPS_DB1300) += db1300.o -obj-$(CONFIG_MIPS_DB1500) += db1x00.o obj-$(CONFIG_MIPS_DB1550) += db1550.o
arch/mips/alchemy/devboards/db1000.c new file +267 -0
267 lines not on this page · raw message
arch/mips/alchemy/devboards/db1x00.c deleted +0 -256
256 lines not on this page · raw message
arch/mips/alchemy/devboards/prom.c +2 -2
@@ -34,8 +34,8 @@#include <prom.h> #if defined(CONFIG_MIPS_DB1000 ) || \ - defined(CONFIG_MIPS_PB1100 ) || defined(CONFIG_MIPS_DB1100 ) || \ - defined(CONFIG_MIPS_PB1500 ) || defined(CONFIG_MIPS_DB1500 ) + defined(CONFIG_MIPS_PB1100 ) || \ + defined(CONFIG_MIPS_PB1500 )#define ALCHEMY_BOARD_DEFAULT_MEMSIZE 0x04000000#else /* Au1550/Au1200-based develboards */
arch/mips/configs/db1000_defconfig +305 -64
423 lines not on this page · raw message
arch/mips/configs/db1100_defconfig deleted +0 -122
122 lines not on this page · raw message
arch/mips/configs/db1500_defconfig deleted +0 -128
128 lines not on this page · raw message
drivers/net/irda/au1k_ir.c +5 -5
@@ -32,7 +32,7 @@#include <asm/irq.h> #include <asm/io.h> #include <asm/au1000.h> -#if defined(CONFIG_MIPS_DB1000 ) || defined(CONFIG_MIPS_DB1100 ) +#if defined(CONFIG_MIPS_DB1000 )#include <asm/mach-db1x00/bcsr.h> #else #error au1k_ir: unsupported board
@@ -274,7 +274,7 @@ static int au1k_irda_net_init(struct net_device *dev) aup->tx_db_inuse[i] = pDB; } -#if defined(CONFIG_MIPS_DB1000 ) || defined(CONFIG_MIPS_DB1100 ) +#if defined(CONFIG_MIPS_DB1000 )/* power on */ bcsr_mod (BCSR_RESETS ,BCSR_RESETS_IRDA_MODE_MASK ,BCSR_RESETS_IRDA_MODE_FULL );
@@ -662,7 +662,7 @@ au1k_irda_set_speed(struct net_device *dev, int speed)u32 control;int ret =0 , timeout =10 , i;volatile ring_dest_t *ptxd; -#if defined(CONFIG_MIPS_DB1000 ) || defined(CONFIG_MIPS_DB1100 ) +#if defined(CONFIG_MIPS_DB1000 )unsigned long irda_resets;#endif
@@ -711,14 +711,14 @@ au1k_irda_set_speed(struct net_device *dev, int speed) }if (speed ==4000000 ) { -#if defined(CONFIG_MIPS_DB1000 ) || defined(CONFIG_MIPS_DB1100 ) +#if defined(CONFIG_MIPS_DB1000 )bcsr_mod (BCSR_RESETS ,0 ,BCSR_RESETS_FIR_SEL );#else /* Pb1000 and Pb1100 */ writel (1 <<13 ,CPLD_AUX1 );#endif }else { -#if defined(CONFIG_MIPS_DB1000 ) || defined(CONFIG_MIPS_DB1100 ) +#if defined(CONFIG_MIPS_DB1000 )bcsr_mod (BCSR_RESETS ,BCSR_RESETS_FIR_SEL ,0 );#else /* Pb1000 and Pb1100 */ writel (readl (CPLD_AUX1 ) & ~(1 <<13 ),CPLD_AUX1 );
drivers/video/au1100fb.c +0 -12
@@ -60,18 +60,6 @@#include "au1100fb.h" -/* -* Sanity check. If this is a new Au1100 based board, search for -* the PB1100 ifdefs to make sure you modify the code accordingly. -*/ -#if defined(CONFIG_MIPS_PB1100 ) -#include <asm/mach-pb1x00/pb1100.h> -#elif defined(CONFIG_MIPS_DB1100 ) -#include <asm/mach-db1x00/db1x00.h> -#else -#error "Unknown Au1100 board, Au1100 FB driver not supported" -#endif -#define DRIVER_NAME "au1100fb"#define DRIVER_DESC "LCD controller driver for AU1100 processors"
Signature · 1 line
1.7.7.1
Ralf Baechle
AppliedRe: [PATCH 11/18] MIPS: Alchemy: one kernel for DB1000/DB1500/DB1100
Queued for 3.3. Thanks,
Ralf
PATCH 12/18 MIPS: Alchemy: MMC for DB1100
In reply to Manuel LaussThis patch hooks up the 2 MMC sockets on the DB1100 board.
--- arch/mips/alchemy/devboards/db1000.c | 201 ++++++++++++++++++++++++++++++++++ 1 files changed, 201 insertions(+), 0 deletions(-)
arch/mips/alchemy/devboards/db1000.c +201 -0
@@ -23,10 +23,13 @@#include <linux/gpio.h> #include <linux/init.h> #include <linux/interrupt.h> +#include <linux/leds.h> +#include <linux/mmc/host.h> #include <linux/platform_device.h> #include <linux/pm.h> #include <asm/mach-au1x00/au1000.h> #include <asm/mach-au1x00/au1000_dma.h> +#include <asm/mach-au1x00/au1100_mmc.h> #include <asm/mach-db1x00/bcsr.h> #include <asm/reboot.h> #include <prom.h>
@@ -194,6 +197,198 @@ static struct platform_device db1x00_audio_dev = { .name = "db1000-audio", }; +/******************************************************************************/ + +static irqreturn_t db1100_mmc_cd (int irq,void *ptr) +{ +void (*mmc_cd)(struct mmc_host *,unsigned long ); +/* link against CONFIG_MMC=m */ + mmc_cd =symbol_get (mmc_detect_change); +mmc_cd (ptr,msecs_to_jiffies (500 )); +symbol_put (mmc_detect_change); + +return IRQ_HANDLED ; +} + +static int db1100_mmc_cd_setup (void *mmc_host,int en) +{ +int ret =0 ; + +if (en) { +irq_set_irq_type (AU1100_GPIO19_INT ,IRQ_TYPE_EDGE_BOTH ); + ret =request_irq (AU1100_GPIO19_INT , db1100_mmc_cd,0 , +"sd0_cd" , mmc_host); + }else +free_irq (AU1100_GPIO19_INT , mmc_host); +return ret; +} + +static int db1100_mmc1_cd_setup (void *mmc_host,int en) +{ +int ret =0 ; + +if (en) { +irq_set_irq_type (AU1100_GPIO20_INT ,IRQ_TYPE_EDGE_BOTH ); + ret =request_irq (AU1100_GPIO20_INT , db1100_mmc_cd,0 , +"sd1_cd" , mmc_host); + }else +free_irq (AU1100_GPIO20_INT , mmc_host); +return ret; +} + +static int db1100_mmc_card_readonly (void *mmc_host) +{ +/* testing suggests that this bit is inverted */ +return (bcsr_read (BCSR_STATUS ) &BCSR_STATUS_SD0WP ) ?0 :1 ; +} + +static int db1100_mmc_card_inserted (void *mmc_host) +{ +return !alchemy_gpio_get_value (19 ); +} + +static void db1100_mmc_set_power (void *mmc_host,int state) +{ +if (state) { +bcsr_mod (BCSR_BOARD ,0 ,BCSR_BOARD_SD0PWR ); +msleep (400 );/* stabilization time */ + }else +bcsr_mod (BCSR_BOARD ,BCSR_BOARD_SD0PWR ,0 ); +} + +static void db1100_mmcled_set (struct led_classdev *led,enum led_brightness b) +{ +if (b !=LED_OFF ) +bcsr_mod (BCSR_LEDS ,BCSR_LEDS_LED0 ,0 ); +else +bcsr_mod (BCSR_LEDS ,0 ,BCSR_LEDS_LED0 ); +} + +static struct led_classdev db1100_mmc_led = { + .brightness_set = db1100_mmcled_set, +}; + +static int db1100_mmc1_card_readonly (void *mmc_host) +{ +return (bcsr_read (BCSR_BOARD ) &BCSR_BOARD_SD1WP ) ?1 :0 ; +} + +static int db1100_mmc1_card_inserted (void *mmc_host) +{ +return !alchemy_gpio_get_value (20 ); +} + +static void db1100_mmc1_set_power (void *mmc_host,int state) +{ +if (state) { +bcsr_mod (BCSR_BOARD ,0 ,BCSR_BOARD_SD1PWR ); +msleep (400 );/* stabilization time */ + }else +bcsr_mod (BCSR_BOARD ,BCSR_BOARD_SD1PWR ,0 ); +} + +static void db1100_mmc1led_set (struct led_classdev *led,enum led_brightness b) +{ +if (b !=LED_OFF ) +bcsr_mod (BCSR_LEDS ,BCSR_LEDS_LED1 ,0 ); +else +bcsr_mod (BCSR_LEDS ,0 ,BCSR_LEDS_LED1 ); +} + +static struct led_classdev db1100_mmc1_led = { + .brightness_set = db1100_mmc1led_set, +}; + +static struct au1xmmc_platform_data db1100_mmc_platdata[2 ] = { + [0 ] = { + .cd_setup = db1100_mmc_cd_setup, + .set_power = db1100_mmc_set_power, + .card_inserted = db1100_mmc_card_inserted, + .card_readonly = db1100_mmc_card_readonly, + .led = &db1100_mmc_led, + }, + [1 ] = { + .cd_setup = db1100_mmc1_cd_setup, + .set_power = db1100_mmc1_set_power, + .card_inserted = db1100_mmc1_card_inserted, + .card_readonly = db1100_mmc1_card_readonly, + .led = &db1100_mmc1_led, + }, +}; + +static struct resource au1100_mmc0_resources[] = { + [0 ] = { + .start =AU1100_SD0_PHYS_ADDR , + .end =AU1100_SD0_PHYS_ADDR +0xfff , + .flags =IORESOURCE_MEM , + }, + [1 ] = { + .start =AU1100_SD_INT , + .end =AU1100_SD_INT , + .flags =IORESOURCE_IRQ , + }, + [2 ] = { + .start =DMA_ID_SD0_TX , + .end =DMA_ID_SD0_TX , + .flags =IORESOURCE_DMA , + }, + [3 ] = { + .start =DMA_ID_SD0_RX , + .end =DMA_ID_SD0_RX , + .flags =IORESOURCE_DMA , + } +}; + +static u64 au1xxx_mmc_dmamask =DMA_BIT_MASK (32 ); + +static struct platform_device db1100_mmc0_dev = { + .name ="au1xxx-mmc" , + .id =0 , + .dev = { + .dma_mask = &au1xxx_mmc_dmamask, + .coherent_dma_mask =DMA_BIT_MASK (32 ), + .platform_data = &db1100_mmc_platdata[0 ], + }, + .num_resources =ARRAY_SIZE (au1100_mmc0_resources), + .resource = au1100_mmc0_resources, +}; + +static struct resource au1100_mmc1_res[] = { + [0 ] = { + .start =AU1100_SD1_PHYS_ADDR , + .end =AU1100_SD1_PHYS_ADDR +0xfff , + .flags =IORESOURCE_MEM , + }, + [1 ] = { + .start =AU1100_SD_INT , + .end =AU1100_SD_INT , + .flags =IORESOURCE_IRQ , + }, + [2 ] = { + .start =DMA_ID_SD1_TX , + .end =DMA_ID_SD1_TX , + .flags =IORESOURCE_DMA , + }, + [3 ] = { + .start =DMA_ID_SD1_RX , + .end =DMA_ID_SD1_RX , + .flags =IORESOURCE_DMA , + } +}; + +static struct platform_device db1100_mmc1_dev = { + .name ="au1xxx-mmc" , + .id =1 , + .dev = { + .dma_mask = &au1xxx_mmc_dmamask, + .coherent_dma_mask =DMA_BIT_MASK (32 ), + .platform_data = &db1100_mmc_platdata[1 ], + }, + .num_resources =ARRAY_SIZE (au1100_mmc1_res), + .resource = au1100_mmc1_res, +}; + +static struct platform_device *db1x00_devs[] = { &db1x00_codec_dev, &alchemy_ac97c_dma_dev,
@@ -203,6 +398,8 @@ static struct platform_device *db1x00_devs[] = {static struct platform_device *db1100_devs[] = { &au1100_lcd_device, + &db1100_mmc0_dev, + &db1100_mmc1_dev, };static int __init db1000_dev_init (void )
@@ -224,6 +421,10 @@ static int __init db1000_dev_init(void) d1 =AU1100_GPIO3_INT ; s0 =AU1100_GPIO1_INT ; s1 =AU1100_GPIO4_INT ; + +gpio_direction_input (19 );/* sd0 cd# */ +gpio_direction_input (20 );/* sd1 cd# */ +platform_add_devices (db1100_devs,ARRAY_SIZE (db1100_devs)); }else if (board ==BCSR_WHOAMI_DB1000 ) { c0 =AU1000_GPIO2_INT ;
Signature · 1 line
1.7.7.1
Ralf Baechle
AppliedRe: [PATCH 12/18] MIPS: Alchemy: MMC for DB1100
Queued for 3.3. Thanks,
Ralf
PATCH 1/1 MIPS: Alchemy: db1100: fix build: missing module.h
fix build against 3.2-rc1, add a missing module.h (symbol_get/symbol_put).
---
Please fold into "[PATCH 12/18] MIPS: Alchemy: MMC for DB1100".
arch/mips/alchemy/devboards/db1000.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/mips/alchemy/devboards/db1000.c +1 -0
@@ -25,6 +25,7 @@#include <linux/interrupt.h> #include <linux/leds.h> #include <linux/mmc/host.h> +#include <linux/module.h> #include <linux/platform_device.h> #include <linux/pm.h> #include <linux/spi/spi.h>
Signature · 1 line
1.7.7.2
Re: [PATCH] MIPS: Alchemy: db1100: fix build: missing module.h
Quoted 5 lines · Manuel Lauss
fix build against 3.2-rc1, add a missing
module.h(symbol_get/symbol_put).Signed-off-by Manuel Lauss <[email protected]>---
Please fold into "[PATCH 12/18] MIPS: Alchemy: MMC for DB1100".
Done, but:
patching file arch/mips/alchemy/devboards/db1000.c Hunk #1 succeeded at 25 with fuzz 1.
As with every use of symbol_get I wonder if this is not a case of doing something the very wrong way.
Ralf
PATCH 13/18 MIPS: Alchemy: add RTC device to all devboards
In reply to Manuel LaussAll Devboards can use the 32kHz counter as a RTC device.
Also delete the custom CMOS RTC header, which can be used for the DS1693 on the PB1500. But since it doesn't have a buffer battery it is as useful as the on-chip RTC which I prefer.
--- arch/mips/alchemy/devboards/db1200.c | 8 ----- arch/mips/alchemy/devboards/db1300.c | 8 ----- arch/mips/alchemy/devboards/db1550.c | 8 ----- arch/mips/alchemy/devboards/platform.c | 13 +++++++- arch/mips/include/asm/mach-pb1x00/mc146818rtc.h | 34 ----------------------- 5 files changed, 11 insertions(+), 60 deletions(-) delete mode 100644 arch/mips/include/asm/mach-pb1x00/mc146818rtc.h
arch/mips/alchemy/devboards/db1200.c +0 -8
@@ -312,13 +312,6 @@ static struct platform_device db1200_ide_dev = {/**********************************************************************/ -static struct platform_device db1200_rtc_dev = { - .name ="rtc-au1xxx" , - .id =-1 , -}; - -/**********************************************************************/ -/* SD carddetects: they're supposed to be edge-triggered, but ack * doesn't seem to work (CPLD Rev 2). Instead, the screaming one * is disabled and its counterpart enabled. The 500ms timeout is
@@ -755,7 +748,6 @@ static struct platform_device *db1200_devs[] __initdata = { &db1200_mmc0_dev, &au1200_lcd_dev, &db1200_eth_dev, - &db1200_rtc_dev, &db1200_nand_dev, &db1200_audiodma_dev, &db1200_audio_dev,
arch/mips/alchemy/devboards/db1300.c +0 -8
@@ -385,13 +385,6 @@ static struct platform_device db1300_5waysw_dev = {/**********************************************************************/ -static struct platform_device db1300_rtc_dev = { - .name ="rtc-au1xxx" , - .id =-1 , -}; - -/**********************************************************************/ -static struct pata_platform_info db1300_ide_info = { .ioport_shift =DB1300_IDE_REG_SHIFT , };
@@ -696,7 +689,6 @@ static struct platform_device *db1300_dev[] __initdata = { &db1300_eth_dev, &db1300_i2c_dev, &db1300_5waysw_dev, - &db1300_rtc_dev, &db1300_nand_dev, &db1300_ide_dev, &db1300_sd0_dev,
arch/mips/alchemy/devboards/db1550.c +0 -8
@@ -372,13 +372,6 @@ static struct platform_device db1550_sndi2s_dev = {/**********************************************************************/ -static struct platform_device db1550_rtc_dev = { - .name ="rtc-au1xxx" , - .id =-1 , -}; - -/**********************************************************************/ -static int db1550_map_pci_irq (const struct pci_dev *d,u8 slot,u8 pin) {if ((slot <11 ) || (slot >13 ) || pin ==0 )
@@ -427,7 +420,6 @@ static struct platform_device db1550_pci_host_dev = {/**********************************************************************/ static struct platform_device *db1550_devs[]__initdata = { - &db1550_rtc_dev, &db1550_nand_dev, &db1550_i2c_dev, &db1550_ac97_dev,
arch/mips/alchemy/devboards/platform.c +11 -2
@@ -13,6 +13,13 @@#include <asm/reboot.h> #include <asm/mach-db1x00/bcsr.h> + +static struct platform_device db1x00_rtc_dev = { + .name ="rtc-au1xxx" , + .id =-1 , +}; + +static void db1x_power_off (void ) {bcsr_write (BCSR_RESETS ,0 );
@@ -25,7 +32,7 @@ static void db1x_reset(char *c)bcsr_write (BCSR_SYSTEM ,0 ); } -static int __init db1x_poweroff_setup (void ) +static int __init db1x_late_setup (void ) {if (!pm_power_off) pm_power_off = db1x_power_off;
@@ -34,9 +41,11 @@ static int __init db1x_poweroff_setup(void)if (!_machine_restart) _machine_restart = db1x_reset; +platform_device_register (&db1x00_rtc_dev); +return 0 ; } -late_initcall (db1x_poweroff_setup); +device_initcall (db1x_late_setup);/* register a pcmcia socket */ int __init db1x_register_pcmcia_socket(phys_addr_t pcmcia_attr_start,
arch/mips/include/asm/mach-pb1x00/mc146818rtc.h deleted +0 -34
@@ -1,34 +0,0 @@ -/* -* This file is subject to the terms and conditions of the GNU General Public -* License. See the file "COPYING" in the main directory of this archive -* for more details. -* -* Copyright (C) 1998, 2001, 03 by Ralf Baechle -* -* RTC routines for PC style attached Dallas chip. -*/ -#ifndef __ASM_MACH_AU1XX_MC146818RTC_H -#define __ASM_MACH_AU1XX_MC146818RTC_H - -#include <asm/io.h> -#include <asm/mach-au1x00/au1000.h> - -#define RTC_PORT (x) (0x0c000000 + (x)) -#define RTC_IRQ 8 -#define PB1500_RTC_ADDR 0x0c000000 - -static inline unsigned char CMOS_READ (unsigned long offset) -{ - offset <<=2 ; -return (u8)(au_readl (offset +PB1500_RTC_ADDR ) &0xff ); -} - -static inline void CMOS_WRITE (unsigned char data,unsigned long offset) -{ - offset <<=2 ; -au_writel (data, offset +PB1500_RTC_ADDR ); -} - -#define RTC_ALWAYS_BCD 1 - -#endif /* __ASM_MACH_AU1XX_MC146818RTC_H */
Signature · 1 line
1.7.7.1
Ralf Baechle
AppliedRe: [PATCH 13/18] MIPS: Alchemy: add RTC device to all devboards
Queued for 3.3. Thanks,
Ralf
PATCH 14/18 MTD: nand: make au1550nd.c a platform_driver
In reply to Manuel LaussTransform the au1550nd.c driver into a platform_driver and hook it up in the PB1550 board (gen_nand works fine on the DB1550, but since I don't have a PB1550 to test this driver stays for now).
---
Tested on the DB1550 as well.
I'd like for this to go in via the MIPS tree if at all possible.
arch/mips/alchemy/devboards/pb1550.c | 66 ++++++ arch/mips/include/asm/mach-au1x00/au1550nd.h | 16 ++ drivers/mtd/nand/au1550nd.c | 308 +++++++++++--------------- 3 files changed, 215 insertions(+), 175 deletions(-) create mode 100644 arch/mips/include/asm/mach-au1x00/au1550nd.h
arch/mips/alchemy/devboards/pb1550.c +66 -0
@@ -24,6 +24,7 @@#include <linux/platform_device.h> #include <asm/mach-au1x00/au1000.h> #include <asm/mach-au1x00/au1xxx_dbdma.h> +#include <asm/mach-au1x00/au1550nd.h> #include <asm/mach-au1x00/gpio.h> #include <asm/mach-db1x00/bcsr.h> #include "platform.h"
@@ -131,6 +132,67 @@ static struct platform_device pb1550_i2c_dev = { .resource = au1550_psc2_res, }; +static struct mtd_partition pb1550_nand_parts[] = { + [0 ] = { + .name ="NAND FS 0" , + .offset =0 , + .size =8 *1024 *1024 , + }, + [1 ] = { + .name ="NAND FS 1" , + .offset =MTDPART_OFS_APPEND , + .size =MTDPART_SIZ_FULL , + }, +}; + +static struct au1550nd_platdata pb1550_nand_pd = { + .parts = pb1550_nand_parts, + .num_parts =ARRAY_SIZE (pb1550_nand_parts), + .devwidth =0 ,/* x8 NAND default, needs fixing up */ +}; + +static struct resource pb1550_nand_res[] = { + [0 ] = { + .start =0x20000000 , + .end =0x20000fff , + .flags =IORESOURCE_MEM , + }, +}; + +static struct platform_device pb1550_nand_dev = { + .name ="au1550-nand" , + .id =-1 , + .resource = pb1550_nand_res, + .num_resources =ARRAY_SIZE (pb1550_nand_res), + .dev = { + .platform_data = &pb1550_nand_pd, + }, +}; + +static void __init pb1550_nand_setup (void ) +{ +int boot_swapboot = (au_readl (MEM_STSTAT ) & (0x7 <<1 )) | + ((bcsr_read (BCSR_STATUS ) >>6 ) &0x1 ); + +switch (boot_swapboot) { +case 0 : +case 2 : +case 8 : +case 0xC : +case 0xD : +/* x16 NAND Flash */ + pb1550_nand_pd.devwidth =1 ; +/* fallthrough */ +case 1 : +case 9 : +case 3 : +case 0xE : +case 0xF : +/* x8 NAND, already set up */ +platform_device_register (&pb1550_nand_dev); + } +} +static int __init pb1550_dev_init (void ) {int swapped;
@@ -168,6 +230,10 @@ static int __init pb1550_dev_init(void)AU1000_PCMCIA_IO_PHYS_ADDR +0x008010000 -1 , AU1550_GPIO201_205_INT, AU1550_GPIO1_INT, 0, 0, 1); +/* NAND setup */ +gpio_direction_input (206 );/* GPIO206 high */ +pb1550_nand_setup (); + swapped =bcsr_read (BCSR_STATUS ) &BCSR_STATUS_PB1550_SWAPBOOT ;db1x_register_norflash (128 *1024 *1024 ,4 , swapped);platform_device_register (&pb1550_pci_host);
arch/mips/include/asm/mach-au1x00/au1550nd.h new file +16 -0
@@ -0,0 +1,16 @@ +/* +* platform data for the Au1550 NAND driver +*/ + +#ifndef _AU1550ND_H_ +#define _AU1550ND_H_ + +#include <linux/mtd/partitions.h> + +struct au1550nd_platdata { +struct mtd_partition *parts; +int num_parts; +int devwidth;/* 0 = 8bit device, 1 = 16bit device */ +}; + +#endif
drivers/mtd/nand/au1550nd.c +133 -175
413 lines not on this page · raw message
Signature · 1 line
1.7.7.1
Re: [PATCH 14/18] MTD: nand: make au1550nd.c a platform_driver
Quoted 9 lines · Manuel Lauss
Transform the
au1550nd.cdriver into aplatform_driverand hook it up in the PB1550 board (gen_nandworks fine on the DB1550, but since I don't have a PB1550 to test this driver stays for now).Signed-off-by Manuel Lauss <[email protected]>---
Tested on the DB1550 as well.
I'd like for this to go in via the MIPS tree if at all possible.
No (n)acks or comments received, so queued for 3.3. Thanks,
Ralf
PATCH 15/18 MIPS: Alchemy: remove unused board headers
In reply to Manuel LaussThe information in those headers is no longer necessary.
--- arch/mips/alchemy/Platform | 3 - arch/mips/include/asm/mach-db1x00/db1x00.h | 63 ------------------------ arch/mips/include/asm/mach-pb1x00/pb1550.h | 73 ---------------------------- 3 files changed, 0 insertions(+), 139 deletions(-) delete mode 100644 arch/mips/include/asm/mach-db1x00/db1x00.h delete mode 100644 arch/mips/include/asm/mach-pb1x00/pb1550.h
arch/mips/alchemy/Platform +0 -3
@@ -8,21 +8,18 @@ platform-$(CONFIG_MIPS_ALCHEMY) += alchemy/common/ # AMD Alchemy Pb1100 eval board # platform-$(CONFIG_MIPS_PB1100) += alchemy/devboards/ -cflags-$(CONFIG_MIPS_PB1100) += -I$(srctree)/arch/mips/include/asm/mach-pb1x00 load-$(CONFIG_MIPS_PB1100) += 0xffffffff80100000 # # AMD Alchemy Pb1500 eval board # platform-$(CONFIG_MIPS_PB1500) += alchemy/devboards/ -cflags-$(CONFIG_MIPS_PB1500) += -I$(srctree)/arch/mips/include/asm/mach-pb1x00 load-$(CONFIG_MIPS_PB1500) += 0xffffffff80100000 # # AMD Alchemy Pb1550 eval board # platform-$(CONFIG_MIPS_PB1550) += alchemy/devboards/ -cflags-$(CONFIG_MIPS_PB1550) += -I$(srctree)/arch/mips/include/asm/mach-pb1x00 load-$(CONFIG_MIPS_PB1550) += 0xffffffff80100000 #
arch/mips/include/asm/mach-db1x00/db1x00.h deleted +0 -63
63 lines not on this page · raw message
arch/mips/include/asm/mach-pb1x00/pb1550.h deleted +0 -73
73 lines not on this page · raw message
Signature · 1 line
1.7.7.1
Ralf Baechle
AppliedRe: [PATCH 15/18] MIPS: Alchemy: remove unused board headers
Queued for 3.3. Thanks,
Ralf
PATCH 16/18 net/irda: convert au1k_ir to platform driver.
In reply to Manuel LaussModerate driver cleanup:
convert to platform driver, get rid of board-specific code.
Driver loads and runs on a DB1100 board. But since I have no other IrDA hardware to exchange data with I can't say whether it really sends and receives.
---
I'd like for this to go in via the MIPS tree since other mips patches depend on it.
arch/mips/include/asm/mach-au1x00/au1000.h | 52 +- drivers/net/irda/Kconfig | 6 +- drivers/net/irda/au1000_ircc.h | 125 --- drivers/net/irda/au1k_ir.c | 1226 +++++++++++++++------------ 4 files changed, 700 insertions(+), 709 deletions(-) delete mode 100644 drivers/net/irda/au1000_ircc.h
arch/mips/include/asm/mach-au1x00/au1000.h +14 -38
@@ -1265,44 +1265,20 @@ enum soc_au1200_ints {#define SSI_ENABLE_CD (1 << 1)#define SSI_ENABLE_E (1 << 0) -/* IrDA Controller */ -#define IRDA_BASE 0xB0300000 -#define IR_RING_PTR_STATUS (IRDA_BASE + 0x00) -#define IR_RING_BASE_ADDR_H (IRDA_BASE + 0x04) -#define IR_RING_BASE_ADDR_L (IRDA_BASE + 0x08) -#define IR_RING_SIZE (IRDA_BASE + 0x0C) -#define IR_RING_PROMPT (IRDA_BASE + 0x10) -#define IR_RING_ADDR_CMPR (IRDA_BASE + 0x14) -#define IR_INT_CLEAR (IRDA_BASE + 0x18) -#define IR_CONFIG_1 (IRDA_BASE + 0x20) -# define IR_RX_INVERT_LED (1 << 0) -# define IR_TX_INVERT_LED (1 << 1) -# define IR_ST (1 << 2) -# define IR_SF (1 << 3) -# define IR_SIR (1 << 4) -# define IR_MIR (1 << 5) -# define IR_FIR (1 << 6) -# define IR_16CRC (1 << 7) -# define IR_TD (1 << 8) -# define IR_RX_ALL (1 << 9) -# define IR_DMA_ENABLE (1 << 10) -# define IR_RX_ENABLE (1 << 11) -# define IR_TX_ENABLE (1 << 12) -# define IR_LOOPBACK (1 << 14) -# define IR_SIR_MODE (IR_SIR | IR_DMA_ENABLE | \ - IR_RX_ALL | IR_RX_ENABLE | IR_SF | IR_16CRC) -#define IR_SIR_FLAGS (IRDA_BASE + 0x24) -#define IR_ENABLE (IRDA_BASE + 0x28) -# define IR_RX_STATUS (1 << 9) -# define IR_TX_STATUS (1 << 10) -#define IR_READ_PHY_CONFIG (IRDA_BASE + 0x2C) -#define IR_WRITE_PHY_CONFIG (IRDA_BASE + 0x30) -#define IR_MAX_PKT_LEN (IRDA_BASE + 0x34) -#define IR_RX_BYTE_CNT (IRDA_BASE + 0x38) -#define IR_CONFIG_2 (IRDA_BASE + 0x3C) -# define IR_MODE_INV (1 << 0) -# define IR_ONE_PIN (1 << 1) -#define IR_INTERFACE_CONFIG (IRDA_BASE + 0x40) + +/* +* The IrDA peripheral has an IRFIRSEL pin, but on the DB/PB boards it's not +* used to select FIR/SIR mode on the transceiver but as a GPIO. Instead a +* CPLD has to be told about the mode. +*/ +#define AU1000_IRDA_PHY_MODE_OFF 0 +#define AU1000_IRDA_PHY_MODE_SIR 1 +#define AU1000_IRDA_PHY_MODE_FIR 2 + +struct au1k_irda_platform_data { +void (*set_phy_mode)(int mode); +}; +/* GPIO */ #define SYS_PINFUNC 0xB190002C
drivers/net/irda/Kconfig +5 -1
@@ -313,8 +313,12 @@ config TOSHIBA_FIR donauboe. config AU1000_FIR - tristate "Alchemy Au1000 SIR/FIR" + tristate "Alchemy IrDA SIR/FIR" depends on IRDA && MIPS_ALCHEMY + help + Say Y/M here to build suppor the the IrDA peripheral on the + Alchemy Au1000 and Au1100 SoCs. + Say M to build a module; it will be called au1k_ir.ko config SMC_IRCC_FIR tristate "SMSC IrCC (EXPERIMENTAL)"
drivers/net/irda/au1000_ircc.h deleted +0 -125
125 lines not on this page · raw message
drivers/net/irda/au1k_ir.c +681 -545
1,426 lines not on this page · raw message
Signature · 1 line
1.7.7.1
Re: [PATCH 16/18] net/irda: convert au1k_ir to platform driver.
Quoted 7 lines · Manuel Lauss
Moderate driver cleanup:
convert to platform driver, get rid of board-specific code.Driver loads and runs on a DB1100 board. But since I have no other IrDA hardware to exchange data with I can't say whether it really sends and receives.
Quoted 6 lines
Cc Samuel Ortiz <[email protected]>Signed-off-by Manuel Lauss <[email protected]>---
I'd like for this to go in via the MIPS tree since other mips patches depend on it.
No (n)acks or comments received so queued for 3.3. Thanks,
Ralf
PATCH 17/18 MIPS: Alchemy: hook up IrDA on DB1000/DB1100
In reply to Manuel LaussAdd necessary transceiver control platform data and hook up the IrDA peripheral on the DB1000 and DB1100 boards.
--- arch/mips/alchemy/devboards/db1000.c | 74 ++++++++++++++++++++++++++-------- 1 files changed, 57 insertions(+), 17 deletions(-)
arch/mips/alchemy/devboards/db1000.c +57 -17
@@ -65,23 +65,6 @@ void __init board_setup(void) DB1000_BCSR_PHYS_ADDR + DB1000_BCSR_HEXLED_OFS);printk (KERN_INFO "AMD Alchemy %s Board\n" ,board_type_str ()); - -#if defined(CONFIG_IRDA ) && defined(CONFIG_AU1000_FIR ) - { -u32 pin_func; - -/* Set IRFIRSEL instead of GPIO15 */ - pin_func =au_readl (SYS_PINFUNC ) |SYS_PF_IRF ; -au_writel (pin_func,SYS_PINFUNC ); -/* Power off until the driver is in use */ -bcsr_mod (BCSR_RESETS ,BCSR_RESETS_IRDA_MODE_MASK , -BCSR_RESETS_IRDA_MODE_OFF ); - } -#endif -bcsr_write (BCSR_PCMCIA ,0 );/* turn off PCMCIA power */ - -/* Enable GPIO[31:0] inputs */ -alchemy_gpio1_input_enable (); }
@@ -388,6 +371,57 @@ static struct platform_device db1100_mmc1_dev = { .resource = au1100_mmc1_res, }; +/******************************************************************************/ + +static void db1000_irda_set_phy_mode (int mode) +{ +unsigned short mask =BCSR_RESETS_IRDA_MODE_MASK |BCSR_RESETS_FIR_SEL ; + +switch (mode) { +case AU1000_IRDA_PHY_MODE_OFF : +bcsr_mod (BCSR_RESETS , mask,BCSR_RESETS_IRDA_MODE_OFF ); +break ; +case AU1000_IRDA_PHY_MODE_SIR : +bcsr_mod (BCSR_RESETS , mask,BCSR_RESETS_IRDA_MODE_FULL ); +break ; +case AU1000_IRDA_PHY_MODE_FIR : +bcsr_mod (BCSR_RESETS , mask,BCSR_RESETS_IRDA_MODE_FULL | +BCSR_RESETS_FIR_SEL ); +break ; + } +} + +static struct au1k_irda_platform_data db1000_irda_platdata = { + .set_phy_mode = db1000_irda_set_phy_mode, +}; + +static struct resource au1000_irda_res[] = { + [0 ] = { + .start =AU1000_IRDA_PHYS_ADDR , + .end =AU1000_IRDA_PHYS_ADDR +0x0fff , + .flags =IORESOURCE_MEM , + }, + [1 ] = { + .start =AU1000_IRDA_TX_INT , + .end =AU1000_IRDA_TX_INT , + .flags =IORESOURCE_IRQ , + }, + [2 ] = { + .start =AU1000_IRDA_RX_INT , + .end =AU1000_IRDA_RX_INT , + .flags =IORESOURCE_IRQ , + }, +}; + +static struct platform_device db1000_irda_dev = { + .name ="au1000-irda" , + .id =-1 , + .dev = { + .platform_data = &db1000_irda_platdata, + }, + .resource = au1000_irda_res, + .num_resources =ARRAY_SIZE (au1000_irda_res), +};static struct platform_device *db1x00_devs[] = { &db1x00_codec_dev,
@@ -396,10 +430,15 @@ static struct platform_device *db1x00_devs[] = { &db1x00_audio_dev, }; +static struct platform_device *db1000_devs[] = { + &db1000_irda_dev, +}; +static struct platform_device *db1100_devs[] = { &au1100_lcd_device, &db1100_mmc0_dev, &db1100_mmc1_dev, + &db1000_irda_dev, };static int __init db1000_dev_init (void )
@@ -433,6 +472,7 @@ static int __init db1000_dev_init(void) d1 =AU1000_GPIO3_INT ; s0 =AU1000_GPIO1_INT ; s1 =AU1000_GPIO4_INT ; +platform_add_devices (db1000_devs,ARRAY_SIZE (db1000_devs)); }else return 0 ;/* unknown board, no further dev setup to do */
Signature · 1 line
1.7.7.1
Ralf Baechle
AppliedRe: [PATCH 17/18] MIPS: Alchemy: hook up IrDA on DB1000/DB1100
Queued for 3.3. Thanks,
Ralf
PATCH 18/18 MIPS: Alchemy: Touchscreen support on DB1100
In reply to Manuel LaussWire up the ADS7846 touchscreen controller on the DB1100.
--- arch/mips/alchemy/devboards/db1000.c | 56 ++++++++++++++++++++++++++++++++++ 1 files changed, 56 insertions(+), 0 deletions(-)
arch/mips/alchemy/devboards/db1000.c +56 -0
@@ -27,6 +27,9 @@#include <linux/mmc/host.h> #include <linux/platform_device.h> #include <linux/pm.h> +#include <linux/spi/spi.h> +#include <linux/spi/spi_gpio.h> +#include <linux/spi/ads7846.h> #include <asm/mach-au1x00/au1000.h> #include <asm/mach-au1x00/au1000_dma.h> #include <asm/mach-au1x00/au1100_mmc.h>
@@ -423,6 +426,43 @@ static struct platform_device db1000_irda_dev = { .num_resources = ARRAY_SIZE(au1000_irda_res), }; +/******************************************************************************/ + +static struct ads7846_platform_data db1100_touch_pd = { + .model =7846 , + .vref_mv =3300 , + .gpio_pendown =21 , +}; + +static struct spi_gpio_platform_data db1100_spictl_pd = { + .sck =209 , + .mosi =208 , + .miso =207 , + .num_chipselect =1 , +}; + +static struct spi_board_info db1100_spi_info[]__initdata = { + [0 ] = { + .modalias ="ads7846" , + .max_speed_hz =3250000 , + .bus_num =0 , + .chip_select =0 , + .mode =0 , + .irq =AU1100_GPIO21_INT , + .platform_data = &db1100_touch_pd, + .controller_data = (void *)210 ,/* for spi_gpio: CS# GPIO210 */ + }, +}; + +static struct platform_device db1100_spi_dev = { + .name ="spi_gpio" , + .id =0 , + .dev = { + .platform_data = &db1100_spictl_pd, + }, +}; + +static struct platform_device *db1x00_devs[] = { &db1x00_codec_dev, &alchemy_ac97c_dma_dev,
@@ -439,12 +479,14 @@ static struct platform_device *db1100_devs[] = { &db1100_mmc0_dev, &db1100_mmc1_dev, &db1000_irda_dev, + &db1100_spi_dev, };static int __init db1000_dev_init (void ) {int board =BCSR_WHOAMI_BOARD (bcsr_read (BCSR_WHOAMI ));int c0, c1, d0, d1, s0, s1; +unsigned long pfc;if (board ==BCSR_WHOAMI_DB1500 ) { c0 =AU1500_GPIO2_INT ;
@@ -463,6 +505,20 @@ static int __init db1000_dev_init(void)gpio_direction_input (19 );/* sd0 cd# */ gpio_direction_input (20 );/* sd1 cd# */ +gpio_direction_input (21 );/* touch pendown# */ +gpio_direction_input (207 );/* SPI MISO */ +gpio_direction_output (208 ,0 );/* SPI MOSI */ +gpio_direction_output (209 ,1 );/* SPI SCK */ +gpio_direction_output (210 ,1 );/* SPI CS# */ + +/* spi_gpio on SSI0 pins */ + pfc =__raw_readl ((void __iomem *)SYS_PINFUNC ); + pfc |= (1 <<0 );/* SSI0 pins as GPIOs */ +__raw_writel (pfc, (void __iomem *)SYS_PINFUNC ); +wmb (); + +spi_register_board_info (db1100_spi_info, +ARRAY_SIZE (db1100_spi_info));platform_add_devices (db1100_devs,ARRAY_SIZE (db1100_devs)); }else if (board ==BCSR_WHOAMI_DB1000 ) {
Signature · 1 line
1.7.7.1
Ralf Baechle
AppliedRe: [PATCH 18/18] MIPS: Alchemy: Touchscreen support on DB1100
Queued for 3.3. Thanks,
Ralf