aboutsummaryrefslogtreecommitdiffstats
path: root/common/cmd_pcmcia.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-05-15 13:52:51 +0200
committerWolfgang Denk <wd@pollux.denx.de>2006-05-15 13:52:51 +0200
commit651652508325cd43a35d724373c51913bf7c11ed (patch)
tree2643d58eee3e3b980544f029fcac9f6449e64a9a /common/cmd_pcmcia.c
parent319b9a54670c9adf4bb84a7dacd2b031350f4066 (diff)
downloadu-boot-midas-651652508325cd43a35d724373c51913bf7c11ed.tar.gz
u-boot-midas-651652508325cd43a35d724373c51913bf7c11ed.tar.bz2
u-boot-midas-651652508325cd43a35d724373c51913bf7c11ed.zip
Fix PCMCIA support on virtlab2
Diffstat (limited to 'common/cmd_pcmcia.c')
-rw-r--r--common/cmd_pcmcia.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/cmd_pcmcia.c b/common/cmd_pcmcia.c
index 46b703d163..8e3e84bed9 100644
--- a/common/cmd_pcmcia.c
+++ b/common/cmd_pcmcia.c
@@ -1035,12 +1035,19 @@ static int hardware_enable(int slot)
(pcmconf8xx_t *)&(((immap_t *)CFG_IMMR)->im_pcmcia);
volatile unsigned char *powerctl =
(volatile unsigned char *)PCMCIA_CTRL;
+ volatile sysconf8xx_t *sysp =
+ (sysconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_siu_conf));
unsigned int reg, mask;
debug ("hardware_enable: " PCMCIA_BOARD_MSG " Slot %c\n", 'A'+slot);
udelay(10000);
+ /*
+ * Configure SIUMCR to enable PCMCIA port B
+ */
+ sysp->sc_siumcr &= ~SIUMCR_DBGC11; /* set DBGC to 00 */
+
/* clear interrupt state, and disable interrupts */
pcmp->pcmc_pscr = PCMCIA_MASK(slot);
pcmp->pcmc_per &= ~PCMCIA_MASK(slot);