summaryrefslogtreecommitdiffstats
path: root/common/cmd_pcmcia.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_pcmcia.c')
-rw-r--r--common/cmd_pcmcia.c27
1 files changed, 11 insertions, 16 deletions
diff --git a/common/cmd_pcmcia.c b/common/cmd_pcmcia.c
index 10ba84c16e..2aa2a23866 100644
--- a/common/cmd_pcmcia.c
+++ b/common/cmd_pcmcia.c
@@ -57,7 +57,6 @@
#include <command.h>
#include <config.h>
#include <pcmcia.h>
-#include <cmd_pcmcia.h>
#if defined(CONFIG_IDE_8xx_PCCARD) && defined(CONFIG_8xx)
#include <mpc8xx.h>
#endif
@@ -669,7 +668,6 @@ static int hardware_enable(int slot)
}
-
#if (CONFIG_COMMANDS & CFG_CMD_PCMCIA)
static int hardware_disable(int slot)
{
@@ -698,7 +696,6 @@ static int hardware_disable(int slot)
#endif /* CFG_CMD_PCMCIA */
-
static int voltage_set(int slot, int vcc, int vpp)
{
volatile immap_t *immap;
@@ -890,7 +887,6 @@ static int hardware_enable(int slot)
}
-
#if (CONFIG_COMMANDS & CFG_CMD_PCMCIA)
static int hardware_disable(int slot)
{
@@ -933,7 +929,6 @@ static int hardware_disable(int slot)
#endif /* CFG_CMD_PCMCIA */
-
static int voltage_set(int slot, int vcc, int vpp)
{
volatile immap_t *immap;
@@ -1206,7 +1201,6 @@ static int hardware_enable(int slot)
}
-
#if (CONFIG_COMMANDS & CFG_CMD_PCMCIA)
static int hardware_disable(int slot)
{
@@ -1238,7 +1232,6 @@ static int hardware_disable(int slot)
#endif /* CFG_CMD_PCMCIA */
-
static int voltage_set(int slot, int vcc, int vpp)
{
volatile immap_t *immap;
@@ -1470,7 +1463,6 @@ static int hardware_enable(int slot)
}
-
#if (CONFIG_COMMANDS & CFG_CMD_PCMCIA)
static int hardware_disable(int slot)
{
@@ -1502,7 +1494,6 @@ static int hardware_disable(int slot)
#endif /* CFG_CMD_PCMCIA */
-
static int voltage_set(int slot, int vcc, int vpp)
{
volatile immap_t *immap;
@@ -1895,7 +1886,6 @@ static int hardware_enable(int slot)
}
-
#if (CONFIG_COMMANDS & CFG_CMD_PCMCIA)
static int hardware_disable(int slot)
{
@@ -1926,7 +1916,6 @@ static int hardware_disable(int slot)
#endif /* CFG_CMD_PCMCIA */
-
static int voltage_set(int slot, int vcc, int vpp)
{
volatile immap_t *immap;
@@ -2115,7 +2104,6 @@ static int hardware_enable(int slot)
}
-
#if (CONFIG_COMMANDS & CFG_CMD_PCMCIA)
static int hardware_disable(int slot)
{
@@ -2148,7 +2136,6 @@ static int hardware_disable(int slot)
#endif /* CFG_CMD_PCMCIA */
-
static int voltage_set(int slot, int vcc, int vpp)
{
volatile immap_t *immap;
@@ -2227,9 +2214,6 @@ static int voltage_set(int slot, int vcc, int vpp)
#endif /* KUP4K */
-
-
-
/* -------------------------------------------------------------------- */
/* End of Board Specific Stuff */
/* -------------------------------------------------------------------- */
@@ -2499,3 +2483,14 @@ static int identify (volatile uchar *p)
/* -------------------------------------------------------------------- */
#endif /* CFG_CMD_PCMCIA || (CFG_CMD_IDE && CONFIG_IDE_8xx_PCCARD) */
+
+/**************************************************/
+
+#if (CONFIG_COMMANDS & CFG_CMD_PCMCIA)
+cmd_tbl_t U_BOOT_CMD(PINIT) = MK_CMD_ENTRY(
+ "pinit", 2, 1, do_pinit,
+ "pinit - PCMCIA sub-system\n",
+ "on - power on PCMCIA socket\n"
+ "pinit off - power off PCMCIA socket\n"
+);
+#endif
OpenPOWER on IntegriCloud