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. |