summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Cai <R63905@freescale.com>2013-11-22 10:53:10 +0800
committerRobby Cai <R63905@freescale.com>2013-11-22 10:53:10 +0800
commit6c49efa816bdb4f3c9de8b3df12641989bfaa1a9 (patch)
treed90dd4750beed669fe582268f408772c33575809
parent2dd2f4db9cc802b6973b3606ed4fd4d32b15a5a4 (diff)
downloadu-boot-imx-6c49efa816bdb4f3c9de8b3df12641989bfaa1a9.zip
u-boot-imx-6c49efa816bdb4f3c9de8b3df12641989bfaa1a9.tar.gz
u-boot-imx-6c49efa816bdb4f3c9de8b3df12641989bfaa1a9.tar.bz2
ENGR00289247 Fix build break for mx6qsabresd
Fix build break as follows. make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- mx6qsabresd mx6qsabresd.c:189: error: ‘MX6_PAD_EIM_A16__EPDC_SDDO_0’ undeclared here (not in a function) mx6qsabresd.c:190: error: ‘MX6_PAD_EIM_DA10__EPDC_SDDO_1’ undeclared here (not in a function) mx6qsabresd.c:191: error: ‘MX6_PAD_EIM_DA12__EPDC_SDDO_2’ undeclared here (not in a function) mx6qsabresd.c:192: error: ‘MX6_PAD_EIM_DA11__EPDC_SDDO_3’ undeclared here (not in a function) mx6qsabresd.c:193: error: ‘MX6_PAD_EIM_LBA__EPDC_SDDO_4’ undeclared here (not in a function) mx6qsabresd.c:194: error: ‘MX6_PAD_EIM_EB2__EPDC_SDDO_5’ undeclared here (not in a function) mx6qsabresd.c:195: error: ‘MX6_PAD_EIM_CS0__EPDC_SDDO_6’ undeclared here (not in a function) mx6qsabresd.c:196: error: ‘MX6_PAD_EIM_RW__EPDC_SDDO_7’ undeclared here (not in a function) mx6qsabresd.c:197: error: ‘MX6_PAD_EIM_A21__EPDC_GDCLK’ undeclared here (not in a function) mx6qsabresd.c:198: error: ‘MX6_PAD_EIM_A22__EPDC_GDSP’ undeclared here (not in a function) mx6qsabresd.c:199: error: ‘MX6_PAD_EIM_A23__EPDC_GDOE’ undeclared here (not in a function) mx6qsabresd.c:200: error: ‘MX6_PAD_EIM_A24__EPDC_GDRL’ undeclared here (not in a function) mx6qsabresd.c:201: error: ‘MX6_PAD_EIM_D31__EPDC_SDCLK’ undeclared here (not in a function) mx6qsabresd.c:202: error: ‘MX6_PAD_EIM_D27__EPDC_SDOE’ undeclared here (not in a function) mx6qsabresd.c:203: error: ‘MX6_PAD_EIM_DA1__EPDC_SDLE’ undeclared here (not in a function) mx6qsabresd.c:204: error: ‘MX6_PAD_EIM_EB1__EPDC_SDSHR’ undeclared here (not in a function) mx6qsabresd.c:205: error: ‘MX6_PAD_EIM_DA2__EPDC_BDR_0’ undeclared here (not in a function) mx6qsabresd.c:206: error: ‘MX6_PAD_EIM_DA4__EPDC_SDCE_0’ undeclared here (not in a function) mx6qsabresd.c:207: error: ‘MX6_PAD_EIM_DA5__EPDC_SDCE_1’ undeclared here (not in a function) mx6qsabresd.c:208: error: ‘MX6_PAD_EIM_DA6__EPDC_SDCE_2’ undeclared here (not in a function) Signed-off-by: Robby Cai <R63905@freescale.com>
-rw-r--r--board/freescale/mx6qsabresd/mx6qsabresd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/board/freescale/mx6qsabresd/mx6qsabresd.c b/board/freescale/mx6qsabresd/mx6qsabresd.c
index 8617228..9723ba9 100644
--- a/board/freescale/mx6qsabresd/mx6qsabresd.c
+++ b/board/freescale/mx6qsabresd/mx6qsabresd.c
@@ -38,7 +38,7 @@
#include <miiphy.h>
#include <netdev.h>
-#if defined(CONFIG_MXC_EPDC)
+#if defined(CONFIG_MX6DL) && defined(CONFIG_MXC_EPDC)
#include <lcd.h>
#include <mxc_epdc_fb.h>
#endif
@@ -185,6 +185,7 @@ iomux_v3_cfg_t const usdhc4_pads[] = {
MX6_PAD_SD4_DAT7__USDHC4_DAT7 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
};
+#if defined(CONFIG_MX6DL) && defined(CONFIG_MXC_EPDC)
static iomux_v3_cfg_t const epdc_enable_pads[] = {
MX6_PAD_EIM_A16__EPDC_SDDO_0 | MUX_PAD_CTRL(EPDC_PAD_CTRL),
MX6_PAD_EIM_DA10__EPDC_SDDO_1 | MUX_PAD_CTRL(EPDC_PAD_CTRL),
@@ -230,6 +231,7 @@ static iomux_v3_cfg_t const epdc_disable_pads[] = {
MX6_PAD_EIM_DA5__GPIO_3_5,
MX6_PAD_EIM_DA6__GPIO_3_6,
};
+#endif
static void setup_iomux_uart(void)
{
@@ -488,7 +490,7 @@ int board_mmc_init(bd_t *bis)
}
#endif
-#ifdef CONFIG_MXC_EPDC
+#if defined(CONFIG_MX6DL) && defined(CONFIG_MXC_EPDC)
#ifdef CONFIG_SPLASH_SCREEN
extern int mmc_get_env_devno(void);
int setup_splash_img(void)
@@ -844,7 +846,7 @@ int board_init(void)
/* address of boot parameters */
gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
-#ifdef CONFIG_MXC_EPDC
+#if defined(CONFIG_MX6DL) && defined(CONFIG_MXC_EPDC)
setup_epdc();
#endif