7 #if defined(CONFIG_CMD_PCMCIA)
11 #if defined(CONFIG_CMD_IDE) && defined(CONFIG_IDE_8xx_PCCARD)
18 #define PCMCIA_BOARD_MSG "ADS"
20 #define PCMCIA_BOARD_MSG "FADS"
23 int pcmcia_voltage_set(int slot, int vcc, int vpp)
28 case 0: reg = 0; break;
29 case 50: reg = 1; break;
30 case 120: reg = 2; break;
35 case 0: reg = 0; break;
37 case 50: reg = BCSR1_PCCVCCON; break;
40 case 33: reg = BCSR1_PCCVCC0 | BCSR1_PCCVCC1; break;
41 case 50: reg = BCSR1_PCCVCC1; break;
46 /* first, turn off all power */
49 *((uint *)BCSR1) |= BCSR1_PCCVCCON;
52 *((uint *)BCSR1) &= ~(BCSR1_PCCVCC0 | BCSR1_PCCVCC1);
54 *((uint *)BCSR1) &= ~BCSR1_PCCVPP_MASK;
56 /* enable new powersettings */
59 *((uint *)BCSR1) &= ~reg;
62 *((uint *)BCSR1) |= reg;
65 *((uint *)BCSR1) |= reg << 20;
70 int pcmcia_hardware_enable(int slot)
72 *((uint *)BCSR1) &= ~BCSR1_PCCEN;
76 #if defined(CONFIG_CMD_PCMCIA)
77 int pcmcia_hardware_disable(int slot)
79 *((uint *)BCSR1) &= ~BCSR1_PCCEN;
84 #endif /* CONFIG_PCMCIA */