summaryrefslogtreecommitdiff
path: root/drivers/tqm8xx_pcmcia.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-07-21 15:24:56 +0200
committerWolfgang Denk <wd@pollux.denx.de>2006-07-21 15:24:56 +0200
commit966083e95f5ba2bf4a1723b19313e69c14b60092 (patch)
tree511a1ed8d7147e38a8437a2afa26dcc221b0c471 /drivers/tqm8xx_pcmcia.c
parent144f7795eefae2997dbac461fc150fe9bd9057c8 (diff)
downloadu-boot-imx-966083e95f5ba2bf4a1723b19313e69c14b60092.zip
u-boot-imx-966083e95f5ba2bf4a1723b19313e69c14b60092.tar.gz
u-boot-imx-966083e95f5ba2bf4a1723b19313e69c14b60092.tar.bz2
More code cleanup
Diffstat (limited to 'drivers/tqm8xx_pcmcia.c')
-rw-r--r--drivers/tqm8xx_pcmcia.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/tqm8xx_pcmcia.c b/drivers/tqm8xx_pcmcia.c
index b5b9308..a0f53cd 100644
--- a/drivers/tqm8xx_pcmcia.c
+++ b/drivers/tqm8xx_pcmcia.c
@@ -3,7 +3,9 @@
/* SC8xx Boards by SinoVee Microsystems */
/* -------------------------------------------------------------------- */
#include <common.h>
+#ifdef CONFIG_8xx
#include <mpc8xx.h>
+#endif
#include <pcmcia.h>
#undef CONFIG_PCMCIA
@@ -242,8 +244,6 @@ int pcmcia_hardware_enable(int slot)
#if (CONFIG_COMMANDS & CFG_CMD_PCMCIA)
int pcmcia_hardware_disable(int slot)
{
- volatile pcmconf8xx_t *pcmp =
- (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
u_long reg;
debug ("hardware_disable: " PCMCIA_BOARD_MSG " Slot %c\n", 'A'+slot);
@@ -268,9 +268,11 @@ int pcmcia_hardware_disable(int slot)
int pcmcia_voltage_set(int slot, int vcc, int vpp)
{
#ifndef CONFIG_NSCU
+ u_long reg;
+# ifdef DEBUG
volatile pcmconf8xx_t *pcmp =
(pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
- u_long reg;
+# endif
debug ("voltage_set: " PCMCIA_BOARD_MSG
" Slot %c, Vcc=%d.%d, Vpp=%d.%d\n",