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
|
|
|
|
2015-08-17 08:11:05 +00:00
|
|
|
#ifdef CONFIG_SPL
|
|
|
|
#include "imx6_spl.h"
|
|
|
|
#endif
|
|
|
|
|
2013-04-10 09:32:58 +00:00
|
|
|
#define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR
|
|
|
|
|
|
|
|
/* MMC Configs */
|
2014-09-15 06:59:18 +00:00
|
|
|
#define CONFIG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR
|
2013-04-10 09:32:58 +00:00
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"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"
|
|
|
|
|
|
|
|
#define CONFIG_BOOTCOMMAND \
|
|
|
|
"mmc dev ${mmcdev};" \
|
|
|
|
"mmc dev ${mmcdev}; if mmc rescan; then " \
|
|
|
|
"if run loadbootscript; then " \
|
|
|
|
"run bootscript; " \
|
|
|
|
"else " \
|
2014-01-16 21:58:04 +00:00
|
|
|
"if run loadimage; then " \
|
2013-04-10 09:32:58 +00:00
|
|
|
"run mmcboot; " \
|
|
|
|
"else run netboot; " \
|
|
|
|
"fi; " \
|
|
|
|
"fi; " \
|
|
|
|
"else run netboot; fi"
|
|
|
|
|
|
|
|
/* Miscellaneous configurable options */
|
|
|
|
|
|
|
|
/* Physical Memory Map */
|
|
|
|
#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
|
|
|
|
|
|
|
|
#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
|
|
|
|
#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
|
|
|
|
#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
|
|
|
|
|
|
|
|
#define CONFIG_SYS_INIT_SP_OFFSET \
|
|
|
|
(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
|
|
|
|
#define CONFIG_SYS_INIT_SP_ADDR \
|
|
|
|
(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
|
|
|
|
|
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
|
|
|
|
#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
|
|
|
|
#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
|
|
|
|
#define CONFIG_MXC_USB_FLAGS 0
|
|
|
|
#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
|
|
|
|
#endif
|
|
|
|
|
2014-10-30 10:30:54 +00:00
|
|
|
#define CONFIG_SYS_FSL_USDHC_NUM 3
|
|
|
|
|
2013-04-10 09:32:58 +00:00
|
|
|
#endif /* __CONFIG_H */
|