mx6qsabre_common: Let mmc partition be board specific
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 14 Jan 2013 08:59:24 +0000 (08:59 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 28 Jan 2013 05:45:18 +0000 (06:45 +0100)
commit 49ea0ff5 (49ea0ff5) introduced CONFIG_SYS_MMC_ENV_PART into mx6qsabresd.h
to store the mmc partition, but in order for it to have effect we should place
it into 'mmcpart' variable.

Also add CONFIG_SYS_MMC_ENV_PART into mx6qsabreauto.h.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
include/configs/mx6qsabre_common.h
include/configs/mx6qsabreauto.h

index cda4512905cdb9baa6f6b6dc6d8109ec00721f8e..d76357c70f7eb8b8b64d5c53602251e1f542706d 100644 (file)
@@ -91,7 +91,7 @@
        "fdt_high=0xffffffff\0"   \
        "initrd_high=0xffffffff\0" \
        "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
-       "mmcpart=1\0" \
+       "mmcpart=" __stringify(CONFIG_SYS_MMC_ENV_PART) "\0" \
        "mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
        "mmcargs=setenv bootargs console=${console},${baudrate} " \
                "root=${mmcroot}\0" \
index f2ff3e1f0e1e2c22e099409da98851311196eb57..1583c11aab8cd0eb77e531cf1baf2e0267f336b8 100644 (file)
@@ -35,6 +35,7 @@
 #define CONFIG_SYS_FSL_USDHC_NUM       2
 #if defined(CONFIG_ENV_IS_IN_MMC)
 #define CONFIG_SYS_MMC_ENV_DEV         0
+#define CONFIG_SYS_MMC_ENV_PART                1       /* Boot partition 1 */
 #endif
 
 #endif                         /* __MX6QSABREAUTO_CONFIG_H */