]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cmd_pcmcia.c
* Code cleanup:
[people/ms/u-boot.git] / common / cmd_pcmcia.c
index 10ba84c16e923ec9fa737e0e7109822e4dabfd79..2aa2a23866cf1b266b842e2d4b63752df1c33651 100644 (file)
@@ -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