static void spitz_mci_setpower(struct device *dev, unsigned int vdd) { struct pxamci_platform_data* p_d = dev->platform_data; if (( 1 << vdd) & p_d->ocr_mask) spitz_card_pwr_ctrl(SPITZ_PWR_SD, 0x0004); else spitz_card_pwr_ctrl(SPITZ_PWR_SD, 0x0000); }
/* * NOTE: The card detect interrupt isn't debounced so we delay it by 250ms to * give the card a chance to fully insert/eject. */ static void spitz_mci_setpower(struct device *dev, unsigned int vdd) { struct pxamci_platform_data* p_d = dev->platform_data; if ((1 << vdd) & p_d->ocr_mask) spitz_card_pwr_ctrl(SCOOP_CPR_SD_3V, SCOOP_CPR_SD_3V); else spitz_card_pwr_ctrl(SCOOP_CPR_SD_3V, 0x0); }
static void spitz_pcmcia_pwr(struct device *scoop, unsigned short cpr, int nr) { /* Only need to override behaviour for slot 0 */ if (nr == 0) spitz_card_pwr_ctrl(SPITZ_PWR_CF, cpr); else write_scoop_reg(scoop, SCOOP_CPR, cpr); }
static void spitz_pcmcia_pwr(struct device *scoop, unsigned short cpr, int nr) { if (nr == 0) spitz_card_pwr_ctrl(SPITZ_PWR_CF, cpr); else write_scoop_reg(scoop, SCOOP_CPR, cpr); }
static void spitz_pcmcia_pwr(struct device *scoop, uint16_t cpr, int nr) { /* Only need to override behaviour for slot 0 */ if (nr == 0) spitz_card_pwr_ctrl( cpr & (SCOOP_CPR_CF_3V | SCOOP_CPR_CF_XV), cpr); else write_scoop_reg(scoop, SCOOP_CPR, cpr); }