blob: 1c92cd787677b80289e9b92b9239649859a627d0 [file] [log] [blame]
Frieder Schrempfe6f48aa2021-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 Schrempfe6f48aa2021-09-29 16:42:41 +020014
15/* RAM */
16#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
Tom Riniaa6e94d2022-11-16 13:10:37 -050017#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
Frieder Schrempfe6f48aa2021-09-29 16:42:41 +020018
Tom Rini65cc0e22022-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 Schrempfe6f48aa2021-09-29 16:42:41 +020021
Tom Rini65cc0e22022-11-16 13:10:41 -050022#define CFG_SYS_UBOOT_BASE CONFIG_TEXT_BASE
Frieder Schrempfe6f48aa2021-09-29 16:42:41 +020023
24/* Board and environment settings */
Tom Rini4db38662022-12-04 10:04:55 -050025#define CFG_MXC_UART_BASE UART4_BASE
Frieder Schrempfe6f48aa2021-09-29 16:42:41 +020026
27#ifdef CONFIG_USB_EHCI_HCD
Tom Rinidd11fdc2022-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 Schrempfe6f48aa2021-09-29 16:42:41 +020030#endif
31
32/* Boot order for distro boot */
Frieder Schrempfe6f48aa2021-09-29 16:42:41 +020033#define BOOT_TARGET_DEVICES(func) \
34 func(MMC, mmc, 1) \
35 func(MMC, mmc, 0) \
Pali Roháre6ca1482022-05-31 10:32:36 +020036 func(UBIFS, ubifs, 0, UBI, boot) \
Frieder Schrempfe6f48aa2021-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 Schrempfe6f48aa2021-09-29 16:42:41 +020041
42/* MMC Configs */
43#ifdef CONFIG_FSL_USDHC
Tom Rini6cc04542022-10-28 20:27:13 -040044#define CFG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR
45#define CFG_SYS_FSL_USDHC_NUM 2
Frieder Schrempfe6f48aa2021-09-29 16:42:41 +020046#endif
47
Tom Rini0613c362022-12-04 10:03:50 -050048#define CFG_EXTRA_ENV_SETTINGS BOOTENV
Frieder Schrempfe6f48aa2021-09-29 16:42:41 +020049
50#endif /* __KONTRON_MX6UL_CONFIG_H */