1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2016 samtec automotive software & electronics gmbh
4  *
5  * Configuration settings for the Samtec VIN|ING 2000 board.
6  */
7 
8 #ifndef __CONFIG_H
9 #define __CONFIG_H
10 
11 #include "mx6_common.h"
12 
13 #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 */
22 
23 /* Physical Memory Map */
24 #define PHYS_SDRAM			MMDC0_ARB_BASE_ADDR
25 
26 #define CFG_SYS_SDRAM_BASE		PHYS_SDRAM
27 #define CFG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR
28 #define CFG_SYS_INIT_RAM_SIZE	IRAM_SIZE
29 
30 /* MMC Configuration */
31 #define CFG_SYS_FSL_ESDHC_ADDR	USDHC4_BASE_ADDR
32 
33 /* PMIC */
34 #define CFG_POWER_PFUZE100_I2C_ADDR	0x08
35 
36 /* Network */
37 #define CFG_FEC_MXC_PHYADDR          0x0
38 
39 
40 #ifdef CONFIG_CMD_PCI
41 #define CFG_PCIE_IMX_PERST_GPIO	IMX_GPIO_NR(4, 6)
42 #endif
43 
44 #define CFG_IMX6_PWM_PER_CLK 66000000
45 
46 #ifdef CONFIG_ENV_IS_IN_MMC
47 /* 0=user, 1=boot0, 2=boot1, * 4..7=general0..3. */
48 #endif
49 
50 #ifdef CONFIG_XPL_BUILD
51 #define CFG_MXC_UART_BASE		UART1_BASE
52 #endif
53 
54 #endif				/* __CONFIG_H */
55