]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix PCMCIA support on virtlab2
authorWolfgang Denk <wd@pollux.denx.de>
Mon, 15 May 2006 11:52:51 +0000 (13:52 +0200)
committerWolfgang Denk <wd@pollux.denx.de>
Mon, 15 May 2006 11:52:51 +0000 (13:52 +0200)
CHANGELOG
common/cmd_pcmcia.c

index 2b42045b2b206d8c78c705ac7abaa9e00cae0f7b..1046036c6a1eff25a334d8a69aa2563b9f048da6 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,8 @@
 Changes since U-Boot 1.1.4:
 ======================================================================
 
+* Fix PCMCIA support on virtlab2
+
 * Add support for VirtLab2 board
   (needed because of differences in the PCMCIA hardware).
 
index 46b703d163c49ce34e22125d4c5e13dd752298a0..8e3e84bed9b57076108e400877f59fb19591b490 100644 (file)
@@ -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);