Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 samtec automotive software & electronics gmbh |
| 3 | * |
| 4 | * Configuration settings for the Samtec VIN|ING 2000 board. |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
| 7 | */ |
| 8 | |
| 9 | #ifndef __CONFIG_H |
| 10 | #define __CONFIG_H |
| 11 | |
| 12 | #include "mx6_common.h" |
| 13 | |
| 14 | #ifdef CONFIG_SPL |
| 15 | #include "imx6_spl.h" |
| 16 | #endif |
| 17 | |
| 18 | /* Size of malloc() pool */ |
| 19 | #define CONFIG_SYS_MALLOC_LEN (3 * SZ_1M) |
| 20 | |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 21 | #define CONFIG_MXC_UART |
| 22 | #define CONFIG_MXC_UART_BASE UART1_BASE |
| 23 | |
| 24 | #define BOOT_TARGET_DEVICES(func) \ |
| 25 | func(MMC, mmc, 0) \ |
| 26 | func(MMC, mmc, 1) \ |
| 27 | func(USB, usb, 0) \ |
| 28 | func(PXE, pxe, na) \ |
| 29 | func(DHCP, dhcp, na) |
| 30 | #include <config_distro_bootcmd.h> |
| 31 | |
| 32 | /* Miscellaneous configurable options */ |
| 33 | #define CONFIG_SYS_MEMTEST_START 0x80000000 |
| 34 | #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 0x10000) |
| 35 | |
| 36 | #define CONFIG_STACKSIZE SZ_128K |
| 37 | |
| 38 | /* Physical Memory Map */ |
| 39 | #define CONFIG_NR_DRAM_BANKS 1 |
| 40 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
| 41 | |
| 42 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM |
| 43 | #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 44 | #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE |
| 45 | |
| 46 | #define CONFIG_SYS_INIT_SP_OFFSET \ |
| 47 | (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
| 48 | #define CONFIG_SYS_INIT_SP_ADDR \ |
| 49 | (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) |
| 50 | |
| 51 | /* MMC Configuration */ |
| 52 | #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR |
| 53 | |
| 54 | /* I2C Configs */ |
| 55 | #define CONFIG_SYS_I2C |
| 56 | #define CONFIG_SYS_I2C_MXC |
| 57 | #define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */ |
| 58 | #define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */ |
| 59 | #define CONFIG_SYS_I2C_SPEED 100000 |
| 60 | |
| 61 | /* PMIC */ |
| 62 | #define CONFIG_POWER |
| 63 | #define CONFIG_POWER_I2C |
| 64 | #define CONFIG_POWER_PFUZE100 |
| 65 | #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 |
| 66 | |
| 67 | /* Network */ |
| 68 | #define CONFIG_FEC_MXC |
| 69 | #define CONFIG_MII |
| 70 | |
| 71 | #define IMX_FEC_BASE ENET_BASE_ADDR |
| 72 | #define CONFIG_FEC_MXC_PHYADDR 0x0 |
| 73 | |
| 74 | #define CONFIG_FEC_XCV_TYPE RMII |
| 75 | #define CONFIG_ETHPRIME "FEC" |
| 76 | |
| 77 | #define CONFIG_PHYLIB |
| 78 | #define CONFIG_PHY_ATHEROS |
| 79 | |
| 80 | #ifdef CONFIG_CMD_USB |
| 81 | #define CONFIG_USB_EHCI |
| 82 | #define CONFIG_USB_EHCI_MX6 |
| 83 | #define CONFIG_EHCI_HCD_INIT_AFTER_RESET |
| 84 | #define CONFIG_USB_HOST_ETHER |
| 85 | #define CONFIG_USB_ETHER_ASIX |
| 86 | #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
| 87 | #define CONFIG_MXC_USB_FLAGS 0 |
| 88 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 |
| 89 | #endif |
| 90 | |
| 91 | #define CONFIG_CMD_PCI |
| 92 | #ifdef CONFIG_CMD_PCI |
| 93 | #define CONFIG_PCI_SCAN_SHOW |
| 94 | #define CONFIG_PCIE_IMX |
| 95 | #define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(4, 6) |
| 96 | #endif |
| 97 | |
| 98 | #define CONFIG_IMX_THERMAL |
| 99 | |
| 100 | #define CONFIG_PWM_IMX |
| 101 | #define CONFIG_IMX6_PWM_PER_CLK 66000000 |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 102 | |
| 103 | #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG |
| 104 | #define CONFIG_ENV_OFFSET (8 * SZ_64K) |
| 105 | #define CONFIG_ENV_SIZE SZ_8K |
| 106 | #define CONFIG_ENV_OFFSET_REDUND (9 * SZ_64K) |
| 107 | #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE |
| 108 | #define CONFIG_ENV_IS_IN_MMC |
| 109 | |
| 110 | #ifdef CONFIG_ENV_IS_IN_MMC |
| 111 | #define CONFIG_SUPPORT_EMMC_BOOT |
Christoph Fritz | 730d254 | 2016-11-29 16:13:40 +0100 | [diff] [blame] | 112 | #define CONFIG_SUPPORT_EMMC_RPMB |
| 113 | #define CONFIG_SYS_MMC_ENV_DEV 0 /* USDHC4 eMMC */ |
| 114 | /* 0=user, 1=boot0, 2=boot1, * 4..7=general0..3. */ |
| 115 | #define CONFIG_SYS_MMC_ENV_PART 1 /* boot0 */ |
| 116 | #endif |
| 117 | |
| 118 | #endif /* __CONFIG_H */ |