2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2016-08-11 06:02:57 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Freescale Semiconductor, Inc.
|
|
|
|
*
|
|
|
|
* Configuration settings for the Freescale i.MX6UL 14x14 EVK board.
|
|
|
|
*/
|
|
|
|
#ifndef __MX6ULLEVK_CONFIG_H
|
|
|
|
#define __MX6ULLEVK_CONFIG_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <asm/arch/imx-regs.h>
|
|
|
|
#include <linux/sizes.h>
|
2020-05-10 17:40:09 +00:00
|
|
|
#include <linux/stringify.h>
|
2016-08-11 06:02:57 +00:00
|
|
|
#include "mx6_common.h"
|
2017-06-29 08:16:06 +00:00
|
|
|
#include <asm/mach-imx/gpio.h>
|
2016-08-11 06:02:57 +00:00
|
|
|
|
|
|
|
#define PHYS_SDRAM_SIZE SZ_512M
|
|
|
|
|
|
|
|
#define CONFIG_MXC_UART_BASE UART1_BASE
|
|
|
|
|
|
|
|
/* MMC Configs */
|
|
|
|
#ifdef CONFIG_FSL_USDHC
|
2022-10-29 00:27:13 +00:00
|
|
|
#define CFG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR
|
|
|
|
#define CFG_SYS_FSL_USDHC_NUM 2
|
2016-08-11 06:02:57 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"script=boot.scr\0" \
|
|
|
|
"image=zImage\0" \
|
|
|
|
"console=ttymxc0\0" \
|
|
|
|
"fdt_high=0xffffffff\0" \
|
|
|
|
"initrd_high=0xffffffff\0" \
|
2019-08-08 09:55:57 +00:00
|
|
|
"fdt_file=undefined\0" \
|
2016-08-11 06:02:57 +00:00
|
|
|
"fdt_addr=0x83000000\0" \
|
|
|
|
"boot_fdt=try\0" \
|
|
|
|
"ip_dyn=yes\0" \
|
|
|
|
"videomode=video=ctfb:x:480,y:272,depth:24,pclk:108695,le:8,ri:4,up:2,lo:4,hs:41,vs:10,sync:0,vmode:0\0" \
|
|
|
|
"mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
|
2021-12-11 19:55:52 +00:00
|
|
|
"mmcpart=1\0" \
|
2022-04-15 04:23:41 +00:00
|
|
|
"mmcroot=/dev/mmcblk1p2 rootwait rw\0" \
|
2016-08-11 06:02:57 +00:00
|
|
|
"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" \
|
2019-08-08 09:55:57 +00:00
|
|
|
"findfdt="\
|
|
|
|
"if test $fdt_file = undefined; then " \
|
|
|
|
"if test $board_name = ULZ-EVK && test $board_rev = 14X14; then " \
|
|
|
|
"setenv fdt_file imx6ulz-14x14-evk.dtb; fi; " \
|
|
|
|
"if test $board_name = EVK && test $board_rev = 14X14; then " \
|
|
|
|
"setenv fdt_file imx6ull-14x14-evk.dtb; fi; " \
|
|
|
|
"if test $fdt_file = undefined; then " \
|
|
|
|
"echo WARNING: Could not determine dtb to use; " \
|
|
|
|
"fi; " \
|
|
|
|
"fi;\0" \
|
2016-08-11 06:02:57 +00:00
|
|
|
"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" \
|
|
|
|
|
|
|
|
/* 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
|
2016-08-11 06:02:57 +00:00
|
|
|
|
2017-02-11 13:43:54 +00:00
|
|
|
/* environment organization */
|
2016-08-11 06:02:57 +00:00
|
|
|
|
2020-02-03 17:23:58 +00:00
|
|
|
#ifdef CONFIG_CMD_NET
|
|
|
|
#define CONFIG_FEC_ENET_DEV 1
|
|
|
|
#endif
|
|
|
|
|
2016-08-11 06:02:57 +00:00
|
|
|
#endif
|