Lines Matching refs:skt
159 static int pxa2xx_pcmcia_set_timing(struct soc_pcmcia_socket *skt) in pxa2xx_pcmcia_set_timing() argument
161 unsigned long clk = clk_get_rate(skt->clk) / 10000; in pxa2xx_pcmcia_set_timing()
163 int sock = skt->nr; in pxa2xx_pcmcia_set_timing()
165 soc_common_pcmcia_get_timing(skt, &timing); in pxa2xx_pcmcia_set_timing()
178 pxa2xx_pcmcia_frequency_change(struct soc_pcmcia_socket *skt, in pxa2xx_pcmcia_frequency_change() argument
185 debug(skt, 2, "new frequency %u.%uMHz > %u.%uMHz, " in pxa2xx_pcmcia_frequency_change()
189 pxa2xx_pcmcia_set_timing(skt); in pxa2xx_pcmcia_frequency_change()
195 debug(skt, 2, "new frequency %u.%uMHz < %u.%uMHz, " in pxa2xx_pcmcia_frequency_change()
199 pxa2xx_pcmcia_set_timing(skt); in pxa2xx_pcmcia_frequency_change()
227 int pxa2xx_drv_pcmcia_add_one(struct soc_pcmcia_socket *skt) in pxa2xx_drv_pcmcia_add_one() argument
229 skt->res_skt.start = _PCMCIA(skt->nr); in pxa2xx_drv_pcmcia_add_one()
230 skt->res_skt.end = _PCMCIA(skt->nr) + PCMCIASp - 1; in pxa2xx_drv_pcmcia_add_one()
231 skt->res_skt.name = skt_names[skt->nr]; in pxa2xx_drv_pcmcia_add_one()
232 skt->res_skt.flags = IORESOURCE_MEM; in pxa2xx_drv_pcmcia_add_one()
234 skt->res_io.start = _PCMCIAIO(skt->nr); in pxa2xx_drv_pcmcia_add_one()
235 skt->res_io.end = _PCMCIAIO(skt->nr) + PCMCIAIOSp - 1; in pxa2xx_drv_pcmcia_add_one()
236 skt->res_io.name = "io"; in pxa2xx_drv_pcmcia_add_one()
237 skt->res_io.flags = IORESOURCE_MEM | IORESOURCE_BUSY; in pxa2xx_drv_pcmcia_add_one()
239 skt->res_mem.start = _PCMCIAMem(skt->nr); in pxa2xx_drv_pcmcia_add_one()
240 skt->res_mem.end = _PCMCIAMem(skt->nr) + PCMCIAMemSp - 1; in pxa2xx_drv_pcmcia_add_one()
241 skt->res_mem.name = "memory"; in pxa2xx_drv_pcmcia_add_one()
242 skt->res_mem.flags = IORESOURCE_MEM; in pxa2xx_drv_pcmcia_add_one()
244 skt->res_attr.start = _PCMCIAAttr(skt->nr); in pxa2xx_drv_pcmcia_add_one()
245 skt->res_attr.end = _PCMCIAAttr(skt->nr) + PCMCIAAttrSp - 1; in pxa2xx_drv_pcmcia_add_one()
246 skt->res_attr.name = "attribute"; in pxa2xx_drv_pcmcia_add_one()
247 skt->res_attr.flags = IORESOURCE_MEM; in pxa2xx_drv_pcmcia_add_one()
249 return soc_pcmcia_add_one(skt); in pxa2xx_drv_pcmcia_add_one()
268 struct soc_pcmcia_socket *skt; in pxa2xx_drv_pcmcia_probe() local
298 skt = &sinfo->skt[i]; in pxa2xx_drv_pcmcia_probe()
300 skt->nr = ops->first + i; in pxa2xx_drv_pcmcia_probe()
301 skt->clk = clk; in pxa2xx_drv_pcmcia_probe()
302 soc_pcmcia_init_one(skt, ops, &dev->dev); in pxa2xx_drv_pcmcia_probe()
304 ret = pxa2xx_drv_pcmcia_add_one(skt); in pxa2xx_drv_pcmcia_probe()
316 soc_pcmcia_remove_one(&sinfo->skt[i]); in pxa2xx_drv_pcmcia_probe()
328 soc_pcmcia_remove_one(&sinfo->skt[i]); in pxa2xx_drv_pcmcia_remove()