blob: 1a71b300fc55b69c7adcfc85c5130994f21c1509 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Christoph Fritzd1708642016-11-29 16:13:40 +01002/*
3 * Copyright (C) 2016 samtec automotive software & electronics gmbh
4 *
5 * Configuration settings for the Samtec VIN|ING 2000 board.
Christoph Fritzd1708642016-11-29 16:13:40 +01006 */
7
8#ifndef __CONFIG_H
9#define __CONFIG_H
10
11#include "mx6_common.h"
12
Christoph Fritzd1708642016-11-29 16:13:40 +010013#define BOOT_TARGET_DEVICES(func) \
14 func(MMC, mmc, 0) \
15 func(MMC, mmc, 1) \
16 func(USB, usb, 0) \
17 func(PXE, pxe, na) \
18 func(DHCP, dhcp, na)
19#include <config_distro_bootcmd.h>
20
21/* Miscellaneous configurable options */
Christoph Fritzd1708642016-11-29 16:13:40 +010022
Christoph Fritzd1708642016-11-29 16:13:40 +010023/* Physical Memory Map */
Christoph Fritzd1708642016-11-29 16:13:40 +010024#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
25
Tom Rinibb4dd962022-11-16 13:10:37 -050026#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
Tom Rini6a5dccc2022-11-16 13:10:41 -050027#define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
28#define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
Christoph Fritzd1708642016-11-29 16:13:40 +010029
Christoph Fritzd1708642016-11-29 16:13:40 +010030/* MMC Configuration */
Tom Rini376b88a2022-10-28 20:27:13 -040031#define CFG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR
Christoph Fritzd1708642016-11-29 16:13:40 +010032
Christoph Fritzd1708642016-11-29 16:13:40 +010033/* PMIC */
Christoph Fritzd1708642016-11-29 16:13:40 +010034#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
35
36/* Network */
Christoph Fritzd1708642016-11-29 16:13:40 +010037#define CONFIG_FEC_MXC_PHYADDR 0x0
38
Christoph Fritzd1708642016-11-29 16:13:40 +010039#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
40#define CONFIG_MXC_USB_FLAGS 0
Christoph Fritzd1708642016-11-29 16:13:40 +010041
Christoph Fritzd1708642016-11-29 16:13:40 +010042#ifdef CONFIG_CMD_PCI
Christoph Fritzd1708642016-11-29 16:13:40 +010043#define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(4, 6)
44#endif
45
Christoph Fritzd1708642016-11-29 16:13:40 +010046#define CONFIG_IMX6_PWM_PER_CLK 66000000
Christoph Fritzd1708642016-11-29 16:13:40 +010047
Christoph Fritzd1708642016-11-29 16:13:40 +010048#ifdef CONFIG_ENV_IS_IN_MMC
Christoph Fritzd1708642016-11-29 16:13:40 +010049/* 0=user, 1=boot0, 2=boot1, * 4..7=general0..3. */
Christoph Fritzd1708642016-11-29 16:13:40 +010050#endif
51
Marek Vasut970d51a2019-11-26 09:39:08 +010052#ifdef CONFIG_SPL_BUILD
53#define CONFIG_MXC_UART_BASE UART1_BASE
54#endif
55
Christoph Fritzd1708642016-11-29 16:13:40 +010056#endif /* __CONFIG_H */