7c5f673c0f4d021b328e0250daf979a5c8d07af7
[platform/kernel/u-boot.git] / include / configs / kontron-sl-mx6ul.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2018 Kontron Electronics GmbH
4  *
5  * Configuration settings for the Kontron i.MX6UL boards/SoMs.
6  */
7 #ifndef __KONTRON_MX6UL_CONFIG_H
8 #define __KONTRON_MX6UL_CONFIG_H
9
10 #include <asm/arch/imx-regs.h>
11 #include <linux/sizes.h>
12
13 #include "mx6_common.h"
14
15 /* RAM */
16 #define PHYS_SDRAM                      MMDC0_ARB_BASE_ADDR
17 #define CFG_SYS_SDRAM_BASE              PHYS_SDRAM
18
19 #define CFG_SYS_INIT_RAM_ADDR   IRAM_BASE_ADDR
20 #define CFG_SYS_INIT_RAM_SIZE   IRAM_SIZE
21
22 #define CFG_SYS_UBOOT_BASE              CONFIG_TEXT_BASE
23
24 /* Board and environment settings */
25 #define CONFIG_MXC_UART_BASE            UART4_BASE
26
27 #ifdef CONFIG_USB_EHCI_HCD
28 #define CONFIG_MXC_USB_PORTSC           (PORT_PTS_UTMI | PORT_PTS_PTW)
29 #define CONFIG_MXC_USB_FLAGS            0
30 #endif
31
32 /* Boot order for distro boot */
33 #define BOOT_TARGET_DEVICES(func) \
34         func(MMC, mmc, 1) \
35         func(MMC, mmc, 0) \
36         func(UBIFS, ubifs, 0, UBI, boot) \
37         func(USB, usb, 0) \
38         func(PXE, pxe, na) \
39         func(DHCP, dhcp, na)
40 #include <config_distro_bootcmd.h>
41
42 /* MMC Configs */
43 #ifdef CONFIG_FSL_USDHC
44 #define CFG_SYS_FSL_ESDHC_ADDR  USDHC1_BASE_ADDR
45 #define CFG_SYS_FSL_USDHC_NUM   2
46 #endif
47
48 #define CONFIG_EXTRA_ENV_SETTINGS BOOTENV
49
50 #endif /* __KONTRON_MX6UL_CONFIG_H */