• Home
  • Raw
  • Download

Lines Matching refs:skt

31 static void sharpsl_pcmcia_init_reset(struct soc_pcmcia_socket *skt)  in sharpsl_pcmcia_init_reset()  argument
33 struct scoop_pcmcia_dev *scoopdev = &SCOOP_DEV[skt->nr]; in sharpsl_pcmcia_init_reset()
39 platform_scoop_config->power_ctrl(scoopdev->dev, 0x0000, skt->nr); in sharpsl_pcmcia_init_reset()
47 static int sharpsl_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in sharpsl_pcmcia_hw_init() argument
55 if (SCOOP_DEV[skt->nr].cd_irq >= 0) { in sharpsl_pcmcia_hw_init()
58 cd_irq.sock = skt->nr; in sharpsl_pcmcia_hw_init()
59 cd_irq.irq = SCOOP_DEV[skt->nr].cd_irq; in sharpsl_pcmcia_hw_init()
60 cd_irq.str = SCOOP_DEV[skt->nr].cd_irq_str; in sharpsl_pcmcia_hw_init()
61 ret = soc_pcmcia_request_irqs(skt, &cd_irq, 1); in sharpsl_pcmcia_hw_init()
69 skt->irq = SCOOP_DEV[skt->nr].irq; in sharpsl_pcmcia_hw_init()
74 static void sharpsl_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) in sharpsl_pcmcia_hw_shutdown() argument
76 if (SCOOP_DEV[skt->nr].cd_irq >= 0) { in sharpsl_pcmcia_hw_shutdown()
79 cd_irq.sock = skt->nr; in sharpsl_pcmcia_hw_shutdown()
80 cd_irq.irq = SCOOP_DEV[skt->nr].cd_irq; in sharpsl_pcmcia_hw_shutdown()
81 cd_irq.str = SCOOP_DEV[skt->nr].cd_irq_str; in sharpsl_pcmcia_hw_shutdown()
82 soc_pcmcia_free_irqs(skt, &cd_irq, 1); in sharpsl_pcmcia_hw_shutdown()
87 static void sharpsl_pcmcia_socket_state(struct soc_pcmcia_socket *skt, in sharpsl_pcmcia_socket_state() argument
91 struct device *scoop = SCOOP_DEV[skt->nr].dev; in sharpsl_pcmcia_socket_state()
93 cpr = read_scoop_reg(SCOOP_DEV[skt->nr].dev, SCOOP_CPR); in sharpsl_pcmcia_socket_state()
102 SCOOP_DEV[skt->nr].keep_vs = NO_KEEP_VS; in sharpsl_pcmcia_socket_state()
104 else if (!(SCOOP_DEV[skt->nr].keep_vs & NO_KEEP_VS)) { in sharpsl_pcmcia_socket_state()
107 csr |= SCOOP_DEV[skt->nr].keep_vs; in sharpsl_pcmcia_socket_state()
112 SCOOP_DEV[skt->nr].keep_vs = (csr & 0x00C0); in sharpsl_pcmcia_socket_state()
116 if ((machine_is_spitz() || machine_is_borzoi()) && skt->nr == 1) { in sharpsl_pcmcia_socket_state()
137 static int sharpsl_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, in sharpsl_pcmcia_configure_socket() argument
141 struct device *scoop = SCOOP_DEV[skt->nr].dev; in sharpsl_pcmcia_configure_socket()
166 if ((machine_is_spitz() || machine_is_borzoi() || machine_is_akita()) && skt->nr == 0) { in sharpsl_pcmcia_configure_socket()
176 nimr |= ((skt->status&SS_DETECT) ? 0x0004 : 0)| in sharpsl_pcmcia_configure_socket()
177 ((skt->status&SS_READY) ? 0x0002 : 0)| in sharpsl_pcmcia_configure_socket()
178 ((skt->status&SS_BATDEAD)? 0x0010 : 0)| in sharpsl_pcmcia_configure_socket()
179 ((skt->status&SS_BATWARN)? 0x0020 : 0)| in sharpsl_pcmcia_configure_socket()
180 ((skt->status&SS_STSCHG) ? 0x0010 : 0)| in sharpsl_pcmcia_configure_socket()
181 ((skt->status&SS_WRPROT) ? 0x0008 : 0); in sharpsl_pcmcia_configure_socket()
184 SCOOP_DEV[skt->nr].keep_rd = 0; in sharpsl_pcmcia_configure_socket()
185 } else if (!SCOOP_DEV[skt->nr].keep_rd) { in sharpsl_pcmcia_configure_socket()
187 SCOOP_DEV[skt->nr].keep_rd = 1; in sharpsl_pcmcia_configure_socket()
196 platform_scoop_config->power_ctrl(scoop, ncpr , skt->nr); in sharpsl_pcmcia_configure_socket()
210 static void sharpsl_pcmcia_socket_init(struct soc_pcmcia_socket *skt) in sharpsl_pcmcia_socket_init() argument
212 sharpsl_pcmcia_init_reset(skt); in sharpsl_pcmcia_socket_init()
215 write_scoop_reg(SCOOP_DEV[skt->nr].dev, SCOOP_IMR, 0x00C0); in sharpsl_pcmcia_socket_init()
216 write_scoop_reg(SCOOP_DEV[skt->nr].dev, SCOOP_MCR, 0x0101); in sharpsl_pcmcia_socket_init()
217 SCOOP_DEV[skt->nr].keep_vs = NO_KEEP_VS; in sharpsl_pcmcia_socket_init()
220 static void sharpsl_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) in sharpsl_pcmcia_socket_suspend() argument
222 sharpsl_pcmcia_init_reset(skt); in sharpsl_pcmcia_socket_suspend()