1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2016 Freescale Semiconductor, Inc.
5 * Configuration settings for the Freescale i.MX7ULP EVK board.
8 #ifndef __MX7ULP_EVK_CONFIG_H
9 #define __MX7ULP_EVK_CONFIG_H
11 #include <linux/sizes.h>
12 #include <asm/arch/imx-regs.h>
15 /* Using ULP WDOG for reset */
16 #define WDOG_BASE_ADDR WDG1_RBASE
18 #define CFG_SYS_HZ_CLOCK 1000000 /* Fixed at 1Mhz from TSTMR */
21 #define LPUART_BASE LPUART4_RBASE
23 /* Miscellaneous configurable options */
25 /* Physical Memory Map */
27 #define PHYS_SDRAM 0x60000000
28 #define PHYS_SDRAM_SIZE SZ_1G
29 #define CFG_SYS_SDRAM_BASE PHYS_SDRAM
31 #define CFG_EXTRA_ENV_SETTINGS \
35 "fdt_high=0xffffffff\0" \
36 "initrd_high=0xffffffff\0" \
37 "fdt_file=imx7ulp-evk.dtb\0" \
38 "fdt_addr=0x63000000\0" \
40 "earlycon=lpuart32,0x402D0010\0" \
42 "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
44 "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
45 "mmcautodetect=yes\0" \
46 "mmcargs=setenv bootargs console=${console},${baudrate} " \
49 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
50 "bootscript=echo Running bootscript from mmc ...; " \
52 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
53 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
54 "mmcboot=echo Booting from mmc ...; " \
56 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
57 "if run loadfdt; then " \
58 "bootz ${loadaddr} - ${fdt_addr}; " \
60 "if test ${boot_fdt} = try; then " \
63 "echo WARN: Cannot load the DT; " \
69 "netargs=setenv bootargs console=${console},${baudrate} " \
71 "ip=:::::eth0:dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
72 "netboot=echo Booting from net ...; " \
74 "if test ${ip_dyn} = yes; then " \
75 "setenv get_cmd dhcp; " \
77 "setenv get_cmd tftp; " \
80 "${get_cmd} ${image}; " \
81 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
82 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
83 "bootz ${loadaddr} - ${fdt_addr}; " \
85 "if test ${boot_fdt} = try; then " \
88 "echo WARN: Cannot load the DT; " \
95 #define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
96 #define CFG_SYS_INIT_RAM_SIZE SZ_256K
98 #endif /* __CONFIG_H */