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" |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 14 | |
| 15 | /* RAM */ |
| 16 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 17 | #define CFG_SYS_SDRAM_BASE PHYS_SDRAM |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 18 | |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 19 | #define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 20 | #define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 21 | |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 22 | #define CFG_SYS_UBOOT_BASE CONFIG_TEXT_BASE |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 23 | |
| 24 | /* Board and environment settings */ |
Tom Rini | a17aa19 | 2022-12-04 10:04:55 -0500 | [diff] [blame] | 25 | #define CFG_MXC_UART_BASE UART4_BASE |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 26 | |
| 27 | #ifdef CONFIG_USB_EHCI_HCD |
Tom Rini | b9796e8 | 2022-12-04 10:04:56 -0500 | [diff] [blame] | 28 | #define CFG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
| 29 | #define CFG_MXC_USB_FLAGS 0 |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 30 | #endif |
| 31 | |
| 32 | /* Boot order for distro boot */ |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 33 | #define BOOT_TARGET_DEVICES(func) \ |
| 34 | func(MMC, mmc, 1) \ |
| 35 | func(MMC, mmc, 0) \ |
Pali Rohár | dd54f6c | 2022-05-31 10:32:36 +0200 | [diff] [blame] | 36 | func(UBIFS, ubifs, 0, UBI, boot) \ |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 37 | func(USB, usb, 0) \ |
| 38 | func(PXE, pxe, na) \ |
| 39 | func(DHCP, dhcp, na) |
| 40 | #include <config_distro_bootcmd.h> |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 41 | |
| 42 | /* MMC Configs */ |
| 43 | #ifdef CONFIG_FSL_USDHC |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 44 | #define CFG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR |
| 45 | #define CFG_SYS_FSL_USDHC_NUM 2 |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 46 | #endif |
| 47 | |
Tom Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 48 | #define CFG_EXTRA_ENV_SETTINGS BOOTENV |
Frieder Schrempf | c6d170b | 2021-09-29 16:42:41 +0200 | [diff] [blame] | 49 | |
| 50 | #endif /* __KONTRON_MX6UL_CONFIG_H */ |