summaryrefslogtreecommitdiff
path: root/include/configs/mx7d_arm2.h
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2015-03-26 15:52:37 +0800
committerPeng Fan <Peng.Fan@freescale.com>2015-04-29 15:04:25 +0800
commitd2977725c247696598c3c2e4c37c91c3574a1896 (patch)
treed21a47f300dc45c20fa788eea0a34fa7f90c4d61 /include/configs/mx7d_arm2.h
parenta6da6653a6d1bc953469b1c133421bd9f5acbac1 (diff)
downloadu-boot-imx-d2977725c247696598c3c2e4c37c91c3574a1896.zip
u-boot-imx-d2977725c247696598c3c2e4c37c91c3574a1896.tar.gz
u-boot-imx-d2977725c247696598c3c2e4c37c91c3574a1896.tar.bz2
MLK-10477-4 imx: mx7d 12x12 lpddr3 ARM2: Add EPDC support
To enable the EPDC feature: 1. Uncomments CONFIG_SPLASH_SCREEN and CONFIG_MXC_EPDC settings in mx7d_12x12_lpddr3_arm2.h 2. cd <kernel_dir>/firmware/imx 3. python ihex2bin.py -i epdc_ED060XD4C1_TC.fw.ihex -o epdc_splash.bin 4. cp epdc_splash.bin to [FAT partition on SD card] Signed-off-by: Ye.Li <B37916@freescale.com> (cherry picked from commit 414824dcb77a067213849d340cf92777e6546810)
Diffstat (limited to 'include/configs/mx7d_arm2.h')
-rw-r--r--include/configs/mx7d_arm2.h29
1 files changed, 27 insertions, 2 deletions
diff --git a/include/configs/mx7d_arm2.h b/include/configs/mx7d_arm2.h
index 118e94c..bb4fd60 100644
--- a/include/configs/mx7d_arm2.h
+++ b/include/configs/mx7d_arm2.h
@@ -98,7 +98,7 @@
"m4image=m4_qspi.bin\0" \
"loadm4image=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${m4image}\0" \
"update_m4_from_sd=" \
- "if sf probe 1:0; then " \
+ "if sf probe 0:1; then " \
"if run loadm4image; then " \
"setexpr fw_sz ${filesize} + 0xffff; " \
"setexpr fw_sz ${fw_sz} / 0x10000; " \
@@ -107,7 +107,7 @@
"sf write ${loadaddr} 0x0 ${filesize}; " \
"fi; " \
"fi\0" \
- "m4boot=sf probe 1:0; bootaux "__stringify(CONFIG_SYS_AUXCORE_BOOTDATA)"\0"
+ "m4boot=sf probe 0:1; bootaux "__stringify(CONFIG_SYS_AUXCORE_BOOTDATA)"\0"
#else
#define UPDATE_M4_ENV ""
#endif
@@ -121,6 +121,13 @@
#define CONFIG_VIDEO_MODE ""
#endif
+#ifdef CONFIG_MXC_EPDC
+#define CONFIG_EPDC_WAVEFORM_FILE \
+ "epdc_waveform=epdc_splash.bin\0"
+#else
+#define CONFIG_EPDC_WAVEFORM_FILE ""
+#endif
+
#define CONFIG_MFG_ENV_SETTINGS \
"mfgtool_args=setenv bootargs console=${console},${baudrate} " \
"rdinit=/linuxrc " \
@@ -136,6 +143,7 @@
CONFIG_MFG_ENV_SETTINGS \
UPDATE_M4_ENV \
CONFIG_VIDEO_MODE \
+ CONFIG_EPDC_WAVEFORM_FILE \
"script=boot.scr\0" \
"image=zImage\0" \
"console=ttymxc0\0" \
@@ -318,6 +326,23 @@
#define CONFIG_VIDEO_BMP_LOGO
#endif
+#if defined(CONFIG_SPLASH_SCREEN) && defined(CONFIG_MXC_EPDC)
+/*
+ * Framebuffer and LCD
+ */
+#define CONFIG_CFB_CONSOLE
+#define CONFIG_CMD_BMP
+#define CONFIG_LCD
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV
+
+#undef LCD_TEST_PATTERN
+/* #define CONFIG_SPLASH_IS_IN_MMC 1 */
+#define LCD_BPP LCD_MONOCHROME
+/* #define CONFIG_SPLASH_SCREEN_ALIGN 1 */
+
+#define CONFIG_WAVEFORM_BUF_SIZE 0x400000
+#endif
+
/* USB Configs */
#define CONFIG_CMD_USB
#define CONFIG_USB_EHCI