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 #define CFG_MXC_USB_PORTSC  (PORT_PTS_UTMI | PORT_PTS_PTW)
40 #define CFG_MXC_USB_FLAGS   0
41 
42 #ifdef CONFIG_CMD_PCI
43 #define CFG_PCIE_IMX_PERST_GPIO	IMX_GPIO_NR(4, 6)
44 #endif
45 
46 #define CFG_IMX6_PWM_PER_CLK 66000000
47 
48 #ifdef CONFIG_ENV_IS_IN_MMC
49 /* 0=user, 1=boot0, 2=boot1, * 4..7=general0..3. */
50 #endif
51 
52 #ifdef CONFIG_SPL_BUILD
53 #define CFG_MXC_UART_BASE		UART1_BASE
54 #endif
55 
56 #endif				/* __CONFIG_H */
57