]> git.sur5r.net Git - u-boot/blobdiff - board/mbx8xx/pcmcia.c
spear: fix build errors for spear3xx/spear600 platforms
[u-boot] / board / mbx8xx / pcmcia.c
index a02c84845dfb64789ad9e44eecff68b781953e10..e672d8c78c850e21f9aada7cc68d8c54d62dbe2c 100644 (file)
@@ -88,10 +88,10 @@ int pcmcia_hardware_enable (int slot)
 
        udelay (10000);
 
-       immap = (immap_t *) CFG_IMMR;
-       sysp = (sysconf8xx_t *) (&(((immap_t *) CFG_IMMR)->im_siu_conf));
-       pcmp = (pcmconf8xx_t *) (&(((immap_t *) CFG_IMMR)->im_pcmcia));
-       cp = (cpm8xx_t *) (&(((immap_t *) CFG_IMMR)->im_cpm));
+       immap = (immap_t *) CONFIG_SYS_IMMR;
+       sysp = (sysconf8xx_t *) (&(((immap_t *) CONFIG_SYS_IMMR)->im_siu_conf));
+       pcmp = (pcmconf8xx_t *) (&(((immap_t *) CONFIG_SYS_IMMR)->im_pcmcia));
+       cp = (cpm8xx_t *) (&(((immap_t *) CONFIG_SYS_IMMR)->im_cpm));
 
        /* clear interrupt state, and disable interrupts */
        pcmp->pcmc_pscr = PCMCIA_MASK (_slot_);
@@ -117,11 +117,7 @@ int pcmcia_hardware_enable (int slot)
        debug ("[%d] %s: PIPR(%p)=0x%x\n",
               __LINE__,__FUNCTION__,
               &(pcmp->pcmc_pipr),pcmp->pcmc_pipr);
-#ifndef CONFIG_HMI10
-       if (pcmp->pcmc_pipr & (0x18000000 >> (slot << 4))) {
-#else
        if (pcmp->pcmc_pipr & (0x10000000 >> (slot << 4))) {
-#endif /* CONFIG_HMI10 */
                printf ("   No Card found\n");
                return (1);
        }