From: <mar...@us...> - 2007-06-24 00:32:07
|
Revision: 1054 http://svn.sourceforge.net/hackndev/?rev=1054&view=rev Author: marex_z71 Date: 2007-06-23 17:32:02 -0700 (Sat, 23 Jun 2007) Log Message: ----------- PalmTX: remove my non-working driver which got accidentally to previous commit Removed Paths: ------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c Deleted: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-06-24 00:30:26 UTC (rev 1053) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-06-24 00:32:02 UTC (rev 1054) @@ -1,130 +0,0 @@ -#include <linux/module.h> -#include <linux/kernel.h> -#include <linux/errno.h> -#include <linux/interrupt.h> -#include <linux/init.h> -#include <linux/device.h> -#include <linux/platform_device.h> -#include <linux/delay.h> -#include <linux/irq.h> - -#include <asm/mach-types.h> -#include <asm/hardware.h> -#include <../drivers/pcmcia/soc_common.h> -#include <asm/arch/pxa-regs.h> -#include <asm/arch/palmtx-gpio.h> -#include <asm/irq.h> - -/* This is ugly, move it to palmtx-gpio.h after debuging is done */ -#define PALMTX_PCMCIA_READY 116 -#define PALMTX_PCMCIA_POWER 94 -#define PALMTX_PCMCIA_RESET 108 - -static int palmtx_pcmcia_hw_init (struct soc_pcmcia_socket *skt) -{ - set_irq_type(PALMTX_PCMCIA_READY, IRQT_FALLING); - skt->irq = IRQ_GPIO(PALMTX_PCMCIA_READY); - - printk("pcmcia_hw_init %d\n", skt->nr); - return 0; -} - -static void palmtx_pcmcia_hw_shutdown (struct soc_pcmcia_socket *skt) -{ - -} - - -static void -palmtx_pcmcia_socket_state (struct soc_pcmcia_socket *skt, struct pcmcia_state *state) -{ - state->detect = 1; /* always inserted */ - state->ready = GET_GPIO(PALMTX_PCMCIA_READY) ? 1 : 0; - state->bvd1 = 1; - state->bvd2 = 1; - state->wrprot = 1; - state->vs_3v = 1; - state->vs_Xv = 0; -} - - - -static int -palmtx_pcmcia_configure_socket (struct soc_pcmcia_socket *skt, const socket_state_t *state) -{ - printk ("palmtx_pcmcia_config_skt: Reset:%d Vcc:%d\n", (state->flags & SS_RESET) ? 1 : 0, - state->Vcc); - - /* GPIO 94 is power according to GPIO map */ - SET_GPIO(PALMTX_PCMCIA_POWER, 1); - - /* GPIO 108 is reset according to GPIO map */ - SET_GPIO(PALMTX_PCMCIA_RESET, (state->flags & SS_RESET) ? 1 : 0); - - return 0; -} - -static void palmtx_pcmcia_socket_init(struct soc_pcmcia_socket *skt) -{ - printk("palmtx_pcmcia_socket_init\n"); - -} - - - -static void palmtx_pcmcia_socket_suspend (struct soc_pcmcia_socket *skt) -{ - printk("palmtx_pcmcia_socket_suspend\n"); -} - -static struct pcmcia_low_level palmtx_pcmcia_ops = { - .owner = THIS_MODULE, - - .first = 0, - .nr = 1, - - .hw_init = palmtx_pcmcia_hw_init, - .hw_shutdown = palmtx_pcmcia_hw_shutdown, - - .socket_state = palmtx_pcmcia_socket_state, - .configure_socket = palmtx_pcmcia_configure_socket, - - .socket_init = palmtx_pcmcia_socket_init, - .socket_suspend = palmtx_pcmcia_socket_suspend, -}; - - -static void palmtx_pcmcia_release (struct device * dev) -{ -} - - -static struct platform_device palmtx_pcmcia_device = { - .name = "pxa2xx-pcmcia", - .id = 0, - .dev = { - .platform_data = &palmtx_pcmcia_ops, - .release = palmtx_pcmcia_release - } -}; - -static int __init palmtx_pcmcia_init(void) -{ - printk ("pcmcia_init\n"); - - if(!machine_is_xscale_palmtx()) return -ENODEV; - - return platform_device_register (&palmtx_pcmcia_device); -} - -static void __exit palmtx_pcmcia_exit(void) -{ - platform_device_unregister (&palmtx_pcmcia_device); -} - -module_init(palmtx_pcmcia_init); -module_exit(palmtx_pcmcia_exit); - -MODULE_AUTHOR ("Marek Vasut <mar...@gm...>"); -MODULE_DESCRIPTION ("PCMCIA support for Palm TX"); -MODULE_LICENSE ("GPL"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2007-08-12 15:55:31
|
Revision: 1235 http://hackndev.svn.sourceforge.net/hackndev/?rev=1235&view=rev Author: marex_z71 Date: 2007-08-12 08:55:18 -0700 (Sun, 12 Aug 2007) Log Message: ----------- PalmTX: pcmcia corrections, still not working Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-11 05:21:30 UTC (rev 1234) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-12 15:55:18 UTC (rev 1235) @@ -58,7 +58,7 @@ static int palmtx_pcmcia_hw_init (struct soc_pcmcia_socket *skt) { - set_irq_type(PALMTX_PCMCIA_IRQ, IRQT_FALLING); +/* set_irq_type(PALMTX_PCMCIA_IRQ, IRQT_FALLING);*/ /* turns off backlight :-/ */ skt->irq = IRQ_GPIO(PALMTX_PCMCIA_IRQ); palmtx_pcmcia_dbg("%s:%i, Socket:%d\n", __FUNCTION__, __LINE__, skt->nr); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2007-08-27 15:41:15
|
Revision: 1272 http://hackndev.svn.sourceforge.net/hackndev/?rev=1272&view=rev Author: marex_z71 Date: 2007-08-25 12:48:28 -0700 (Sat, 25 Aug 2007) Log Message: ----------- PalmTX: typo correction in pcmcia code and formating fix Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-25 19:44:23 UTC (rev 1271) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-25 19:48:28 UTC (rev 1272) @@ -55,16 +55,16 @@ static int palmtx_pcmcia_hw_init (struct soc_pcmcia_socket *skt) { - GPSR(GPIO48_nPOE_MD) = GPIO_bit(GPIO48_nPOE_MD) | - GPIO_bit(GPIO49_nPWE_MD) | - GPIO_bit(GPIO50_nPIOR_MD) | - GPIO_bit(GPIO51_nPIOW_MD) | - GPIO_bit(GPIO85_nPCE_1_MD) | - GPIO_bit(GPIO53_nPCE_2_MD) | - GPIO_bit(GPIO54_pSKTSEL_MD) | - GPIO_bit(GPIO55_nPREG_MD) | - GPIO_bit(GPIO56_nPWAIT_MD) | - GPIO_bit(GPIO57_nIOIS16_MD) | + GPSR(GPIO48_nPOE_MD) = GPIO_bit(GPIO48_nPOE_MD) | + GPIO_bit(GPIO49_nPWE_MD) | + GPIO_bit(GPIO50_nPIOR_MD) | + GPIO_bit(GPIO51_nPIOW_MD) | + GPIO_bit(GPIO85_nPCE_1_MD) | + GPIO_bit(GPIO53_nPCE_2_MD) | + GPIO_bit(GPIO54_pSKTSEL_MD) | + GPIO_bit(GPIO55_nPREG_MD) | + GPIO_bit(GPIO56_nPWAIT_MD) | + GPIO_bit(GPIO57_nIOIS16_MD); pxa_gpio_mode(GPIO48_nPOE_MD); pxa_gpio_mode(GPIO49_nPWE_MD); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2007-08-27 15:43:28
|
Revision: 1270 http://hackndev.svn.sourceforge.net/hackndev/?rev=1270&view=rev Author: marex_z71 Date: 2007-08-25 12:39:34 -0700 (Sat, 25 Aug 2007) Log Message: ----------- PalmTX: corrected PCMCIA driver, all control lines should be correctly set up now Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-25 03:09:05 UTC (rev 1269) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-25 19:39:34 UTC (rev 1270) @@ -55,21 +55,16 @@ static int palmtx_pcmcia_hw_init (struct soc_pcmcia_socket *skt) { - GPSR(GPIO48_nPOE) = GPIO_bit(GPIO48_nPOE) | - GPIO_bit(GPIO49_nPWE) | - GPIO_bit(GPIO85_nPCE_1_MD) | - GPIO_bit(GPIO53_nPCE_2_MD) | - GPIO_bit(GPIO54_pSKTSEL_MD) | - GPIO_bit(GPIO55_nPREG_MD) | - GPIO_bit(GPIO56_nPWAIT_MD); - pxa_gpio_mode(GPIO48_nPOE_MD); pxa_gpio_mode(GPIO49_nPWE_MD); + pxa_gpio_mode(GPIO50_nPIOR_MD); + pxa_gpio_mode(GPIO51_nPIOW_MD); pxa_gpio_mode(GPIO85_nPCE_1_MD); pxa_gpio_mode(GPIO53_nPCE_2_MD); pxa_gpio_mode(GPIO54_pSKTSEL_MD); pxa_gpio_mode(GPIO55_nPREG_MD); pxa_gpio_mode(GPIO56_nPWAIT_MD); + pxa_gpio_mode(GPIO57_nIOIS16_MD); skt->irq = IRQ_GPIO(GPIO_NR_PALMTX_PCMCIA_READY); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2007-08-27 15:52:32
|
Revision: 1271 http://hackndev.svn.sourceforge.net/hackndev/?rev=1271&view=rev Author: marex_z71 Date: 2007-08-25 12:44:23 -0700 (Sat, 25 Aug 2007) Log Message: ----------- PalmTX: add some more init code Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-25 19:39:34 UTC (rev 1270) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_pcmcia.c 2007-08-25 19:44:23 UTC (rev 1271) @@ -55,6 +55,17 @@ static int palmtx_pcmcia_hw_init (struct soc_pcmcia_socket *skt) { + GPSR(GPIO48_nPOE_MD) = GPIO_bit(GPIO48_nPOE_MD) | + GPIO_bit(GPIO49_nPWE_MD) | + GPIO_bit(GPIO50_nPIOR_MD) | + GPIO_bit(GPIO51_nPIOW_MD) | + GPIO_bit(GPIO85_nPCE_1_MD) | + GPIO_bit(GPIO53_nPCE_2_MD) | + GPIO_bit(GPIO54_pSKTSEL_MD) | + GPIO_bit(GPIO55_nPREG_MD) | + GPIO_bit(GPIO56_nPWAIT_MD) | + GPIO_bit(GPIO57_nIOIS16_MD) | + pxa_gpio_mode(GPIO48_nPOE_MD); pxa_gpio_mode(GPIO49_nPWE_MD); pxa_gpio_mode(GPIO50_nPIOR_MD); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |