1 /* -------------------------------------------------------------------- */
2 /* RPX Boards from Embedded Planet */
3 /* -------------------------------------------------------------------- */
12 #if defined(CONFIG_CMD_PCMCIA)
16 #if defined(CONFIG_CMD_IDE) && defined(CONFIG_IDE_8xx_PCCARD)
20 #if defined(CONFIG_PCMCIA) \
21 && (defined(CONFIG_RPXCLASSIC) || defined(CONFIG_RPXLITE))
23 #define PCMCIA_BOARD_MSG "RPX CLASSIC or RPX LITE"
25 int pcmcia_voltage_set(int slot
, int vcc
, int vpp
)
31 case 33: reg
|= BCSR1_PCVCTL4
; break;
32 case 50: reg
|= BCSR1_PCVCTL5
; break;
50 /* first, turn off all power */
51 *((uint
*)RPX_CSR_ADDR
) &= ~(BCSR1_PCVCTL4
| BCSR1_PCVCTL5
52 | BCSR1_PCVCTL6
| BCSR1_PCVCTL7
);
54 /* enable new powersettings */
55 *((uint
*)RPX_CSR_ADDR
) |= reg
;
60 int pcmcia_hardware_enable (int slot
)
62 return 0; /* No hardware to enable */
65 #if defined(CONFIG_CMD_PCMCIA)
66 static int pcmcia_hardware_disable(int slot
)
68 return 0; /* No hardware to disable */
73 #endif /* CONFIG_PCMCIA && (CONFIG_RPXCLASSIC || CONFIG_RPXLITE) */