1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2018 Kontron Electronics GmbH
5 * Configuration settings for the Kontron i.MX6UL boards/SoMs.
7 #ifndef __KONTRON_MX6UL_CONFIG_H
8 #define __KONTRON_MX6UL_CONFIG_H
10 #include <asm/arch/imx-regs.h>
11 #include <linux/sizes.h>
13 #include "mx6_common.h"
14 #ifdef CONFIG_SPL_BUILD
19 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
20 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
22 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
23 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
25 #define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_TEXT_BASE
27 /* Board and environment settings */
28 #define CONFIG_MXC_UART_BASE UART4_BASE
29 #define CONFIG_HOSTNAME "kontron-mx6ul"
31 #ifdef CONFIG_USB_EHCI_HCD
32 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
33 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
34 #define CONFIG_MXC_USB_FLAGS 0
35 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
38 /* Boot order for distro boot */
39 #ifndef CONFIG_SPL_BUILD
40 #define BOOT_TARGET_DEVICES(func) \
43 func(UBIFS, ubifs, 0) \
47 #include <config_distro_bootcmd.h>
53 #ifdef CONFIG_FSL_USDHC
54 #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR
55 #define CONFIG_SYS_FSL_USDHC_NUM 2
58 #define CONFIG_EXTRA_ENV_SETTINGS \
59 "kernel_addr_r=0x82000000\0" \
60 "ramdisk_addr_r=0x88080000\0" \
61 "pxefile_addr_r=0x80100000\0" \
62 "scriptaddr=0x80100000\0" \
64 "ethact=" CONFIG_ETHPRIME "\0" \
65 "hostname=" CONFIG_HOSTNAME "\0" \
68 #endif /* __KONTRON_MX6UL_CONFIG_H */