blob: a4484fd3f8ca5827f603c43ea36c9210784ac60b [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
13#ifdef CONFIG_SPL
14#include "imx6_spl.h"
15#endif
16
Christoph Fritzd1708642016-11-29 16:13:40 +010017#define BOOT_TARGET_DEVICES(func) \
18 func(MMC, mmc, 0) \
19 func(MMC, mmc, 1) \
20 func(USB, usb, 0) \
21 func(PXE, pxe, na) \
22 func(DHCP, dhcp, na)
23#include <config_distro_bootcmd.h>
24
25/* Miscellaneous configurable options */
Christoph Fritzd1708642016-11-29 16:13:40 +010026
Christoph Fritzd1708642016-11-29 16:13:40 +010027/* Physical Memory Map */
Christoph Fritzd1708642016-11-29 16:13:40 +010028#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
29
30#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
31#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
32#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
33
Christoph Fritzd1708642016-11-29 16:13:40 +010034/* MMC Configuration */
Tom Rini376b88a2022-10-28 20:27:13 -040035#define CFG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR
Christoph Fritzd1708642016-11-29 16:13:40 +010036
Christoph Fritzd1708642016-11-29 16:13:40 +010037/* PMIC */
Christoph Fritzd1708642016-11-29 16:13:40 +010038#define CONFIG_POWER_PFUZE100
39#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
40
41/* Network */
Christoph Fritzd1708642016-11-29 16:13:40 +010042#define CONFIG_FEC_MXC_PHYADDR 0x0
43
Christoph Fritzd1708642016-11-29 16:13:40 +010044#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
45#define CONFIG_MXC_USB_FLAGS 0
Christoph Fritzd1708642016-11-29 16:13:40 +010046
Christoph Fritzd1708642016-11-29 16:13:40 +010047#ifdef CONFIG_CMD_PCI
Christoph Fritzd1708642016-11-29 16:13:40 +010048#define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(4, 6)
49#endif
50
Christoph Fritzd1708642016-11-29 16:13:40 +010051#define CONFIG_IMX6_PWM_PER_CLK 66000000
Christoph Fritzd1708642016-11-29 16:13:40 +010052
Christoph Fritzd1708642016-11-29 16:13:40 +010053#ifdef CONFIG_ENV_IS_IN_MMC
Christoph Fritzd1708642016-11-29 16:13:40 +010054/* 0=user, 1=boot0, 2=boot1, * 4..7=general0..3. */
Christoph Fritzd1708642016-11-29 16:13:40 +010055#endif
56
Marek Vasut970d51a2019-11-26 09:39:08 +010057#ifdef CONFIG_SPL_BUILD
58#define CONFIG_MXC_UART_BASE UART1_BASE
59#endif
60
Christoph Fritzd1708642016-11-29 16:13:40 +010061#endif /* __CONFIG_H */