]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pxa: move mmc drivers to drivers/mmc
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Fri, 20 Feb 2009 02:47:50 +0000 (03:47 +0100)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Fri, 20 Feb 2009 02:47:50 +0000 (03:47 +0100)
introduce new macro CONFIG_PXA_MMC to activate it

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
cpu/pxa/Makefile
drivers/mmc/Makefile
drivers/mmc/pxa_mmc.c [moved from cpu/pxa/mmc.c with 99% similarity]
drivers/mmc/pxa_mmc.h [moved from cpu/pxa/mmc.h with 100% similarity]
include/configs/delta.h
include/configs/lubbock.h
include/configs/pleb2.h
include/configs/pxa255_idp.h
include/configs/trizepsiv.h
include/configs/xsengine.h
include/configs/zylonite.h

index 8b4367e20510c38e477525a15809a6abb81e23ed..42903b2ea4f0972063e75bf3d6d64962148eeb7c 100644 (file)
@@ -26,7 +26,7 @@ include $(TOPDIR)/config.mk
 LIB    = $(obj)lib$(CPU).a
 
 START  = start.o
-COBJS  = serial.o interrupts.o cpu.o i2c.o pxafb.o mmc.o usb.o
+COBJS  = serial.o interrupts.o cpu.o i2c.o pxafb.o usb.o
 
 SRCS   := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
index 6aa24f5d8c01d7eb1a5bb1e36b71262913cc63ad..1b0af12a74c604dfbdf182b38b862c969b22947f 100644 (file)
@@ -30,6 +30,7 @@ COBJS-$(CONFIG_ATMEL_MCI) += atmel_mci.o
 COBJS-$(CONFIG_BFIN_SDH) += bfin_sdh.o
 COBJS-$(CONFIG_OMAP3_MMC) += omap3_mmc.o
 COBJS-$(CONFIG_FSL_ESDHC) += fsl_esdhc.o
+COBJS-$(CONFIG_PXA_MMC) += pxa_mmc.o
 
 COBJS  := $(COBJS-y)
 SRCS   := $(COBJS:.o=.c)
similarity index 99%
rename from cpu/pxa/mmc.c
rename to drivers/mmc/pxa_mmc.c
index 8f5277e10d9824dec8681d150c796f5ba7a3cf86..33da75f4a3f9dc3557d8d1b4d9cbe0e370a71f9e 100644 (file)
@@ -28,9 +28,7 @@
 #include <asm/arch/hardware.h>
 #include <part.h>
 
-#include "mmc.h"
-
-#ifdef CONFIG_MMC
+#include "pxa_mmc.h"
 
 extern int fat_register_device(block_dev_desc_t * dev_desc, int part_no);
 
@@ -646,5 +644,3 @@ mmc_legacy_init(int verbose)
 
        return rc;
 }
-
-#endif /* CONFIG_MMC */
similarity index 100%
rename from cpu/pxa/mmc.h
rename to drivers/mmc/pxa_mmc.h
index 9f7f0ffba3674bc9fc3566a95079ff62f6d58901..001b48a7e7d2936567787a5f25bee885da48d848 100644 (file)
@@ -34,7 +34,6 @@
 #ifdef CONFIG_LCD
 #define CONFIG_SHARP_LM8V31
 #endif
-/* #define CONFIG_MMC          1 */
 #define BOARD_LATE_INIT                1
 
 #undef CONFIG_SKIP_RELOCATE_UBOOT
                                                /* valid baudrates */
 #define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-/* #define CONFIG_SYS_MMC_BASE         0xF0000000 */
+#ifdef CONFIG_MMC
+#define CONFIG_PXA_MMC
+#define CONFIG_CMD_MMC
+#define CONFIG_SYS_MMC_BASE            0xF0000000
+#endif
 
 /*
  * Stack sizes
index 80cf44fd60deabb8d55651e1d4360ec60adc202b..69774d7467fc62d8177243851424eab69ded95a2 100644 (file)
@@ -40,7 +40,7 @@
 #ifdef CONFIG_LCD
 #define CONFIG_SHARP_LM8V31
 #endif
-#define CONFIG_MMC             1
+#define CONFIG_MMC
 #define BOARD_LATE_INIT                1
 #define CONFIG_DOS_PARTITION
 
@@ -83,7 +83,6 @@
  */
 #include <config_cmd_default.h>
 
-#define CONFIG_CMD_MMC
 #define CONFIG_CMD_FAT
 
 
                                                /* valid baudrates */
 #define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
+#ifdef CONFIG_MMC
+#define CONFIG_PXA_MMC
+#define CONFIG_CMD_MMC
 #define CONFIG_SYS_MMC_BASE            0xF0000000
+#endif
 
 /*
  * Stack sizes
index 23398e36c97ca77a5b9769ceacceaba9e97cbdad..59741a98f9916c1316fd7505c121f36e24e61504 100644 (file)
                                                /* valid baudrates */
 #define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
+#ifdef CONFIG_MMC
+#define CONFIG_PXA_MMC
+#define CONFIG_CMD_MMC
+#endif
+
 /*
  * Stack sizes
  *
index fa53cf445376c273e5b2367d02c75c9020d69067..d1c2c650c21e0fe11dc9cccc544580d957d654f4 100644 (file)
  */
 #include <config_cmd_default.h>
 
-#define CONFIG_CMD_MMC
 #define CONFIG_CMD_FAT
 #define CONFIG_CMD_DHCP
 
                                                /* valid baudrates */
 #define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
+#ifdef CONFIG_MMC
+#define CONFIG_PXA_MMC
+#define CONFIG_CMD_MMC
 #define CONFIG_SYS_MMC_BASE            0xF0000000
+#endif
 
 /*
  * Stack sizes
index e124be433dcacc13198a9635dc97824d5f138ea9..70e5ce97b0951674c49fc2e59de831c8c45a0d8c 100644 (file)
@@ -79,7 +79,6 @@
  */
 #include <config_cmd_default.h>
 
-#define CONFIG_CMD_MMC
 #define CONFIG_CMD_FAT
 #define CONFIG_CMD_IMLS
 #define CONFIG_CMD_PING
                                                /* valid baudrates */
 #define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
+#ifdef CONFIG_MMC
+#define CONFIG_PXA_MMC
+#define CONFIG_CMD_MMC
 #define CONFIG_SYS_MMC_BASE            0xF0000000
+#endif
 
 /*
  * Stack sizes
index 2fca956731dbbbb7be71764e3dbf1e509be13eb7..6761438656eb2b69aeb3d0c91707dfe61b1c968c 100644 (file)
  */
 #include <config_cmd_default.h>
 
-#define CONFIG_CMD_MMC
 #define CONFIG_CMD_FAT
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_JFFS2
 #define CONFIG_SYS_MEMTEST_END                 0xA0800000                              /* 4 ... 8 MB in DRAM   */
 #undef  CONFIG_SYS_CLKS_IN_HZ                                                          /* everything, incl board info, in Hz */
 #define CONFIG_SYS_BAUDRATE_TABLE              { 9600, 19200, 38400, 57600, 115200 }   /* valid baudrates */
-#define CONFIG_SYS_MMC_BASE                    0xF0000000
 #define CONFIG_SYS_LOAD_ADDR                   0xA0000000                              /* load kernel to this address   */
 
+#ifdef CONFIG_MMC
+#define CONFIG_PXA_MMC
+#define CONFIG_CMD_MMC
+#define CONFIG_SYS_MMC_BASE                    0xF0000000
+#endif
+
 /* Stack sizes - The stack sizes are set up in start.S using the settings below */
 #define CONFIG_STACKSIZE               (128*1024)      /* regular stack */
 #ifdef  CONFIG_USE_IRQ
index 58f35a9dd8d64fdd30affbf6ba6efa17208b35a2..6febeeafabb53e2714047ba5b6b1a5175baed2f2 100644 (file)
@@ -41,7 +41,7 @@
 #ifdef CONFIG_LCD
 #define CONFIG_SHARP_LM8V31
 #endif
-/* #define CONFIG_MMC          1 */
+#undef CONFIG_MMC
 #define BOARD_LATE_INIT                1
 
 #undef CONFIG_SKIP_RELOCATE_UBOOT
                                                /* valid baudrates */
 #define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-/* #define CONFIG_SYS_MMC_BASE         0xF0000000 */
+#ifdef CONFIG_MMC
+#define CONFIG_PXA_MMC
+#define CONFIG_CMD_MMC
+#define CONFIG_SYS_MMC_BASE            0xF0000000
+#endif
 
 /*
  * Stack sizes