1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2015 Freescale Semiconductor, Inc.
4 * Copyright (C) 2016 Grinn
6 * Configuration settings for the Grinn liteBoard (i.MX6UL).
8 #ifndef __LITEBOARD_CONFIG_H
9 #define __LITEBOARD_CONFIG_H
11 #include <asm/arch/imx-regs.h>
12 #include <linux/sizes.h>
13 #include <linux/stringify.h>
14 #include "mx6_common.h"
16 #define CONFIG_MXC_UART_BASE UART1_BASE
19 #ifdef CONFIG_FSL_USDHC
20 #define CFG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR
23 #define CONFIG_EXTRA_ENV_SETTINGS \
27 "fdt_high=0xffffffff\0" \
28 "initrd_high=0xffffffff\0" \
29 "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
30 "fdt_addr=0x83000000\0" \
33 "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
35 "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
36 "mmcautodetect=yes\0" \
37 "mmcargs=setenv bootargs console=${console},${baudrate} " \
40 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
41 "bootscript=echo Running bootscript from mmc ...; " \
43 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
44 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
45 "mmcboot=echo Booting from mmc ...; " \
47 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
48 "if run loadfdt; then " \
49 "bootz ${loadaddr} - ${fdt_addr}; " \
51 "if test ${boot_fdt} = try; then " \
54 "echo WARN: Cannot load the DT; " \
60 "netargs=setenv bootargs console=${console},${baudrate} " \
62 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
63 "netboot=echo Booting from net ...; " \
65 "if test ${ip_dyn} = yes; then " \
66 "setenv get_cmd dhcp; " \
68 "setenv get_cmd tftp; " \
70 "${get_cmd} ${image}; " \
71 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
72 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
73 "bootz ${loadaddr} - ${fdt_addr}; " \
75 "if test ${boot_fdt} = try; then " \
78 "echo WARN: Cannot load the DT; " \
85 /* Miscellaneous configurable options */
87 /* Physical Memory Map */
88 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
90 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
91 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
92 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
94 /* FLASH and environment organization */
98 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
99 #define CONFIG_MXC_USB_FLAGS 0
102 #ifdef CONFIG_CMD_NET
103 #define CONFIG_FEC_ENET_DEV 0
105 #define CONFIG_FEC_MXC_PHYADDR 0x0