blob: a851fb41a814782ddaf56efbe0e6bdaa006027d0 [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
17/* Size of malloc() pool */
18#define CONFIG_SYS_MALLOC_LEN (3 * SZ_1M)
19
Christoph Fritzd1708642016-11-29 16:13:40 +010020#define BOOT_TARGET_DEVICES(func) \
21 func(MMC, mmc, 0) \
22 func(MMC, mmc, 1) \
23 func(USB, usb, 0) \
24 func(PXE, pxe, na) \
25 func(DHCP, dhcp, na)
26#include <config_distro_bootcmd.h>
27
28/* Miscellaneous configurable options */
Christoph Fritzd1708642016-11-29 16:13:40 +010029
Christoph Fritzd1708642016-11-29 16:13:40 +010030/* Physical Memory Map */
Christoph Fritzd1708642016-11-29 16:13:40 +010031#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
32
33#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
34#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
35#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
36
37#define CONFIG_SYS_INIT_SP_OFFSET \
38 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
39#define CONFIG_SYS_INIT_SP_ADDR \
40 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
41
42/* MMC Configuration */
43#define CONFIG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR
44
45/* I2C Configs */
46#define CONFIG_SYS_I2C
47#define CONFIG_SYS_I2C_MXC
48#define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */
49#define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */
50#define CONFIG_SYS_I2C_SPEED 100000
51
52/* PMIC */
53#define CONFIG_POWER
54#define CONFIG_POWER_I2C
55#define CONFIG_POWER_PFUZE100
56#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
57
58/* Network */
Christoph Fritzd1708642016-11-29 16:13:40 +010059#define IMX_FEC_BASE ENET_BASE_ADDR
60#define CONFIG_FEC_MXC_PHYADDR 0x0
61
62#define CONFIG_FEC_XCV_TYPE RMII
63#define CONFIG_ETHPRIME "FEC"
64
Christoph Fritzd1708642016-11-29 16:13:40 +010065#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
Christoph Fritzd1708642016-11-29 16:13:40 +010066#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
67#define CONFIG_MXC_USB_FLAGS 0
68#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Christoph Fritzd1708642016-11-29 16:13:40 +010069
Christoph Fritzd1708642016-11-29 16:13:40 +010070#ifdef CONFIG_CMD_PCI
71#define CONFIG_PCI_SCAN_SHOW
72#define CONFIG_PCIE_IMX
73#define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(4, 6)
74#endif
75
76#define CONFIG_IMX_THERMAL
77
Christoph Fritzd1708642016-11-29 16:13:40 +010078#define CONFIG_IMX6_PWM_PER_CLK 66000000
Christoph Fritzd1708642016-11-29 16:13:40 +010079
Christoph Fritzd1708642016-11-29 16:13:40 +010080#ifdef CONFIG_ENV_IS_IN_MMC
Christoph Fritzd1708642016-11-29 16:13:40 +010081/* 0=user, 1=boot0, 2=boot1, * 4..7=general0..3. */
Christoph Fritzd1708642016-11-29 16:13:40 +010082#endif
83
Marek Vasut970d51a2019-11-26 09:39:08 +010084#ifdef CONFIG_SPL_BUILD
85#define CONFIG_MXC_UART_BASE UART1_BASE
86#endif
87
Christoph Fritzd1708642016-11-29 16:13:40 +010088#endif /* __CONFIG_H */