Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 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 | #ifdef CONFIG_SPL_BUILD |
| 15 | #include "imx6_spl.h" |
| 16 | #endif |
| 17 | |
| 18 | /* RAM */ |
| 19 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
| 20 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM |
| 21 | |
| 22 | #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 23 | #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE |
| 24 | |
Simon Glass | 72cc538 | 2022-10-20 18:22:39 -0600 | [diff] [blame] | 25 | #define CONFIG_SYS_UBOOT_BASE CONFIG_TEXT_BASE |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 26 | |
| 27 | /* Board and environment settings */ |
| 28 | #define CONFIG_MXC_UART_BASE UART4_BASE |
| 29 | #define CONFIG_HOSTNAME "kontron-mx6ul" |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 30 | |
| 31 | #ifdef CONFIG_USB_EHCI_HCD |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 32 | #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
| 33 | #define CONFIG_MXC_USB_FLAGS 0 |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 34 | #endif |
| 35 | |
| 36 | /* Boot order for distro boot */ |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 37 | #define BOOT_TARGET_DEVICES(func) \ |
| 38 | func(MMC, mmc, 1) \ |
| 39 | func(MMC, mmc, 0) \ |
Pali Rohár | dd54f6c | 2022-05-31 10:32:36 +0200 | [diff] [blame] | 40 | func(UBIFS, ubifs, 0, UBI, boot) \ |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 41 | func(USB, usb, 0) \ |
| 42 | func(PXE, pxe, na) \ |
| 43 | func(DHCP, dhcp, na) |
| 44 | #include <config_distro_bootcmd.h> |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 45 | |
| 46 | /* MMC Configs */ |
| 47 | #ifdef CONFIG_FSL_USDHC |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 48 | #define CFG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR |
| 49 | #define CFG_SYS_FSL_USDHC_NUM 2 |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 50 | #endif |
| 51 | |
Frieder Schrempf | dbbb780 | 2022-08-23 16:29:14 +0200 | [diff] [blame] | 52 | #define CONFIG_EXTRA_ENV_SETTINGS BOOTENV |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 53 | |
| 54 | #endif /* __KONTRON_MX6UL_CONFIG_H */ |