Support for the Arcom Zeus SBC, #2
Subsystems (4)
cover Support for the Arcom Zeus SBC, #2
The Arcom Zeus is a pxa270 board with a PC104 bus, vaguely similar to the Arcom Viper. The following patches adds support for most of the on-board devices (though sound and CAN are still missing).
Patches are against PXA devel branch. Please note that they depend on the following patch, currently queued in Eric's fix branch:
http://git.kernel.org/?p=linux/kernel/git/ycmiao/pxa-linux-2.6.git;a=commit;h=b2b36316626f0d6b92c3675a2aa2726efc71d146
The defconfig patch has been already posted before, and can be found in the archives at the following address:
http://lists.infradead.org/pipermail/linux-arm-kernel/2009-November/004014.html
This work started from Arcom's 2.6.16, but all bugs are of course mine.
M.
Signature · 1 line
I'm the slime oozin' out from your TV set...
PATCH 1/2 Basic support for Arcom Zeus SBC
--- arch/arm/mach-pxa/Kconfig | 7 + arch/arm/mach-pxa/Makefile | 1 + arch/arm/mach-pxa/include/mach/zeus.h | 82 ++++ arch/arm/mach-pxa/zeus.c | 791 +++++++++++++++++++++++++++++++++ 4 files changed, 881 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-pxa/include/mach/zeus.h create mode 100644 arch/arm/mach-pxa/zeus.c
arch/arm/mach-pxa/Kconfig +7 -0
@@ -64,6 +64,13 @@ config ARCH_VIPER select PXA_HAVE_BOARD_IRQS select PXA_HAVE_ISA_IRQS +config MACH_ARCOM_ZEUS + bool "Arcom/Eurotech ZEUS SBC" + select PXA27x + select ISA + select PXA_HAVE_BOARD_IRQS + select PXA_HAVE_ISA_IRQS + config MACH_BALLOON3 bool "Balloon 3 board" select PXA27x
arch/arm/mach-pxa/Makefile +1 -0
@@ -38,6 +38,7 @@ obj-$(CONFIG_MACH_SAAR) += saar.o # 3rd Party Dev Platforms obj-$(CONFIG_ARCH_PXA_IDP) += idp.o obj-$(CONFIG_ARCH_VIPER) += viper.o +obj-$(CONFIG_MACH_ARCOM_ZEUS) += zeus.o obj-$(CONFIG_MACH_BALLOON3) += balloon3.o obj-$(CONFIG_MACH_CSB726) += csb726.o obj-$(CONFIG_CSB726_CSB701) += csb701.o
arch/arm/mach-pxa/include/mach/zeus.h new file +82 -0
82 lines not on this page · raw message
arch/arm/mach-pxa/zeus.c new file +791 -0
791 lines not on this page · raw message
Signature · 5 lines
1.6.0.4 -- I'm the slime oozin' out from your TV set...
PATCH 2/2 Make Viper pcmcia support more generic to support Zeus
In reply to Marc ZyngierThe Arcom Zeus CF slot requires the same kind of support as the Viper. To avoid code duplication, introduce a platform device that abstracts the differences.
This also allows for the removal of the ugly export of viper_cf_rst().
--- arch/arm/mach-pxa/Kconfig | 7 ++ arch/arm/mach-pxa/include/mach/arcom-pcmcia.h | 11 +++ arch/arm/mach-pxa/include/mach/viper.h | 2 - arch/arm/mach-pxa/viper.c | 20 ++++- arch/arm/mach-pxa/zeus.c | 29 ++++++ drivers/pcmcia/Kconfig | 2 +- drivers/pcmcia/Makefile | 2 +- drivers/pcmcia/pxa2xx_base.c | 3 +- drivers/pcmcia/pxa2xx_viper.c | 119 ++++++++++++++++++------- 9 files changed, 155 insertions(+), 40 deletions(-) create mode 100644 arch/arm/mach-pxa/include/mach/arcom-pcmcia.h
arch/arm/mach-pxa/Kconfig +7 -0
@@ -63,6 +63,7 @@ config ARCH_VIPER select HAVE_PWM select PXA_HAVE_BOARD_IRQS select PXA_HAVE_ISA_IRQS + select ARCOM_PCMCIA config MACH_ARCOM_ZEUS bool "Arcom/Eurotech ZEUS SBC"
@@ -70,6 +71,12 @@ config MACH_ARCOM_ZEUS select ISA select PXA_HAVE_BOARD_IRQS select PXA_HAVE_ISA_IRQS + select ARCOM_PCMCIA + +config ARCOM_PCMCIA + bool + help + Generic option for Arcom Viper/Zeus PCMCIA config MACH_BALLOON3 bool "Balloon 3 board"
arch/arm/mach-pxa/include/mach/arcom-pcmcia.h new file +11 -0
@@ -0,0 +1,11 @@ +#ifndef __ARCOM_PCMCIA_H +#define __ARCOM_PCMCIA_H + +struct arcom_pcmcia_pdata { +int cd_gpio; +int rdy_gpio; +int pwr_gpio; +void (*reset)(int state); +}; + +#endif
arch/arm/mach-pxa/include/mach/viper.h +0 -2
@@ -85,8 +85,6 @@/* Interrupt and Configuration Register (VIPER_ICR) */ /* This is a write only register. Only CF_RST is used under Linux */ -extern void viper_cf_rst (int state); -#define VIPER_ICR_RETRIG (1 << 0)#define VIPER_ICR_AUTO_CLR (1 << 1)#define VIPER_ICR_R_DIS (1 << 2)
arch/arm/mach-pxa/viper.c +18 -2
@@ -47,6 +47,7 @@#include <mach/pxafb.h> #include <plat/i2c.h> #include <mach/regs-uart.h> +#include <mach/arcom-pcmcia.h> #include <mach/viper.h> #include <asm/setup.h>
@@ -76,14 +77,28 @@ static void viper_icr_clear_bit(unsigned int bit) }/* This function is used from the pcmcia module to reset the CF */ -void viper_cf_rst (int state) +static void viper_cf_reset (int state) {if (state)viper_icr_set_bit (VIPER_ICR_CF_RST );else viper_icr_clear_bit (VIPER_ICR_CF_RST ); } -EXPORT_SYMBOL (viper_cf_rst); + +static struct arcom_pcmcia_pdata viper_pcmcia_info = { + .cd_gpio =VIPER_CF_CD_GPIO , + .rdy_gpio =VIPER_CF_RDY_GPIO , + .pwr_gpio =VIPER_CF_POWER_GPIO , + .reset = viper_cf_reset, +}; + +static struct platform_device viper_pcmcia_device = { + .name ="viper-pcmcia" , + .id =-1 , + .dev = { + .platform_data = &viper_pcmcia_info, + }, +};/* * The CPLD version register was not present on VIPER boards prior to
@@ -685,6 +700,7 @@ static struct platform_device *viper_devs[] __initdata = { &viper_mtd_devices[0 ], &viper_mtd_devices[1 ], &viper_backlight_device, + &viper_pcmcia_device, }; static mfp_cfg_t viper_pin_config[] __initdata = {
arch/arm/mach-pxa/zeus.c +29 -0
@@ -43,6 +43,7 @@#include <mach/mfp-pxa27x.h> #include <mach/pm.h> #include <mach/audio.h> +#include <mach/arcom-pcmcia.h> #include <mach/zeus.h> #include "generic.h"
@@ -428,6 +429,33 @@ static struct platform_device zeus_leds_device = { }, }; +static void zeus_cf_reset (int state) +{ +u16 cpld_state =__raw_readw (ZEUS_CPLD_CONTROL ); + +if (state) + cpld_state |=ZEUS_CPLD_CONTROL_CF_RST ; +else + cpld_state &= ~ZEUS_CPLD_CONTROL_CF_RST ; + +__raw_writew (cpld_state,ZEUS_CPLD_CONTROL ); +} + +static struct arcom_pcmcia_pdata zeus_pcmcia_info = { + .cd_gpio =ZEUS_CF_CD_GPIO , + .rdy_gpio =ZEUS_CF_RDY_GPIO , + .pwr_gpio =ZEUS_CF_PWEN_GPIO , + .reset = zeus_cf_reset, +}; + +static struct platform_device zeus_pcmcia_device = { + .name ="zeus-pcmcia" , + .id =-1 , + .dev = { + .platform_data = &zeus_pcmcia_info, + }, +}; +static struct platform_device *zeus_devices[]__initdata = { &zeus_serial_device, &zeus_mtd_devices[0 ],
@@ -436,6 +464,7 @@ static struct platform_device *zeus_devices[] __initdata = { &zeus_sram_device, &pxa2xx_spi_ssp3_device, &zeus_leds_device, + &zeus_pcmcia_device, };/* AC'97 */
drivers/pcmcia/Kconfig +1 -1
@@ -221,7 +221,7 @@ config PCMCIA_PXA2XX depends on ARM && ARCH_PXA && PCMCIA depends on (ARCH_LUBBOCK || MACH_MAINSTONE || PXA_SHARPSL \ || MACH_ARMCORE || ARCH_PXA_PALM || TRIZEPS_PCMCIA \ - || ARCH_VIPER || ARCH_PXA_ESERIES || MACH_STARGATE2) + || ARCOM_PCMCIA || ARCH_PXA_ESERIES || MACH_STARGATE2) help Say Y here to include support for the PXA2xx PCMCIA controller
drivers/pcmcia/Makefile +1 -1
@@ -69,7 +69,7 @@ pxa2xx-obj-$(CONFIG_ARCH_LUBBOCK) += pxa2xx_lubbock_cs.o pxa2xx-obj-$(CONFIG_MACH_MAINSTONE) += pxa2xx_mainstone.o pxa2xx-obj-$(CONFIG_PXA_SHARPSL) += pxa2xx_sharpsl.o pxa2xx-obj-$(CONFIG_MACH_ARMCORE) += pxa2xx_cm_x2xx_cs.o -pxa2xx-obj-$(CONFIG_ARCH_VIPER) += pxa2xx_viper.o +pxa2xx-obj-$(CONFIG_ARCOM_PCMCIA) += pxa2xx_viper.o pxa2xx-obj-$(CONFIG_TRIZEPS_PCMCIA) += pxa2xx_trizeps4.o pxa2xx-obj-$(CONFIG_MACH_PALMTX) += pxa2xx_palmtx.o pxa2xx-obj-$(CONFIG_MACH_PALMTC) += pxa2xx_palmtc.o
drivers/pcmcia/pxa2xx_base.c +2 -1
@@ -214,7 +214,8 @@ static void pxa2xx_configure_sockets(struct device *dev)MECR |=MECR_CIT ;/* Set MECR:NOS (Number Of Sockets) */ -if ((ops->first + ops->nr) >1 ||machine_is_viper ()) +if ((ops->first + ops->nr) >1 || +machine_is_viper () ||machine_is_arcom_zeus ())MECR |=MECR_NOS ;else MECR &= ~MECR_NOS ;
drivers/pcmcia/pxa2xx_viper.c +86 -33
224 lines not on this page · raw message
Signature · 6 lines
1.6.0.4 -- I'm the slime oozin' out from your TV set...
cover Support for the Arcom Zeus SBC, #2
In reply to Marc ZyngierQuoted 8 lines · Marc Zyngier
The Arcom Zeus is a pxa270 board with a PC104 bus, vaguely similar to the Arcom Viper. The following patches adds support for most of the on-board devices (though sound and CAN are still missing).
Patches are against PXA devel branch. Please note that they depend on the following patch, currently queued in Eric's fix branch:
http://git.kernel.org/?p=linux/kernel/git/ycmiao/pxa-linux-2.6.git;a=commit;h=b2b36316626f0d6b92c3675a2aa2726efc71d146
Quoted 5 lines
The defconfig patch has been already posted before, and can be found in the archives at the following address:
http://lists.infradead.org/pipermail/linux-arm-kernel/2009-November/004014.htmlThis work started from Arcom's 2.6.16, but all bugs are of course mine.
Marc,
What's the difference of this #2 from #1 you posted earlier?
Quoted 5 lines
? ? ? ?M.
--
I'm the slime oozin' out from your TV set...
cover Support for the Arcom Zeus SBC, #2
Quoted 14 lines · On Tue, 17 Nov 2009 00:38:53 +0800 Eric Miao <[email protected]> wrote:
Quoted 12 lines · Marc Zyngier
The Arcom Zeus is a pxa270 board with a PC104 bus, vaguely similar to the Arcom Viper. The following patches adds support for most of the on-board devices (though sound and CAN are still missing).
Patches are against PXA devel branch. Please note that they depend on the following patch, currently queued in Eric's fix branch:
http://git.kernel.org/?p=linux/kernel/git/ycmiao/pxa-linux-2.6.git;a=commit;h=b2b36316626f0d6b92c3675a2aa2726efc71d146The defconfig patch has been already posted before, and can be found in the archives at the following address:
http://lists.infradead.org/pipermail/linux-arm-kernel/2009-November/004014.html
Quoted 6 lines
Quoted 2 lines
This work started from Arcom's 2.6.16, but all bugs are of course mine.
Marc,
What's the difference of this #2 from #1 you posted earlier?
#1 is based on 2.6.32-rc7. #2 is based on your PXA devel branch.
M.
Signature · 1 line
Fast. Cheap. Reliable. Pick two.
cover Support for the Arcom Zeus SBC, #2
Quoted 17 lines · Marc Zyngier
Quoted 14 lines · On Tue, 17 Nov 2009 00:38:53 +0800 Eric Miao <[email protected]> wrote:
Quoted 12 lines · Marc Zyngier
The Arcom Zeus is a pxa270 board with a PC104 bus, vaguely similar to the Arcom Viper. The following patches adds support for most of the on-board devices (though sound and CAN are still missing).
Patches are against PXA devel branch. Please note that they depend on the following patch, currently queued in Eric's fix branch:
http://git.kernel.org/?p=linux/kernel/git/ycmiao/pxa-linux-2.6.git;a=commit;h=b2b36316626f0d6b92c3675a2aa2726efc71d146The defconfig patch has been already posted before, and can be found in the archives at the following address:
http://lists.infradead.org/pipermail/linux-arm-kernel/2009-November/004014.html
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
This work started from Arcom's 2.6.16, but all bugs are of course mine.
Marc,
What's the difference of this #2 from #1 you posted earlier?
#1 is based on 2.6.32-rc7. #2 is based on your PXA devel branch.
OK, both patches look OK to me, merged into 'topic/zeus' at the moment (but will finally merged into devel) since I need 'fix' branch to hit the next -rc8 before I can rebase 'devel' on top of that.
cover Support for the Arcom Zeus SBC, #2
Quoted 26 lines · On Tue, 17 Nov 2009 05:29:30 -0600 Eric Miao <[email protected]> wrote:
Quoted 24 lines · Marc Zyngier
Quoted 21 lines · On Tue, 17 Nov 2009 00:38:53 +0800 Eric Miao <[email protected]> wrote:
Quoted 10 lines · Marc Zyngier
The Arcom Zeus is a pxa270 board with a PC104 bus, vaguely similar to the Arcom Viper. The following patches adds support for most of the on-board devices (though sound and CAN are still missing).
Patches are against PXA devel branch. Please note that they depend on the following patch, currently queued in Eric's fix branch:
http://git.kernel.org/?p=linux/kernel/git/ycmiao/pxa-linux-2.6.git;a=commit;h=b2b36316626f0d6b92c3675a2aa2726efc71d146Quoted 6 lines
The defconfig patch has been already posted before, and can be found in the archives at the following address:
http://lists.infradead.org/pipermail/linux-arm-kernel/2009-November/004014.htmlThis work started from Arcom's 2.6.16, but all bugs are of course mine.
Marc,
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
What's the difference of this #2 from #1 you posted earlier?
#1 is based on 2.6.32-rc7. #2 is based on your PXA devel branch.
OK, both patches look OK to me, merged into 'topic/zeus' at the moment (but will finally merged into devel) since I need 'fix' branch to hit the next -rc8 before I can rebase 'devel' on top of that.
Thanks. For the sake of completeness, can you also add the patch that introduced arch/arm/configs/zeus_defconfig? It was part of the first batch I sent, though I can resend it if you want.
M.
Signature · 1 line
Fast. Cheap. Reliable. Pick two.
Eric Miao
Appliedcover Support for the Arcom Zeus SBC, #2
Quoted 34 lines · Marc Zyngier
Quoted 31 lines · On Tue, 17 Nov 2009 05:29:30 -0600 Eric Miao <[email protected]> wrote:
Quoted 28 lines · Marc Zyngier
Quoted 16 lines · On Tue, 17 Nov 2009 00:38:53 +0800 Eric Miao <[email protected]> wrote:
Quoted 14 lines · Marc Zyngier
The Arcom Zeus is a pxa270 board with a PC104 bus, vaguely similar to the Arcom Viper. The following patches adds support for most of the on-board devices (though sound and CAN are still missing).
Patches are against PXA devel branch. Please note that they depend on the following patch, currently queued in Eric's fix branch:
http://git.kernel.org/?p=linux/kernel/git/ycmiao/pxa-linux-2.6.git;a=commit;h=b2b36316626f0d6b92c3675a2aa2726efc71d146The defconfig patch has been already posted before, and can be found in the archives at the following address:
http://lists.infradead.org/pipermail/linux-arm-kernel/2009-November/004014.htmlQuoted 6 lines
Quoted 2 lines
This work started from Arcom's 2.6.16, but all bugs are of course mine.
Marc,
What's the difference of this #2 from #1 you posted earlier?
#1 is based on 2.6.32-rc7. #2 is based on your PXA devel branch.
Quoted 8 lines
Quoted 3 lines
OK, both patches look OK to me, merged into 'topic/zeus' at the moment (but will finally merged into devel) since I need 'fix' branch to hit the next -rc8 before I can rebase 'devel' on top of that.
Thanks. For the sake of completeness, can you also add the patch that introduced
arch/arm/configs/zeus_defconfig? It was part of the first batch I sent, though I can resend it if you want.
Applied, thanks.