/drivers/pcmcia/ |
D | cs.c | 76 struct pcmcia_socket *pcmcia_get_socket(struct pcmcia_socket *skt) in pcmcia_get_socket() argument 78 struct device *dev = get_device(&skt->dev); in pcmcia_get_socket() 86 void pcmcia_put_socket(struct pcmcia_socket *skt) in pcmcia_put_socket() argument 88 put_device(&skt->dev); in pcmcia_put_socket() 252 static int socket_reset(struct pcmcia_socket *skt) in socket_reset() argument 256 dev_dbg(&skt->dev, "reset\n"); in socket_reset() 258 skt->socket.flags |= SS_OUTPUT_ENA | SS_RESET; in socket_reset() 259 skt->ops->set_socket(skt, &skt->socket); in socket_reset() 262 skt->socket.flags &= ~SS_RESET; in socket_reset() 263 skt->ops->set_socket(skt, &skt->socket); in socket_reset() [all …]
|
D | soc_common.c | 59 void soc_pcmcia_debug(struct soc_pcmcia_socket *skt, const char *func, in soc_pcmcia_debug() argument 70 printk(KERN_DEBUG "skt%u: %s: %pV", skt->nr, func, &vaf); in soc_pcmcia_debug() 97 void soc_common_pcmcia_get_timing(struct soc_pcmcia_socket *skt, in soc_common_pcmcia_get_timing() argument 101 calc_speed(skt->spd_io, MAX_IO_WIN, SOC_PCMCIA_IO_ACCESS); in soc_common_pcmcia_get_timing() 103 calc_speed(skt->spd_mem, MAX_WIN, SOC_PCMCIA_3V_MEM_ACCESS); in soc_common_pcmcia_get_timing() 105 calc_speed(skt->spd_attr, MAX_WIN, SOC_PCMCIA_3V_MEM_ACCESS); in soc_common_pcmcia_get_timing() 109 static void __soc_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt, in __soc_pcmcia_hw_shutdown() argument 115 if (skt->stat[i].irq) in __soc_pcmcia_hw_shutdown() 116 free_irq(skt->stat[i].irq, skt); in __soc_pcmcia_hw_shutdown() 117 if (gpio_is_valid(skt->stat[i].gpio)) in __soc_pcmcia_hw_shutdown() [all …]
|
D | sa11xx_base.c | 63 sa1100_pcmcia_default_mecr_timing(struct soc_pcmcia_socket *skt, in sa1100_pcmcia_default_mecr_timing() argument 79 sa1100_pcmcia_set_mecr(struct soc_pcmcia_socket *skt, unsigned int cpu_clock) in sa1100_pcmcia_set_mecr() argument 86 soc_common_pcmcia_get_timing(skt, &timing); in sa1100_pcmcia_set_mecr() 88 bs_io = skt->ops->get_timing(skt, cpu_clock, timing.io); in sa1100_pcmcia_set_mecr() 89 bs_mem = skt->ops->get_timing(skt, cpu_clock, timing.mem); in sa1100_pcmcia_set_mecr() 90 bs_attr = skt->ops->get_timing(skt, cpu_clock, timing.attr); in sa1100_pcmcia_set_mecr() 95 MECR_FAST_SET(mecr, skt->nr, 0); in sa1100_pcmcia_set_mecr() 96 MECR_BSIO_SET(mecr, skt->nr, bs_io); in sa1100_pcmcia_set_mecr() 97 MECR_BSA_SET(mecr, skt->nr, bs_attr); in sa1100_pcmcia_set_mecr() 98 MECR_BSM_SET(mecr, skt->nr, bs_mem); in sa1100_pcmcia_set_mecr() [all …]
|
D | bcm63xx_pcmcia.c | 34 static inline u32 pcmcia_readl(struct bcm63xx_pcmcia_socket *skt, u32 off) in pcmcia_readl() argument 36 return bcm_readl(skt->base + off); in pcmcia_readl() 39 static inline void pcmcia_writel(struct bcm63xx_pcmcia_socket *skt, in pcmcia_writel() argument 42 bcm_writel(val, skt->base + off); in pcmcia_writel() 78 struct bcm63xx_pcmcia_socket *skt; in bcm63xx_pcmcia_set_socket() local 82 skt = sock->driver_data; in bcm63xx_pcmcia_set_socket() 84 spin_lock_irqsave(&skt->lock, flags); in bcm63xx_pcmcia_set_socket() 90 val = pcmcia_readl(skt, PCMCIA_C1_REG); in bcm63xx_pcmcia_set_socket() 97 if (skt->card_detected && (skt->card_type & CARD_CARDBUS)) in bcm63xx_pcmcia_set_socket() 100 pcmcia_writel(skt, val, PCMCIA_C1_REG); in bcm63xx_pcmcia_set_socket() [all …]
|
D | pxa2xx_base.c | 165 static int pxa2xx_pcmcia_set_mcxx(struct soc_pcmcia_socket *skt, unsigned int clk) in pxa2xx_pcmcia_set_mcxx() argument 168 int sock = skt->nr; in pxa2xx_pcmcia_set_mcxx() 170 soc_common_pcmcia_get_timing(skt, &timing); in pxa2xx_pcmcia_set_mcxx() 179 static int pxa2xx_pcmcia_set_timing(struct soc_pcmcia_socket *skt) in pxa2xx_pcmcia_set_timing() argument 181 unsigned long clk = clk_get_rate(skt->clk); in pxa2xx_pcmcia_set_timing() 182 return pxa2xx_pcmcia_set_mcxx(skt, clk / 10000); in pxa2xx_pcmcia_set_timing() 188 pxa2xx_pcmcia_frequency_change(struct soc_pcmcia_socket *skt, in pxa2xx_pcmcia_frequency_change() argument 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() 205 debug(skt, 2, "new frequency %u.%uMHz < %u.%uMHz, " in pxa2xx_pcmcia_frequency_change() [all …]
|
D | pxa2xx_sharpsl.c | 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 49 if (SCOOP_DEV[skt->nr].cd_irq >= 0) { in sharpsl_pcmcia_hw_init() 50 skt->stat[SOC_STAT_CD].irq = SCOOP_DEV[skt->nr].cd_irq; in sharpsl_pcmcia_hw_init() 51 skt->stat[SOC_STAT_CD].name = SCOOP_DEV[skt->nr].cd_irq_str; in sharpsl_pcmcia_hw_init() 54 skt->socket.pci_irq = SCOOP_DEV[skt->nr].irq; in sharpsl_pcmcia_hw_init() 59 static void sharpsl_pcmcia_socket_state(struct soc_pcmcia_socket *skt, in sharpsl_pcmcia_socket_state() argument 63 struct device *scoop = SCOOP_DEV[skt->nr].dev; in sharpsl_pcmcia_socket_state() [all …]
|
D | pxa2xx_mainstone.c | 33 static int mst_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in mst_pcmcia_hw_init() argument 39 if (skt->nr == 0) { in mst_pcmcia_hw_init() 40 skt->socket.pci_irq = MAINSTONE_S0_IRQ; in mst_pcmcia_hw_init() 41 skt->stat[SOC_STAT_CD].irq = MAINSTONE_S0_CD_IRQ; in mst_pcmcia_hw_init() 42 skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; in mst_pcmcia_hw_init() 43 skt->stat[SOC_STAT_BVD1].irq = MAINSTONE_S0_STSCHG_IRQ; in mst_pcmcia_hw_init() 44 skt->stat[SOC_STAT_BVD1].name = "PCMCIA0 STSCHG"; in mst_pcmcia_hw_init() 46 skt->socket.pci_irq = MAINSTONE_S1_IRQ; in mst_pcmcia_hw_init() 47 skt->stat[SOC_STAT_CD].irq = MAINSTONE_S1_CD_IRQ; in mst_pcmcia_hw_init() 48 skt->stat[SOC_STAT_CD].name = "PCMCIA1 CD"; in mst_pcmcia_hw_init() [all …]
|
D | pxa2xx_e740.c | 26 static int e740_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in e740_pcmcia_hw_init() argument 28 if (skt->nr == 0) { in e740_pcmcia_hw_init() 29 skt->stat[SOC_STAT_CD].gpio = GPIO_E740_PCMCIA_CD0; in e740_pcmcia_hw_init() 30 skt->stat[SOC_STAT_CD].name = "CF card detect"; in e740_pcmcia_hw_init() 31 skt->stat[SOC_STAT_RDY].gpio = GPIO_E740_PCMCIA_RDY0; in e740_pcmcia_hw_init() 32 skt->stat[SOC_STAT_RDY].name = "CF ready"; in e740_pcmcia_hw_init() 34 skt->stat[SOC_STAT_CD].gpio = GPIO_E740_PCMCIA_CD1; in e740_pcmcia_hw_init() 35 skt->stat[SOC_STAT_CD].name = "Wifi switch"; in e740_pcmcia_hw_init() 36 skt->stat[SOC_STAT_RDY].gpio = GPIO_E740_PCMCIA_RDY1; in e740_pcmcia_hw_init() 37 skt->stat[SOC_STAT_RDY].name = "Wifi ready"; in e740_pcmcia_hw_init() [all …]
|
D | sa1100_h3600.c | 22 static int h3600_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in h3600_pcmcia_hw_init() argument 26 switch (skt->nr) { in h3600_pcmcia_hw_init() 28 skt->stat[SOC_STAT_CD].gpio = H3XXX_GPIO_PCMCIA_CD0; in h3600_pcmcia_hw_init() 29 skt->stat[SOC_STAT_CD].name = "PCMCIA CD0"; in h3600_pcmcia_hw_init() 30 skt->stat[SOC_STAT_RDY].gpio = H3XXX_GPIO_PCMCIA_IRQ0; in h3600_pcmcia_hw_init() 31 skt->stat[SOC_STAT_RDY].name = "PCMCIA IRQ0"; in h3600_pcmcia_hw_init() 59 skt->stat[SOC_STAT_CD].gpio = H3XXX_GPIO_PCMCIA_CD1; in h3600_pcmcia_hw_init() 60 skt->stat[SOC_STAT_CD].name = "PCMCIA CD1"; in h3600_pcmcia_hw_init() 61 skt->stat[SOC_STAT_RDY].gpio = H3XXX_GPIO_PCMCIA_IRQ1; in h3600_pcmcia_hw_init() 62 skt->stat[SOC_STAT_RDY].name = "PCMCIA IRQ1"; in h3600_pcmcia_hw_init() [all …]
|
D | pxa2xx_vpac270.c | 34 static int vpac270_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in vpac270_pcmcia_hw_init() argument 38 if (skt->nr == 0) { in vpac270_pcmcia_hw_init() 42 skt->stat[SOC_STAT_CD].gpio = GPIO84_VPAC270_PCMCIA_CD; in vpac270_pcmcia_hw_init() 43 skt->stat[SOC_STAT_CD].name = "PCMCIA CD"; in vpac270_pcmcia_hw_init() 44 skt->stat[SOC_STAT_RDY].gpio = GPIO35_VPAC270_PCMCIA_RDY; in vpac270_pcmcia_hw_init() 45 skt->stat[SOC_STAT_RDY].name = "PCMCIA Ready"; in vpac270_pcmcia_hw_init() 50 skt->stat[SOC_STAT_CD].gpio = GPIO17_VPAC270_CF_CD; in vpac270_pcmcia_hw_init() 51 skt->stat[SOC_STAT_CD].name = "CF CD"; in vpac270_pcmcia_hw_init() 52 skt->stat[SOC_STAT_RDY].gpio = GPIO12_VPAC270_CF_RDY; in vpac270_pcmcia_hw_init() 53 skt->stat[SOC_STAT_RDY].name = "CF Ready"; in vpac270_pcmcia_hw_init() [all …]
|
D | pxa2xx_trizeps4.c | 32 static int trizeps_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in trizeps_pcmcia_hw_init() argument 37 switch (skt->nr) { in trizeps_pcmcia_hw_init() 39 skt->stat[SOC_STAT_CD].gpio = GPIO_PCD; in trizeps_pcmcia_hw_init() 40 skt->stat[SOC_STAT_CD].name = "cs0_cd"; in trizeps_pcmcia_hw_init() 41 skt->stat[SOC_STAT_RDY].gpio = GPIO_PRDY; in trizeps_pcmcia_hw_init() 42 skt->stat[SOC_STAT_RDY].name = "cs0_rdy"; in trizeps_pcmcia_hw_init() 48 pr_debug("%s: sock %d irq %d\n", __func__, skt->nr, skt->socket.pci_irq); in trizeps_pcmcia_hw_init() 55 static void trizeps_pcmcia_socket_state(struct soc_pcmcia_socket *skt, in trizeps_pcmcia_socket_state() argument 60 change = (status ^ trizeps_pcmcia_status[skt->nr]) & in trizeps_pcmcia_socket_state() 63 trizeps_pcmcia_status[skt->nr] = status; in trizeps_pcmcia_socket_state() [all …]
|
D | pxa2xx_cm_x255.c | 28 static int cmx255_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in cmx255_pcmcia_hw_init() argument 35 if (skt->nr == 0) { in cmx255_pcmcia_hw_init() 36 skt->stat[SOC_STAT_CD].gpio = GPIO_PCMCIA_S0_CD_VALID; in cmx255_pcmcia_hw_init() 37 skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; in cmx255_pcmcia_hw_init() 38 skt->stat[SOC_STAT_RDY].gpio = GPIO_PCMCIA_S0_RDYINT; in cmx255_pcmcia_hw_init() 39 skt->stat[SOC_STAT_RDY].name = "PCMCIA0 RDY"; in cmx255_pcmcia_hw_init() 41 skt->stat[SOC_STAT_CD].gpio = GPIO_PCMCIA_S1_CD_VALID; in cmx255_pcmcia_hw_init() 42 skt->stat[SOC_STAT_CD].name = "PCMCIA1 CD"; in cmx255_pcmcia_hw_init() 43 skt->stat[SOC_STAT_RDY].gpio = GPIO_PCMCIA_S1_RDYINT; in cmx255_pcmcia_hw_init() 44 skt->stat[SOC_STAT_RDY].name = "PCMCIA1 RDY"; in cmx255_pcmcia_hw_init() [all …]
|
D | sa1100_shannon.c | 19 static int shannon_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in shannon_pcmcia_hw_init() argument 27 if (skt->nr == 0) { in shannon_pcmcia_hw_init() 28 skt->stat[SOC_STAT_CD].gpio = SHANNON_GPIO_EJECT_0; in shannon_pcmcia_hw_init() 29 skt->stat[SOC_STAT_CD].name = "PCMCIA_CD_0"; in shannon_pcmcia_hw_init() 30 skt->stat[SOC_STAT_RDY].gpio = SHANNON_GPIO_RDY_0; in shannon_pcmcia_hw_init() 31 skt->stat[SOC_STAT_RDY].name = "PCMCIA_RDY_0"; in shannon_pcmcia_hw_init() 33 skt->stat[SOC_STAT_CD].gpio = SHANNON_GPIO_EJECT_1; in shannon_pcmcia_hw_init() 34 skt->stat[SOC_STAT_CD].name = "PCMCIA_CD_1"; in shannon_pcmcia_hw_init() 35 skt->stat[SOC_STAT_RDY].gpio = SHANNON_GPIO_RDY_1; in shannon_pcmcia_hw_init() 36 skt->stat[SOC_STAT_RDY].name = "PCMCIA_RDY_1"; in shannon_pcmcia_hw_init() [all …]
|
D | sa1100_nanoengine.c | 60 static int nanoengine_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in nanoengine_pcmcia_hw_init() argument 62 unsigned i = skt->nr; in nanoengine_pcmcia_hw_init() 73 skt->stat[SOC_STAT_CD].gpio = nano_skts[i].gpio_cd; in nanoengine_pcmcia_hw_init() 74 skt->stat[SOC_STAT_CD].name = i ? "PC CD1" : "PC CD0"; in nanoengine_pcmcia_hw_init() 75 skt->stat[SOC_STAT_RDY].gpio = nano_skts[i].gpio_rdy; in nanoengine_pcmcia_hw_init() 76 skt->stat[SOC_STAT_RDY].name = i ? "PC RDY1" : "PC RDY0"; in nanoengine_pcmcia_hw_init() 81 static void nanoengine_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) in nanoengine_pcmcia_hw_shutdown() argument 83 gpio_free(nano_skts[skt->nr].gpio_rst); in nanoengine_pcmcia_hw_shutdown() 87 struct soc_pcmcia_socket *skt, const socket_state_t *state) in nanoengine_pcmcia_configure_socket() argument 89 unsigned i = skt->nr; in nanoengine_pcmcia_configure_socket() [all …]
|
D | sa1100_cerf.c | 23 static int cerf_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in cerf_pcmcia_hw_init() argument 31 skt->stat[SOC_STAT_CD].gpio = CERF_GPIO_CF_CD; in cerf_pcmcia_hw_init() 32 skt->stat[SOC_STAT_CD].name = "CF_CD"; in cerf_pcmcia_hw_init() 33 skt->stat[SOC_STAT_BVD1].gpio = CERF_GPIO_CF_BVD1; in cerf_pcmcia_hw_init() 34 skt->stat[SOC_STAT_BVD1].name = "CF_BVD1"; in cerf_pcmcia_hw_init() 35 skt->stat[SOC_STAT_BVD2].gpio = CERF_GPIO_CF_BVD2; in cerf_pcmcia_hw_init() 36 skt->stat[SOC_STAT_BVD2].name = "CF_BVD2"; in cerf_pcmcia_hw_init() 37 skt->stat[SOC_STAT_RDY].gpio = CERF_GPIO_CF_IRQ; in cerf_pcmcia_hw_init() 38 skt->stat[SOC_STAT_RDY].name = "CF_IRQ"; in cerf_pcmcia_hw_init() 43 static void cerf_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) in cerf_pcmcia_hw_shutdown() argument [all …]
|
D | sa1100_assabet.c | 20 static int assabet_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in assabet_pcmcia_hw_init() argument 22 skt->stat[SOC_STAT_CD].gpio = ASSABET_GPIO_CF_CD; in assabet_pcmcia_hw_init() 23 skt->stat[SOC_STAT_CD].name = "CF CD"; in assabet_pcmcia_hw_init() 24 skt->stat[SOC_STAT_BVD1].gpio = ASSABET_GPIO_CF_BVD1; in assabet_pcmcia_hw_init() 25 skt->stat[SOC_STAT_BVD1].name = "CF BVD1"; in assabet_pcmcia_hw_init() 26 skt->stat[SOC_STAT_BVD2].gpio = ASSABET_GPIO_CF_BVD2; in assabet_pcmcia_hw_init() 27 skt->stat[SOC_STAT_BVD2].name = "CF BVD2"; in assabet_pcmcia_hw_init() 28 skt->stat[SOC_STAT_RDY].gpio = ASSABET_GPIO_CF_IRQ; in assabet_pcmcia_hw_init() 29 skt->stat[SOC_STAT_RDY].name = "CF RDY"; in assabet_pcmcia_hw_init() 35 assabet_pcmcia_socket_state(struct soc_pcmcia_socket *skt, struct pcmcia_state *state) in assabet_pcmcia_socket_state() argument [all …]
|
D | pxa2xx_balloon3.c | 32 static int balloon3_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in balloon3_pcmcia_hw_init() argument 42 skt->socket.pci_irq = BALLOON3_BP_CF_NRDY_IRQ; in balloon3_pcmcia_hw_init() 43 skt->stat[SOC_STAT_CD].gpio = BALLOON3_GPIO_S0_CD; in balloon3_pcmcia_hw_init() 44 skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; in balloon3_pcmcia_hw_init() 45 skt->stat[SOC_STAT_BVD1].irq = BALLOON3_BP_NSTSCHG_IRQ; in balloon3_pcmcia_hw_init() 46 skt->stat[SOC_STAT_BVD1].name = "PCMCIA0 STSCHG"; in balloon3_pcmcia_hw_init() 56 static void balloon3_pcmcia_socket_state(struct soc_pcmcia_socket *skt, in balloon3_pcmcia_socket_state() argument 64 flip = (status ^ balloon3_pcmcia_status[skt->nr]) in balloon3_pcmcia_socket_state() 72 balloon3_pcmcia_status[skt->nr] = status; in balloon3_pcmcia_socket_state() 86 static int balloon3_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, in balloon3_pcmcia_configure_socket() argument
|
D | pxa2xx_cm_x270.c | 25 static int cmx270_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in cmx270_pcmcia_hw_init() argument 32 skt->stat[SOC_STAT_CD].gpio = GPIO_PCMCIA_S0_CD_VALID; in cmx270_pcmcia_hw_init() 33 skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; in cmx270_pcmcia_hw_init() 34 skt->stat[SOC_STAT_RDY].gpio = GPIO_PCMCIA_S0_RDYINT; in cmx270_pcmcia_hw_init() 35 skt->stat[SOC_STAT_RDY].name = "PCMCIA0 RDY"; in cmx270_pcmcia_hw_init() 40 static void cmx270_pcmcia_shutdown(struct soc_pcmcia_socket *skt) in cmx270_pcmcia_shutdown() argument 46 static void cmx270_pcmcia_socket_state(struct soc_pcmcia_socket *skt, in cmx270_pcmcia_socket_state() argument 54 static int cmx270_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, in cmx270_pcmcia_configure_socket() argument 57 switch (skt->nr) { in cmx270_pcmcia_configure_socket()
|
D | sa1100_simpad.c | 18 static int simpad_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in simpad_pcmcia_hw_init() argument 23 skt->stat[SOC_STAT_CD].gpio = GPIO_CF_CD; in simpad_pcmcia_hw_init() 24 skt->stat[SOC_STAT_CD].name = "CF_CD"; in simpad_pcmcia_hw_init() 25 skt->stat[SOC_STAT_RDY].gpio = GPIO_CF_IRQ; in simpad_pcmcia_hw_init() 26 skt->stat[SOC_STAT_RDY].name = "CF_RDY"; in simpad_pcmcia_hw_init() 31 static void simpad_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) in simpad_pcmcia_hw_shutdown() argument 39 simpad_pcmcia_socket_state(struct soc_pcmcia_socket *skt, in simpad_pcmcia_socket_state() argument 61 simpad_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, in simpad_pcmcia_configure_socket() argument 98 static void simpad_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) in simpad_pcmcia_socket_suspend() argument
|
D | pxa2xx_hx4700.c | 25 static int hx4700_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in hx4700_pcmcia_hw_init() argument 42 skt->stat[SOC_STAT_CD].gpio = GPIOD4_CF_nCD; in hx4700_pcmcia_hw_init() 43 skt->stat[SOC_STAT_CD].name = "PCMCIA CD"; in hx4700_pcmcia_hw_init() 44 skt->stat[SOC_STAT_RDY].gpio = GPIO60_HX4700_CF_RNB; in hx4700_pcmcia_hw_init() 45 skt->stat[SOC_STAT_RDY].name = "PCMCIA Ready"; in hx4700_pcmcia_hw_init() 51 static void hx4700_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) in hx4700_pcmcia_hw_shutdown() argument 56 static void hx4700_pcmcia_socket_state(struct soc_pcmcia_socket *skt, in hx4700_pcmcia_socket_state() argument 63 static int hx4700_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, in hx4700_pcmcia_configure_socket() argument
|
D | soc_common.h | 72 struct soc_pcmcia_socket skt[0]; member 136 void soc_pcmcia_init_one(struct soc_pcmcia_socket *skt, 138 void soc_pcmcia_remove_one(struct soc_pcmcia_socket *skt); 139 int soc_pcmcia_add_one(struct soc_pcmcia_socket *skt); 144 extern void soc_pcmcia_debug(struct soc_pcmcia_socket *skt, const char *func, 147 #define debug(skt, lvl, fmt, arg...) \ argument 148 soc_pcmcia_debug(skt, __func__, lvl, fmt , ## arg) 151 #define debug(skt, lvl, fmt, arg...) do { } while (0) argument
|
D | pxa2xx_viper.c | 40 static int viper_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in viper_pcmcia_hw_init() argument 45 skt->stat[SOC_STAT_CD].gpio = pdata->cd_gpio; in viper_pcmcia_hw_init() 46 skt->stat[SOC_STAT_CD].name = "PCMCIA_CD"; in viper_pcmcia_hw_init() 47 skt->stat[SOC_STAT_RDY].gpio = pdata->rdy_gpio; in viper_pcmcia_hw_init() 48 skt->stat[SOC_STAT_RDY].name = "CF ready"; in viper_pcmcia_hw_init() 74 static void viper_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) in viper_pcmcia_hw_shutdown() argument 81 static void viper_pcmcia_socket_state(struct soc_pcmcia_socket *skt, in viper_pcmcia_socket_state() argument 88 static int viper_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, in viper_pcmcia_configure_socket() argument
|
D | pxa2xx_stargate2.c | 41 static int sg2_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in sg2_pcmcia_hw_init() argument 43 skt->stat[SOC_STAT_CD].gpio = SG2_S0_GPIO_DETECT; in sg2_pcmcia_hw_init() 44 skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; in sg2_pcmcia_hw_init() 45 skt->stat[SOC_STAT_RDY].gpio = SG2_S0_GPIO_READY; in sg2_pcmcia_hw_init() 46 skt->stat[SOC_STAT_RDY].name = "PCMCIA0 RDY"; in sg2_pcmcia_hw_init() 50 static void sg2_pcmcia_socket_state(struct soc_pcmcia_socket *skt, in sg2_pcmcia_socket_state() argument 59 static int sg2_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, in sg2_pcmcia_configure_socket() argument
|
D | ds.c | 1208 struct pcmcia_socket *skt = _data; in pcmcia_bus_suspend_callback() local 1211 if (p_dev->socket != skt || p_dev->suspended) in pcmcia_bus_suspend_callback() 1219 struct pcmcia_socket *skt = _data; in pcmcia_bus_resume_callback() local 1222 if (p_dev->socket != skt || !p_dev->suspended) in pcmcia_bus_resume_callback() 1230 static int pcmcia_bus_resume(struct pcmcia_socket *skt) in pcmcia_bus_resume() argument 1232 dev_dbg(&skt->dev, "resuming socket %d\n", skt->sock); in pcmcia_bus_resume() 1233 bus_for_each_dev(&pcmcia_bus_type, NULL, skt, pcmcia_bus_resume_callback); in pcmcia_bus_resume() 1237 static int pcmcia_bus_suspend(struct pcmcia_socket *skt) in pcmcia_bus_suspend() argument 1239 dev_dbg(&skt->dev, "suspending socket %d\n", skt->sock); in pcmcia_bus_suspend() 1240 if (bus_for_each_dev(&pcmcia_bus_type, NULL, skt, in pcmcia_bus_suspend() [all …]
|
D | pxa2xx_palmtx.c | 28 static int palmtx_pcmcia_hw_init(struct soc_pcmcia_socket *skt) in palmtx_pcmcia_hw_init() argument 35 skt->stat[SOC_STAT_RDY].gpio = GPIO_NR_PALMTX_PCMCIA_READY; in palmtx_pcmcia_hw_init() 36 skt->stat[SOC_STAT_RDY].name = "PCMCIA Ready"; in palmtx_pcmcia_hw_init() 41 static void palmtx_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) in palmtx_pcmcia_hw_shutdown() argument 46 static void palmtx_pcmcia_socket_state(struct soc_pcmcia_socket *skt, in palmtx_pcmcia_socket_state() argument 55 palmtx_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, in palmtx_pcmcia_configure_socket() argument
|