Lines Matching refs:skt

27 static void sharpsl_pcmcia_init_reset(struct soc_pcmcia_socket *skt)  in sharpsl_pcmcia_init_reset()  argument
29 struct scoop_pcmcia_dev *scoopdev = &SCOOP_DEV[skt->nr]; in sharpsl_pcmcia_init_reset()
35 platform_scoop_config->power_ctrl(scoopdev->dev, 0x0000, skt->nr); in sharpsl_pcmcia_init_reset()
43 static int sharpsl_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in sharpsl_pcmcia_hw_init() argument
45 if (SCOOP_DEV[skt->nr].cd_irq >= 0) { in sharpsl_pcmcia_hw_init()
46 skt->stat[SOC_STAT_CD].irq = SCOOP_DEV[skt->nr].cd_irq; in sharpsl_pcmcia_hw_init()
47 skt->stat[SOC_STAT_CD].name = SCOOP_DEV[skt->nr].cd_irq_str; in sharpsl_pcmcia_hw_init()
50 skt->socket.pci_irq = SCOOP_DEV[skt->nr].irq; in sharpsl_pcmcia_hw_init()
55 static void sharpsl_pcmcia_socket_state(struct soc_pcmcia_socket *skt, in sharpsl_pcmcia_socket_state() argument
59 struct device *scoop = SCOOP_DEV[skt->nr].dev; in sharpsl_pcmcia_socket_state()
61 cpr = read_scoop_reg(SCOOP_DEV[skt->nr].dev, SCOOP_CPR); in sharpsl_pcmcia_socket_state()
70 SCOOP_DEV[skt->nr].keep_vs = NO_KEEP_VS; in sharpsl_pcmcia_socket_state()
72 else if (!(SCOOP_DEV[skt->nr].keep_vs & NO_KEEP_VS)) { in sharpsl_pcmcia_socket_state()
75 csr |= SCOOP_DEV[skt->nr].keep_vs; in sharpsl_pcmcia_socket_state()
80 SCOOP_DEV[skt->nr].keep_vs = (csr & 0x00C0); in sharpsl_pcmcia_socket_state()
84 if ((machine_is_spitz() || machine_is_borzoi()) && skt->nr == 1) { in sharpsl_pcmcia_socket_state()
105 static int sharpsl_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, in sharpsl_pcmcia_configure_socket() argument
109 struct device *scoop = SCOOP_DEV[skt->nr].dev; in sharpsl_pcmcia_configure_socket()
134 if ((machine_is_spitz() || machine_is_borzoi() || machine_is_akita()) && skt->nr == 0) { in sharpsl_pcmcia_configure_socket()
144 nimr |= ((skt->status&SS_DETECT) ? 0x0004 : 0)| in sharpsl_pcmcia_configure_socket()
145 ((skt->status&SS_READY) ? 0x0002 : 0)| in sharpsl_pcmcia_configure_socket()
146 ((skt->status&SS_BATDEAD)? 0x0010 : 0)| in sharpsl_pcmcia_configure_socket()
147 ((skt->status&SS_BATWARN)? 0x0020 : 0)| in sharpsl_pcmcia_configure_socket()
148 ((skt->status&SS_STSCHG) ? 0x0010 : 0)| in sharpsl_pcmcia_configure_socket()
149 ((skt->status&SS_WRPROT) ? 0x0008 : 0); in sharpsl_pcmcia_configure_socket()
152 SCOOP_DEV[skt->nr].keep_rd = 0; in sharpsl_pcmcia_configure_socket()
153 } else if (!SCOOP_DEV[skt->nr].keep_rd) { in sharpsl_pcmcia_configure_socket()
155 SCOOP_DEV[skt->nr].keep_rd = 1; in sharpsl_pcmcia_configure_socket()
164 platform_scoop_config->power_ctrl(scoop, ncpr , skt->nr); in sharpsl_pcmcia_configure_socket()
178 static void sharpsl_pcmcia_socket_init(struct soc_pcmcia_socket *skt) in sharpsl_pcmcia_socket_init() argument
180 sharpsl_pcmcia_init_reset(skt); in sharpsl_pcmcia_socket_init()
183 write_scoop_reg(SCOOP_DEV[skt->nr].dev, SCOOP_IMR, 0x00C0); in sharpsl_pcmcia_socket_init()
184 write_scoop_reg(SCOOP_DEV[skt->nr].dev, SCOOP_MCR, 0x0101); in sharpsl_pcmcia_socket_init()
185 SCOOP_DEV[skt->nr].keep_vs = NO_KEEP_VS; in sharpsl_pcmcia_socket_init()
188 static void sharpsl_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) in sharpsl_pcmcia_socket_suspend() argument
190 sharpsl_pcmcia_init_reset(skt); in sharpsl_pcmcia_socket_suspend()