diff options
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/db1xxx_ss.c | 1 | ||||
-rw-r--r-- | drivers/pcmcia/pxa2xx_balloon3.c | 2 | ||||
-rw-r--r-- | drivers/pcmcia/pxa2xx_base.c | 1 | ||||
-rw-r--r-- | drivers/pcmcia/pxa2xx_cm_x255.c | 1 | ||||
-rw-r--r-- | drivers/pcmcia/pxa2xx_cm_x270.c | 1 | ||||
-rw-r--r-- | drivers/pcmcia/pxa2xx_cm_x2xx.c | 3 | ||||
-rw-r--r-- | drivers/pcmcia/pxa2xx_vpac270.c | 2 | ||||
-rw-r--r-- | drivers/pcmcia/sa1100_simpad.c | 35 |
8 files changed, 23 insertions, 23 deletions
diff --git a/drivers/pcmcia/db1xxx_ss.c b/drivers/pcmcia/db1xxx_ss.c index 01757f18a208..3e49df6d5e3b 100644 --- a/drivers/pcmcia/db1xxx_ss.c +++ b/drivers/pcmcia/db1xxx_ss.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/gpio.h> | 24 | #include <linux/gpio.h> |
25 | #include <linux/interrupt.h> | 25 | #include <linux/interrupt.h> |
26 | #include <linux/pm.h> | 26 | #include <linux/pm.h> |
27 | #include <linux/module.h> | ||
27 | #include <linux/platform_device.h> | 28 | #include <linux/platform_device.h> |
28 | #include <linux/resource.h> | 29 | #include <linux/resource.h> |
29 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
diff --git a/drivers/pcmcia/pxa2xx_balloon3.c b/drivers/pcmcia/pxa2xx_balloon3.c index f56d7de7c751..22a75e610f12 100644 --- a/drivers/pcmcia/pxa2xx_balloon3.c +++ b/drivers/pcmcia/pxa2xx_balloon3.c | |||
@@ -97,7 +97,7 @@ static void balloon3_pcmcia_socket_state(struct soc_pcmcia_socket *skt, | |||
97 | static int balloon3_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, | 97 | static int balloon3_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, |
98 | const socket_state_t *state) | 98 | const socket_state_t *state) |
99 | { | 99 | { |
100 | __raw_writew(BALLOON3_CF_RESET, BALLOON3_CF_CONTROL_REG | | 100 | __raw_writew(BALLOON3_CF_RESET, BALLOON3_CF_CONTROL_REG + |
101 | ((state->flags & SS_RESET) ? | 101 | ((state->flags & SS_RESET) ? |
102 | BALLOON3_FPGA_SETnCLR : 0)); | 102 | BALLOON3_FPGA_SETnCLR : 0)); |
103 | return 0; | 103 | return 0; |
diff --git a/drivers/pcmcia/pxa2xx_base.c b/drivers/pcmcia/pxa2xx_base.c index 2c540542b5af..a87e2728b2c3 100644 --- a/drivers/pcmcia/pxa2xx_base.c +++ b/drivers/pcmcia/pxa2xx_base.c | |||
@@ -231,6 +231,7 @@ void pxa2xx_configure_sockets(struct device *dev) | |||
231 | 231 | ||
232 | __raw_writel(mecr, MECR); | 232 | __raw_writel(mecr, MECR); |
233 | } | 233 | } |
234 | EXPORT_SYMBOL(pxa2xx_configure_sockets); | ||
234 | 235 | ||
235 | static const char *skt_names[] = { | 236 | static const char *skt_names[] = { |
236 | "PCMCIA socket 0", | 237 | "PCMCIA socket 0", |
diff --git a/drivers/pcmcia/pxa2xx_cm_x255.c b/drivers/pcmcia/pxa2xx_cm_x255.c index 63f4d5211ed2..0b4f946cf13a 100644 --- a/drivers/pcmcia/pxa2xx_cm_x255.c +++ b/drivers/pcmcia/pxa2xx_cm_x255.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/irq.h> | 14 | #include <linux/irq.h> |
15 | #include <linux/delay.h> | 15 | #include <linux/delay.h> |
16 | #include <linux/gpio.h> | 16 | #include <linux/gpio.h> |
17 | #include <linux/export.h> | ||
17 | 18 | ||
18 | #include <asm/mach-types.h> | 19 | #include <asm/mach-types.h> |
19 | 20 | ||
diff --git a/drivers/pcmcia/pxa2xx_cm_x270.c b/drivers/pcmcia/pxa2xx_cm_x270.c index 6ee42b4c3e68..923f315926ef 100644 --- a/drivers/pcmcia/pxa2xx_cm_x270.c +++ b/drivers/pcmcia/pxa2xx_cm_x270.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/irq.h> | 14 | #include <linux/irq.h> |
15 | #include <linux/delay.h> | 15 | #include <linux/delay.h> |
16 | #include <linux/gpio.h> | 16 | #include <linux/gpio.h> |
17 | #include <linux/export.h> | ||
17 | 18 | ||
18 | #include <asm/mach-types.h> | 19 | #include <asm/mach-types.h> |
19 | 20 | ||
diff --git a/drivers/pcmcia/pxa2xx_cm_x2xx.c b/drivers/pcmcia/pxa2xx_cm_x2xx.c index 4f09506ad8d4..6e7dcfd22ede 100644 --- a/drivers/pcmcia/pxa2xx_cm_x2xx.c +++ b/drivers/pcmcia/pxa2xx_cm_x2xx.c | |||
@@ -12,9 +12,8 @@ | |||
12 | 12 | ||
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | 14 | ||
15 | #include <asm/system.h> | ||
16 | #include <asm/mach-types.h> | 15 | #include <asm/mach-types.h> |
17 | #include <mach/system.h> | 16 | #include <mach/hardware.h> |
18 | 17 | ||
19 | int cmx255_pcmcia_init(void); | 18 | int cmx255_pcmcia_init(void); |
20 | int cmx270_pcmcia_init(void); | 19 | int cmx270_pcmcia_init(void); |
diff --git a/drivers/pcmcia/pxa2xx_vpac270.c b/drivers/pcmcia/pxa2xx_vpac270.c index e956f659089a..66ab92cf3105 100644 --- a/drivers/pcmcia/pxa2xx_vpac270.c +++ b/drivers/pcmcia/pxa2xx_vpac270.c | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | #include <asm/mach-types.h> | 18 | #include <asm/mach-types.h> |
19 | 19 | ||
20 | #include <mach/gpio.h> | 20 | #include <asm/gpio.h> |
21 | #include <mach/vpac270.h> | 21 | #include <mach/vpac270.h> |
22 | 22 | ||
23 | #include "soc_common.h" | 23 | #include "soc_common.h" |
diff --git a/drivers/pcmcia/sa1100_simpad.c b/drivers/pcmcia/sa1100_simpad.c index c998f7aaadbc..0fac9658b020 100644 --- a/drivers/pcmcia/sa1100_simpad.c +++ b/drivers/pcmcia/sa1100_simpad.c | |||
@@ -15,10 +15,6 @@ | |||
15 | #include <mach/simpad.h> | 15 | #include <mach/simpad.h> |
16 | #include "sa1100_generic.h" | 16 | #include "sa1100_generic.h" |
17 | 17 | ||
18 | extern long get_cs3_shadow(void); | ||
19 | extern void set_cs3_bit(int value); | ||
20 | extern void clear_cs3_bit(int value); | ||
21 | |||
22 | static struct pcmcia_irqs irqs[] = { | 18 | static struct pcmcia_irqs irqs[] = { |
23 | { 1, IRQ_GPIO_CF_CD, "CF_CD" }, | 19 | { 1, IRQ_GPIO_CF_CD, "CF_CD" }, |
24 | }; | 20 | }; |
@@ -26,7 +22,7 @@ static struct pcmcia_irqs irqs[] = { | |||
26 | static int simpad_pcmcia_hw_init(struct soc_pcmcia_socket *skt) | 22 | static int simpad_pcmcia_hw_init(struct soc_pcmcia_socket *skt) |
27 | { | 23 | { |
28 | 24 | ||
29 | clear_cs3_bit(VCC_3V_EN|VCC_5V_EN|EN0|EN1); | 25 | simpad_clear_cs3_bit(VCC_3V_EN|VCC_5V_EN|EN0|EN1); |
30 | 26 | ||
31 | skt->socket.pci_irq = IRQ_GPIO_CF_IRQ; | 27 | skt->socket.pci_irq = IRQ_GPIO_CF_IRQ; |
32 | 28 | ||
@@ -38,8 +34,8 @@ static void simpad_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) | |||
38 | soc_pcmcia_free_irqs(skt, irqs, ARRAY_SIZE(irqs)); | 34 | soc_pcmcia_free_irqs(skt, irqs, ARRAY_SIZE(irqs)); |
39 | 35 | ||
40 | /* Disable CF bus: */ | 36 | /* Disable CF bus: */ |
41 | //set_cs3_bit(PCMCIA_BUFF_DIS); | 37 | /*simpad_set_cs3_bit(PCMCIA_BUFF_DIS);*/ |
42 | clear_cs3_bit(PCMCIA_RESET); | 38 | simpad_clear_cs3_bit(PCMCIA_RESET); |
43 | } | 39 | } |
44 | 40 | ||
45 | static void | 41 | static void |
@@ -47,15 +43,16 @@ simpad_pcmcia_socket_state(struct soc_pcmcia_socket *skt, | |||
47 | struct pcmcia_state *state) | 43 | struct pcmcia_state *state) |
48 | { | 44 | { |
49 | unsigned long levels = GPLR; | 45 | unsigned long levels = GPLR; |
50 | long cs3reg = get_cs3_shadow(); | 46 | long cs3reg = simpad_get_cs3_ro(); |
51 | 47 | ||
52 | state->detect=((levels & GPIO_CF_CD)==0)?1:0; | 48 | state->detect=((levels & GPIO_CF_CD)==0)?1:0; |
53 | state->ready=(levels & GPIO_CF_IRQ)?1:0; | 49 | state->ready=(levels & GPIO_CF_IRQ)?1:0; |
54 | state->bvd1=1; /* Not available on Simpad. */ | 50 | state->bvd1 = 1; /* Might be cs3reg & PCMCIA_BVD1 */ |
55 | state->bvd2=1; /* Not available on Simpad. */ | 51 | state->bvd2 = 1; /* Might be cs3reg & PCMCIA_BVD2 */ |
56 | state->wrprot=0; /* Not available on Simpad. */ | 52 | state->wrprot=0; /* Not available on Simpad. */ |
57 | 53 | ||
58 | if((cs3reg & 0x0c) == 0x0c) { | 54 | if ((cs3reg & (PCMCIA_VS1|PCMCIA_VS2)) == |
55 | (PCMCIA_VS1|PCMCIA_VS2)) { | ||
59 | state->vs_3v=0; | 56 | state->vs_3v=0; |
60 | state->vs_Xv=0; | 57 | state->vs_Xv=0; |
61 | } else { | 58 | } else { |
@@ -75,23 +72,23 @@ simpad_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, | |||
75 | /* Murphy: see table of MIC2562a-1 */ | 72 | /* Murphy: see table of MIC2562a-1 */ |
76 | switch (state->Vcc) { | 73 | switch (state->Vcc) { |
77 | case 0: | 74 | case 0: |
78 | clear_cs3_bit(VCC_3V_EN|VCC_5V_EN|EN0|EN1); | 75 | simpad_clear_cs3_bit(VCC_3V_EN|VCC_5V_EN|EN0|EN1); |
79 | break; | 76 | break; |
80 | 77 | ||
81 | case 33: | 78 | case 33: |
82 | clear_cs3_bit(VCC_3V_EN|EN1); | 79 | simpad_clear_cs3_bit(VCC_3V_EN|EN1); |
83 | set_cs3_bit(VCC_5V_EN|EN0); | 80 | simpad_set_cs3_bit(VCC_5V_EN|EN0); |
84 | break; | 81 | break; |
85 | 82 | ||
86 | case 50: | 83 | case 50: |
87 | clear_cs3_bit(VCC_5V_EN|EN1); | 84 | simpad_clear_cs3_bit(VCC_5V_EN|EN1); |
88 | set_cs3_bit(VCC_3V_EN|EN0); | 85 | simpad_set_cs3_bit(VCC_3V_EN|EN0); |
89 | break; | 86 | break; |
90 | 87 | ||
91 | default: | 88 | default: |
92 | printk(KERN_ERR "%s(): unrecognized Vcc %u\n", | 89 | printk(KERN_ERR "%s(): unrecognized Vcc %u\n", |
93 | __func__, state->Vcc); | 90 | __func__, state->Vcc); |
94 | clear_cs3_bit(VCC_3V_EN|VCC_5V_EN|EN0|EN1); | 91 | simpad_clear_cs3_bit(VCC_3V_EN|VCC_5V_EN|EN0|EN1); |
95 | local_irq_restore(flags); | 92 | local_irq_restore(flags); |
96 | return -1; | 93 | return -1; |
97 | } | 94 | } |
@@ -110,7 +107,7 @@ static void simpad_pcmcia_socket_init(struct soc_pcmcia_socket *skt) | |||
110 | static void simpad_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) | 107 | static void simpad_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) |
111 | { | 108 | { |
112 | soc_pcmcia_disable_irqs(skt, irqs, ARRAY_SIZE(irqs)); | 109 | soc_pcmcia_disable_irqs(skt, irqs, ARRAY_SIZE(irqs)); |
113 | set_cs3_bit(PCMCIA_RESET); | 110 | simpad_set_cs3_bit(PCMCIA_RESET); |
114 | } | 111 | } |
115 | 112 | ||
116 | static struct pcmcia_low_level simpad_pcmcia_ops = { | 113 | static struct pcmcia_low_level simpad_pcmcia_ops = { |