Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016 samtec automotive software & electronics gmbh |
| 4 | * |
| 5 | * Configuration settings for the Samtec VIN|ING 2000 board. |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __CONFIG_H |
| 9 | #define __CONFIG_H |
| 10 | |
| 11 | #include "mx6_common.h" |
| 12 | |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 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 */ |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 22 | |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 23 | /* Physical Memory Map */ |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 24 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
| 25 | |
Tom Rini | aa6e94d | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 26 | #define CFG_SYS_SDRAM_BASE PHYS_SDRAM |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 27 | #define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 28 | #define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 29 | |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 30 | /* MMC Configuration */ |
Tom Rini | 6cc0454 | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 31 | #define CFG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 32 | |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 33 | /* PMIC */ |
Tom Rini | aa3efb6 | 2022-12-04 10:13:35 -0500 | [diff] [blame] | 34 | #define CFG_POWER_PFUZE100_I2C_ADDR 0x08 |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 35 | |
| 36 | /* Network */ |
Tom Rini | fa760c3 | 2022-12-04 10:03:53 -0500 | [diff] [blame] | 37 | #define CFG_FEC_MXC_PHYADDR 0x0 |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 38 | |
Tom Rini | dd11fdc | 2022-12-04 10:04:56 -0500 | [diff] [blame] | 39 | #define CFG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
| 40 | #define CFG_MXC_USB_FLAGS 0 |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 41 | |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 42 | #ifdef CONFIG_CMD_PCI |
Tom Rini | 7906f91 | 2022-12-04 10:13:25 -0500 | [diff] [blame] | 43 | #define CFG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(4, 6) |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 44 | #endif |
| 45 | |
Tom Rini | e601429 | 2022-12-04 10:04:12 -0500 | [diff] [blame] | 46 | #define CFG_IMX6_PWM_PER_CLK 66000000 |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 47 | |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 48 | #ifdef CONFIG_ENV_IS_IN_MMC |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 49 | /* 0=user, 1=boot0, 2=boot1, * 4..7=general0..3. */ |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 50 | #endif |
| 51 | |
Marek Vasut | 7d84f44 | 2019-11-26 09:39:08 +0100 | [diff] [blame] | 52 | #ifdef CONFIG_SPL_BUILD |
Tom Rini | 4db3866 | 2022-12-04 10:04:55 -0500 | [diff] [blame] | 53 | #define CFG_MXC_UART_BASE UART1_BASE |
Marek Vasut | 7d84f44 | 2019-11-26 09:39:08 +0100 | [diff] [blame] | 54 | #endif |
| 55 | |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 56 | #endif /* __CONFIG_H */ |