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 | |
| 17 | /* Size of malloc() pool */ |
| 18 | #define CONFIG_SYS_MALLOC_LEN (3 * SZ_1M) |
| 19 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 20 | #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 */ |
| 29 | #define CONFIG_SYS_MEMTEST_START 0x80000000 |
| 30 | #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 0x10000) |
| 31 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 32 | /* Physical Memory Map */ |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 33 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
| 34 | |
| 35 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM |
| 36 | #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 37 | #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE |
| 38 | |
| 39 | #define CONFIG_SYS_INIT_SP_OFFSET \ |
| 40 | (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
| 41 | #define CONFIG_SYS_INIT_SP_ADDR \ |
| 42 | (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) |
| 43 | |
| 44 | /* MMC Configuration */ |
| 45 | #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR |
| 46 | |
| 47 | /* I2C Configs */ |
| 48 | #define CONFIG_SYS_I2C |
| 49 | #define CONFIG_SYS_I2C_MXC |
| 50 | #define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */ |
| 51 | #define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */ |
| 52 | #define CONFIG_SYS_I2C_SPEED 100000 |
| 53 | |
| 54 | /* PMIC */ |
| 55 | #define CONFIG_POWER |
| 56 | #define CONFIG_POWER_I2C |
| 57 | #define CONFIG_POWER_PFUZE100 |
| 58 | #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 |
| 59 | |
| 60 | /* Network */ |
| 61 | #define CONFIG_FEC_MXC |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 62 | |
| 63 | #define IMX_FEC_BASE ENET_BASE_ADDR |
| 64 | #define CONFIG_FEC_MXC_PHYADDR 0x0 |
| 65 | |
| 66 | #define CONFIG_FEC_XCV_TYPE RMII |
| 67 | #define CONFIG_ETHPRIME "FEC" |
| 68 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 69 | #define CONFIG_PHY_ATHEROS |
| 70 | |
| 71 | #ifdef CONFIG_CMD_USB |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 72 | #define CONFIG_EHCI_HCD_INIT_AFTER_RESET |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 73 | #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
| 74 | #define CONFIG_MXC_USB_FLAGS 0 |
| 75 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 |
| 76 | #endif |
| 77 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 78 | #ifdef CONFIG_CMD_PCI |
| 79 | #define CONFIG_PCI_SCAN_SHOW |
| 80 | #define CONFIG_PCIE_IMX |
| 81 | #define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(4, 6) |
| 82 | #endif |
| 83 | |
| 84 | #define CONFIG_IMX_THERMAL |
| 85 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 86 | #define CONFIG_IMX6_PWM_PER_CLK 66000000 |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 87 | |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 88 | #define CONFIG_ENV_OFFSET (8 * SZ_64K) |
| 89 | #define CONFIG_ENV_SIZE SZ_8K |
| 90 | #define CONFIG_ENV_OFFSET_REDUND (9 * SZ_64K) |
| 91 | #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 92 | |
| 93 | #ifdef CONFIG_ENV_IS_IN_MMC |
Christoph Fritz | d170864 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 94 | #define CONFIG_SYS_MMC_ENV_DEV 0 /* USDHC4 eMMC */ |
| 95 | /* 0=user, 1=boot0, 2=boot1, * 4..7=general0..3. */ |
| 96 | #define CONFIG_SYS_MMC_ENV_PART 1 /* boot0 */ |
| 97 | #endif |
| 98 | |
| 99 | #endif /* __CONFIG_H */ |