2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2013-04-10 09:32:58 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2013 Freescale Semiconductor, Inc.
|
|
|
|
*
|
|
|
|
* Configuration settings for the Freescale i.MX6SL EVK board.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
2014-01-09 10:57:12 +00:00
|
|
|
#include "mx6_common.h"
|
2013-04-10 09:32:58 +00:00
|
|
|
|
2022-12-04 15:04:55 +00:00
|
|
|
#define CFG_MXC_UART_BASE UART1_IPS_BASE_ADDR
|
2013-04-10 09:32:58 +00:00
|
|
|
|
|
|
|
/* MMC Configs */
|
2022-10-29 00:27:13 +00:00
|
|
|
#define CFG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR
|
2013-04-10 09:32:58 +00:00
|
|
|
|
2022-12-04 15:03:50 +00:00
|
|
|
#define CFG_EXTRA_ENV_SETTINGS \
|
2013-04-10 09:32:58 +00:00
|
|
|
"script=boot.scr\0" \
|
2014-01-16 21:58:04 +00:00
|
|
|
"image=zImage\0" \
|
2013-04-10 09:32:58 +00:00
|
|
|
"console=ttymxc0\0" \
|
|
|
|
"fdt_high=0xffffffff\0" \
|
|
|
|
"initrd_high=0xffffffff\0" \
|
|
|
|
"fdt_file=imx6sl-evk.dtb\0" \
|
2014-01-22 14:23:32 +00:00
|
|
|
"fdt_addr=0x88000000\0" \
|
2013-04-10 09:32:58 +00:00
|
|
|
"boot_fdt=try\0" \
|
|
|
|
"ip_dyn=yes\0" \
|
2014-11-04 07:26:04 +00:00
|
|
|
"mmcdev=1\0" \
|
2013-06-28 21:52:41 +00:00
|
|
|
"mmcpart=1\0" \
|
2017-10-02 13:11:37 +00:00
|
|
|
"finduuid=part uuid mmc 1:2 uuid\0" \
|
2013-04-10 09:32:58 +00:00
|
|
|
"mmcargs=setenv bootargs console=${console},${baudrate} " \
|
2017-10-02 13:11:37 +00:00
|
|
|
"root=PARTUUID=${uuid} rootwait rw\0" \
|
2013-04-10 09:32:58 +00:00
|
|
|
"loadbootscript=" \
|
|
|
|
"fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
|
|
|
|
"bootscript=echo Running bootscript from mmc ...; " \
|
|
|
|
"source\0" \
|
2014-01-16 21:58:04 +00:00
|
|
|
"loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
|
2013-04-10 09:32:58 +00:00
|
|
|
"loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
|
|
|
|
"mmcboot=echo Booting from mmc ...; " \
|
2017-10-02 13:11:37 +00:00
|
|
|
"run finduuid; " \
|
2013-04-10 09:32:58 +00:00
|
|
|
"run mmcargs; " \
|
|
|
|
"if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
|
|
|
|
"if run loadfdt; then " \
|
2014-01-16 21:58:04 +00:00
|
|
|
"bootz ${loadaddr} - ${fdt_addr}; " \
|
2013-04-10 09:32:58 +00:00
|
|
|
"else " \
|
|
|
|
"if test ${boot_fdt} = try; then " \
|
2014-01-16 21:58:04 +00:00
|
|
|
"bootz; " \
|
2013-04-10 09:32:58 +00:00
|
|
|
"else " \
|
|
|
|
"echo WARN: Cannot load the DT; " \
|
|
|
|
"fi; " \
|
|
|
|
"fi; " \
|
|
|
|
"else " \
|
2014-01-16 21:58:04 +00:00
|
|
|
"bootz; " \
|
2013-04-10 09:32:58 +00:00
|
|
|
"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; " \
|
2014-01-16 21:58:04 +00:00
|
|
|
"${get_cmd} ${image}; " \
|
2013-04-10 09:32:58 +00:00
|
|
|
"if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
|
|
|
|
"if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
|
2014-01-16 21:58:04 +00:00
|
|
|
"bootz ${loadaddr} - ${fdt_addr}; " \
|
2013-04-10 09:32:58 +00:00
|
|
|
"else " \
|
|
|
|
"if test ${boot_fdt} = try; then " \
|
2014-01-16 21:58:04 +00:00
|
|
|
"bootz; " \
|
2013-04-10 09:32:58 +00:00
|
|
|
"else " \
|
|
|
|
"echo WARN: Cannot load the DT; " \
|
|
|
|
"fi; " \
|
|
|
|
"fi; " \
|
|
|
|
"else " \
|
2014-01-16 21:58:04 +00:00
|
|
|
"bootz; " \
|
2013-04-10 09:32:58 +00:00
|
|
|
"fi;\0"
|
|
|
|
|
|
|
|
/* Miscellaneous configurable options */
|
|
|
|
|
|
|
|
/* Physical Memory Map */
|
|
|
|
#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
|
|
|
|
|
2022-11-16 18:10:37 +00:00
|
|
|
#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
|
|
|
|
#define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
|
2013-04-10 09:32:58 +00:00
|
|
|
|
2015-05-22 16:30:45 +00:00
|
|
|
/* Environment organization */
|
2013-04-10 09:32:58 +00:00
|
|
|
|
2014-11-10 00:50:41 +00:00
|
|
|
/* USB Configs */
|
|
|
|
#ifdef CONFIG_CMD_USB
|
2022-12-04 15:04:56 +00:00
|
|
|
#define CFG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
|
|
|
|
#define CFG_MXC_USB_FLAGS 0
|
2014-11-10 00:50:41 +00:00
|
|
|
#endif
|
|
|
|
|
2022-10-29 00:27:13 +00:00
|
|
|
#define CFG_SYS_FSL_USDHC_NUM 3
|
2014-10-30 10:30:54 +00:00
|
|
|
|
2013-04-10 09:32:58 +00:00
|
|
|
#endif /* __CONFIG_H */
|