blob: 30654191a26495529eaa8e6b01f315c6a2630937 [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 */
Tom Rinif52f9072022-12-04 10:13:35 -050034#define CFG_POWER_PFUZE100_I2C_ADDR 0x08
Christoph Fritzd1708642016-11-29 16:13:40 +010035
36/* Network */
Tom Rini4e3c8a62022-12-04 10:03:53 -050037#define CFG_FEC_MXC_PHYADDR 0x0
Christoph Fritzd1708642016-11-29 16:13:40 +010038
Tom Rinib9796e82022-12-04 10:04:56 -050039#define CFG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
40#define CFG_MXC_USB_FLAGS 0
Christoph Fritzd1708642016-11-29 16:13:40 +010041
Christoph Fritzd1708642016-11-29 16:13:40 +010042#ifdef CONFIG_CMD_PCI
Tom Rini9fa71af2022-12-04 10:13:25 -050043#define CFG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(4, 6)
Christoph Fritzd1708642016-11-29 16:13:40 +010044#endif
45
Tom Rinifbdbe532022-12-04 10:04:12 -050046#define CFG_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
Tom Rinia17aa192022-12-04 10:04:55 -050053#define CFG_MXC_UART_BASE UART1_BASE
Marek Vasut970d51a2019-11-26 09:39:08 +010054#endif
55
Christoph Fritzd1708642016-11-29 16:13:40 +010056#endif /* __CONFIG_H */