blob: 1c92cd787677b80289e9b92b9239649859a627d0 [file] [log] [blame]
Frieder Schrempfc6d170b2021-09-29 16:42:41 +02001/* 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 Schrempfc6d170b2021-09-29 16:42:41 +020014
15/* RAM */
16#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
Tom Rinibb4dd962022-11-16 13:10:37 -050017#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020018
Tom Rini6a5dccc2022-11-16 13:10:41 -050019#define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
20#define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020021
Tom Rini6a5dccc2022-11-16 13:10:41 -050022#define CFG_SYS_UBOOT_BASE CONFIG_TEXT_BASE
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020023
24/* Board and environment settings */
Tom Rinia17aa192022-12-04 10:04:55 -050025#define CFG_MXC_UART_BASE UART4_BASE
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020026
27#ifdef CONFIG_USB_EHCI_HCD
Tom Rinib9796e82022-12-04 10:04:56 -050028#define CFG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
29#define CFG_MXC_USB_FLAGS 0
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020030#endif
31
32/* Boot order for distro boot */
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020033#define BOOT_TARGET_DEVICES(func) \
34 func(MMC, mmc, 1) \
35 func(MMC, mmc, 0) \
Pali Rohárdd54f6c2022-05-31 10:32:36 +020036 func(UBIFS, ubifs, 0, UBI, boot) \
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020037 func(USB, usb, 0) \
38 func(PXE, pxe, na) \
39 func(DHCP, dhcp, na)
40#include <config_distro_bootcmd.h>
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020041
42/* MMC Configs */
43#ifdef CONFIG_FSL_USDHC
Tom Rini376b88a2022-10-28 20:27:13 -040044#define CFG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR
45#define CFG_SYS_FSL_USDHC_NUM 2
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020046#endif
47
Tom Rinic9edebe2022-12-04 10:03:50 -050048#define CFG_EXTRA_ENV_SETTINGS BOOTENV
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020049
50#endif /* __KONTRON_MX6UL_CONFIG_H */