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"
19 #define CONFIG_MXC_UART_BASE UART1_BASE
22 #ifdef CONFIG_FSL_USDHC
23 #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR
26 #define CONFIG_EXTRA_ENV_SETTINGS \
30 "fdt_high=0xffffffff\0" \
31 "initrd_high=0xffffffff\0" \
32 "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
33 "fdt_addr=0x83000000\0" \
36 "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
38 "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
39 "mmcautodetect=yes\0" \
40 "mmcargs=setenv bootargs console=${console},${baudrate} " \
43 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
44 "bootscript=echo Running bootscript from mmc ...; " \
46 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
47 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
48 "mmcboot=echo Booting from mmc ...; " \
50 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
51 "if run loadfdt; then " \
52 "bootz ${loadaddr} - ${fdt_addr}; " \
54 "if test ${boot_fdt} = try; then " \
57 "echo WARN: Cannot load the DT; " \
63 "netargs=setenv bootargs console=${console},${baudrate} " \
65 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
66 "netboot=echo Booting from net ...; " \
68 "if test ${ip_dyn} = yes; then " \
69 "setenv get_cmd dhcp; " \
71 "setenv get_cmd tftp; " \
73 "${get_cmd} ${image}; " \
74 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
75 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
76 "bootz ${loadaddr} - ${fdt_addr}; " \
78 "if test ${boot_fdt} = try; then " \
81 "echo WARN: Cannot load the DT; " \
88 /* Miscellaneous configurable options */
90 /* Physical Memory Map */
91 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
93 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
94 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
95 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
97 /* FLASH and environment organization */
100 #ifdef CONFIG_CMD_USB
101 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
102 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
103 #define CONFIG_MXC_USB_FLAGS 0
104 #define CONFIG_USB_MAX_CONTROLLER_COUNT 1
107 #ifdef CONFIG_CMD_NET
108 #define CONFIG_FEC_ENET_DEV 0
110 #define CONFIG_FEC_MXC_PHYADDR 0x0