Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Christoph Fritz | d170864 | 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 | d170864 | 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 | |
| 13 | #ifdef CONFIG_SPL |
| 14 | #include "imx6_spl.h" |
| 15 | #endif |
| 16 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 17 | #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 Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 26 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 27 | /* Physical Memory Map */ |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 28 | #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 | |
| 34 | #define CONFIG_SYS_INIT_SP_OFFSET \ |
| 35 | (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
| 36 | #define CONFIG_SYS_INIT_SP_ADDR \ |
| 37 | (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) |
| 38 | |
| 39 | /* MMC Configuration */ |
| 40 | #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR |
| 41 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 42 | /* PMIC */ |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 43 | #define CONFIG_POWER_PFUZE100 |
| 44 | #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 |
| 45 | |
| 46 | /* Network */ |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 47 | #define CONFIG_FEC_MXC_PHYADDR 0x0 |
| 48 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 49 | #define CONFIG_EHCI_HCD_INIT_AFTER_RESET |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 50 | #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
| 51 | #define CONFIG_MXC_USB_FLAGS 0 |
| 52 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 53 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 54 | #ifdef CONFIG_CMD_PCI |
| 55 | #define CONFIG_PCI_SCAN_SHOW |
| 56 | #define CONFIG_PCIE_IMX |
| 57 | #define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(4, 6) |
| 58 | #endif |
| 59 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 60 | #define CONFIG_IMX6_PWM_PER_CLK 66000000 |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 61 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 62 | #ifdef CONFIG_ENV_IS_IN_MMC |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 63 | /* 0=user, 1=boot0, 2=boot1, * 4..7=general0..3. */ |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 64 | #endif |
| 65 | |
Marek Vasut | 970d51a | 2019-11-26 09:39:08 +0100 | [diff] [blame] | 66 | #ifdef CONFIG_SPL_BUILD |
| 67 | #define CONFIG_MXC_UART_BASE UART1_BASE |
| 68 | #endif |
| 69 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 70 | #endif /* __CONFIG_H */ |