15 #include <linux/module.h>
17 #include <linux/kernel.h>
53 static unsigned long trizeps_pcmcia_status[2];
58 unsigned short status = 0, change;
59 status = CFSR_readw();
60 change = (status ^ trizeps_pcmcia_status[skt->
nr]) &
63 trizeps_pcmcia_status[skt->
nr] =
status;
80 #ifndef CONFIG_MACH_TRIZEPS_CONXS
99 unsigned short power = 0;
102 switch (state->
Vcc) {
103 case 0: power &= 0xfc;
break;
106 pr_err(
"%s(): Vcc 5V not supported in socket\n", __func__);
109 pr_err(
"%s(): bad Vcc %u\n", __func__, state->
Vcc);
113 switch (state->
Vpp) {
114 case 0: power &= 0xf3;
break;
117 pr_err(
"%s(): Vpp 12V not supported in socket\n", __func__);
120 if (state->
Vpp != state->
Vcc) {
121 pr_err(
"%s(): bad Vpp %u\n", __func__, state->
Vpp);
131 #ifndef CONFIG_MACH_TRIZEPS_CONXS
155 .hw_init = trizeps_pcmcia_hw_init,
156 .socket_state = trizeps_pcmcia_socket_state,
157 .configure_socket = trizeps_pcmcia_configure_socket,
158 .socket_init = trizeps_pcmcia_socket_init,
159 .socket_suspend = trizeps_pcmcia_socket_suspend,
160 #ifdef CONFIG_MACH_TRIZEPS_CONXS
170 static int __init trizeps_pcmcia_init(
void)
174 if (!machine_is_trizeps4() && !machine_is_trizeps4wl())
178 if (!trizeps_pcmcia_device)
182 &trizeps_pcmcia_ops,
sizeof(trizeps_pcmcia_ops));
193 static void __exit trizeps_pcmcia_exit(
void)