summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJuan Gutierrez <juan.gutierrez@nxp.com>2017-04-20 17:26:49 -0500
committerJuan Gutierrez <juan.gutierrez@nxp.com>2017-04-28 12:06:43 -0500
commitc420113c114fb7a892d3eb37077bb42f2c489a8f (patch)
tree7b418487d0c906f92286f6fc0cafa19e2d994d3e /include
parent5cec04fbb1bc1d1fc5359dd129539716131f3037 (diff)
downloadu-boot-imx-c420113c114fb7a892d3eb37077bb42f2c489a8f.zip
u-boot-imx-c420113c114fb7a892d3eb37077bb42f2c489a8f.tar.gz
u-boot-imx-c420113c114fb7a892d3eb37077bb42f2c489a8f.tar.bz2
MXSCM-292-1 mx6sxscm: add mx6sxscm boards code
Move the scm mx6sxscm board generic support code from v2016.03 as the base for converting to use DTB OF_CONTROL Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/mx6sxscm.h111
1 files changed, 111 insertions, 0 deletions
diff --git a/include/configs/mx6sxscm.h b/include/configs/mx6sxscm.h
new file mode 100644
index 0000000..2067da0
--- /dev/null
+++ b/include/configs/mx6sxscm.h
@@ -0,0 +1,111 @@
+/*
+ * Copyright 2016 Freescale Semiconductor, Inc.
+ *
+ * Configuration settings for the Freescale i.MX6SXSCM EVB board.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+
+#ifndef __MX6SXSCM_H
+#define __MX6SXSCM_H
+
+#include "mx6sxsabresd.h"
+
+#undef CONFIG_MXC_UART_BASE
+#define CONFIG_MXC_UART_BASE UART3_BASE
+
+#undef CONFIG_PHY_ATHEROS
+#undef CONFIG_FEC_MXC_PHYADDR
+#define CONFIG_PHY_MICREL
+#define CONFIG_FEC_MXC_PHYADDR 3
+
+/* MMC Configuration */
+/*
+#define CONFIG_FSL_ESDHC
+#define CONFIG_FSL_USDHC
+#define CONFIG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR
+#define CONFIG_SYS_FSL_USDHC_NUM 3
+*/
+#ifdef CONFIG_512MB_LPDDR2
+#undef PHYS_SDRAM_SIZE
+#define PHYS_SDRAM_SIZE SZ_512M
+#endif
+
+#if defined CONFIG_512MB_LPDDR2
+#if defined CONFIG_MX6SXSCM_EMMC
+#define CONFIG_FDT_FILE "imx6sxscm-epop-evb-ldo.dtb"
+#else
+#define CONFIG_FDT_FILE "imx6sxscm-512mb-evb-ldo.dtb"
+#endif
+#else
+#define CONFIG_FDT_FILE "imx6sxscm-1gb-evb-ldo.dtb"
+#endif
+
+#undef CONFIG_EXTRA_ENV_SETTINGS
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ CONFIG_MFG_ENV_SETTINGS \
+ UPDATE_M4_ENV \
+ "script=boot.scr\0" \
+ "image=zImage\0" \
+ "console=ttymxc2\0" \
+ "fdt_high=0xffffffff\0" \
+ "initrd_high=0xffffffff\0" \
+ "fdt_file="CONFIG_FDT_FILE"\0" \
+ "fdt_addr=0x83000000\0" \
+ "boot_fdt=try\0" \
+ "ip_dyn=yes\0" \
+ "panel=Hannstar-XGA\0" \
+ "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
+ "mmcpart=1\0" \
+ "mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
+ "mmcautodetect=yes\0" \
+ "mmcargs=setenv bootargs console=${console},${baudrate} " \
+ "root=${mmcroot}\0" \
+ "loadbootscript=" \
+ "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
+ "bootscript=echo Running bootscript from mmc ...; " \
+ "source\0" \
+ "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
+ "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
+ "mmcboot=echo Booting from mmc ...; " \
+ "run mmcargs; " \
+ "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
+ "if run loadfdt; then " \
+ "bootz ${loadaddr} - ${fdt_addr}; " \
+ "else " \
+ "if test ${boot_fdt} = try; then " \
+ "bootz; " \
+ "else " \
+ "echo WARN: Cannot load the DT; " \
+ "fi; " \
+ "fi; " \
+ "else " \
+ "bootz; " \
+ "fi;\0" \
+ "netargs=setenv bootargs console=${console},${baudrate} " \
+ "root=/dev/nfs " \
+ "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
+ "netboot=echo Booting from net ...; " \
+ "run netargs; " \
+ "if test ${ip_dyn} = yes; then " \
+ "setenv get_cmd dhcp; " \
+ "else " \
+ "setenv get_cmd tftp; " \
+ "fi; " \
+ "${get_cmd} ${image}; " \
+ "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
+ "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
+ "bootz ${loadaddr} - ${fdt_addr}; " \
+ "else " \
+ "if test ${boot_fdt} = try; then " \
+ "bootz; " \
+ "else " \
+ "echo WARN: Cannot load the DT; " \
+ "fi; " \
+ "fi; " \
+ "else " \
+ "bootz; " \
+ "fi;\0"
+#endif /* __MX6SXSCM_H */
+