1 /* -------------------------------------------------------------------- */
2 /* RPX Boards from Embedded Planet */
3 /* -------------------------------------------------------------------- */
10 #if CONFIG_COMMANDS & CFG_CMD_PCMCIA
14 #if (CONFIG_COMMANDS & CFG_CMD_IDE) && defined(CONFIG_IDE_8xx_PCCARD)
18 #if defined(CONFIG_PCMCIA) \
19 && (defined(CONFIG_RPXCLASSIC) || defined(CONFIG_RPXLITE))
21 #define PCMCIA_BOARD_MSG "RPX CLASSIC or RPX LITE"
23 int pcmcia_voltage_set(int slot, int vcc, int vpp)
29 case 33: reg |= BCSR1_PCVCTL4; break;
30 case 50: reg |= BCSR1_PCVCTL5; break;
48 /* first, turn off all power */
49 *((uint *)RPX_CSR_ADDR) &= ~(BCSR1_PCVCTL4 | BCSR1_PCVCTL5
50 | BCSR1_PCVCTL6 | BCSR1_PCVCTL7);
52 /* enable new powersettings */
53 *((uint *)RPX_CSR_ADDR) |= reg;
58 int pcmcia_hardware_enable (int slot)
60 return 0; /* No hardware to enable */
63 #if (CONFIG_COMMANDS & CFG_CMD_PCMCIA)
64 static int pcmcia_hardware_disable(int slot)
66 return 0; /* No hardware to disable */
68 #endif /* CONFIG_COMMANDS & CFG_CMD_PCMCIA */
71 #endif /* CONFIG_PCMCIA && (CONFIG_RPXCLASSIC || CONFIG_RPXLITE) */