blob: 015df01db4e6c46dfd2d5d91ce40c9d6270b95f9 [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
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020027/* Boot order for distro boot */
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020028#define BOOT_TARGET_DEVICES(func) \
29 func(MMC, mmc, 1) \
30 func(MMC, mmc, 0) \
Pali Rohárdd54f6c2022-05-31 10:32:36 +020031 func(UBIFS, ubifs, 0, UBI, boot) \
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020032 func(USB, usb, 0) \
33 func(PXE, pxe, na) \
34 func(DHCP, dhcp, na)
35#include <config_distro_bootcmd.h>
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020036
37/* MMC Configs */
38#ifdef CONFIG_FSL_USDHC
Tom Rini376b88a2022-10-28 20:27:13 -040039#define CFG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR
40#define CFG_SYS_FSL_USDHC_NUM 2
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020041#endif
42
Tom Rinic9edebe2022-12-04 10:03:50 -050043#define CFG_EXTRA_ENV_SETTINGS BOOTENV
Frieder Schrempfc6d170b2021-09-29 16:42:41 +020044
45#endif /* __KONTRON_MX6UL_CONFIG_H */