Christoph Fritz | d170864 | 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 | |
| 21 | #define CONFIG_BOARD_EARLY_INIT_F |
| 22 | |
| 23 | #define CONFIG_MXC_UART |
| 24 | #define CONFIG_MXC_UART_BASE UART1_BASE |
| 25 | |
| 26 | #define BOOT_TARGET_DEVICES(func) \ |
| 27 | func(MMC, mmc, 0) \ |
| 28 | func(MMC, mmc, 1) \ |
| 29 | func(USB, usb, 0) \ |
| 30 | func(PXE, pxe, na) \ |
| 31 | func(DHCP, dhcp, na) |
| 32 | #include <config_distro_bootcmd.h> |
| 33 | |
| 34 | /* Miscellaneous configurable options */ |
| 35 | #define CONFIG_SYS_MEMTEST_START 0x80000000 |
| 36 | #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 0x10000) |
| 37 | |
| 38 | #define CONFIG_STACKSIZE SZ_128K |
| 39 | |
| 40 | /* Physical Memory Map */ |
| 41 | #define CONFIG_NR_DRAM_BANKS 1 |
| 42 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
| 43 | |
| 44 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM |
| 45 | #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 46 | #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE |
| 47 | |
| 48 | #define CONFIG_SYS_INIT_SP_OFFSET \ |
| 49 | (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
| 50 | #define CONFIG_SYS_INIT_SP_ADDR \ |
| 51 | (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) |
| 52 | |
| 53 | /* MMC Configuration */ |
| 54 | #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR |
| 55 | |
| 56 | /* I2C Configs */ |
| 57 | #define CONFIG_SYS_I2C |
| 58 | #define CONFIG_SYS_I2C_MXC |
| 59 | #define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */ |
| 60 | #define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */ |
| 61 | #define CONFIG_SYS_I2C_SPEED 100000 |
| 62 | |
| 63 | /* PMIC */ |
| 64 | #define CONFIG_POWER |
| 65 | #define CONFIG_POWER_I2C |
| 66 | #define CONFIG_POWER_PFUZE100 |
| 67 | #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 |
| 68 | |
| 69 | /* Network */ |
| 70 | #define CONFIG_FEC_MXC |
| 71 | #define CONFIG_MII |
| 72 | |
| 73 | #define IMX_FEC_BASE ENET_BASE_ADDR |
| 74 | #define CONFIG_FEC_MXC_PHYADDR 0x0 |
| 75 | |
| 76 | #define CONFIG_FEC_XCV_TYPE RMII |
| 77 | #define CONFIG_ETHPRIME "FEC" |
| 78 | |
| 79 | #define CONFIG_PHYLIB |
| 80 | #define CONFIG_PHY_ATHEROS |
| 81 | |
| 82 | #ifdef CONFIG_CMD_USB |
| 83 | #define CONFIG_USB_EHCI |
| 84 | #define CONFIG_USB_EHCI_MX6 |
| 85 | #define CONFIG_EHCI_HCD_INIT_AFTER_RESET |
| 86 | #define CONFIG_USB_HOST_ETHER |
| 87 | #define CONFIG_USB_ETHER_ASIX |
| 88 | #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
| 89 | #define CONFIG_MXC_USB_FLAGS 0 |
| 90 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 |
| 91 | #endif |
| 92 | |
| 93 | #define CONFIG_CMD_PCI |
| 94 | #ifdef CONFIG_CMD_PCI |
| 95 | #define CONFIG_PCI_SCAN_SHOW |
| 96 | #define CONFIG_PCIE_IMX |
| 97 | #define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(4, 6) |
| 98 | #endif |
| 99 | |
| 100 | #define CONFIG_IMX_THERMAL |
| 101 | |
| 102 | #define CONFIG_PWM_IMX |
| 103 | #define CONFIG_IMX6_PWM_PER_CLK 66000000 |
| 104 | #define CONFIG_BOARD_LATE_INIT |
| 105 | |
| 106 | #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG |
| 107 | #define CONFIG_ENV_OFFSET (8 * SZ_64K) |
| 108 | #define CONFIG_ENV_SIZE SZ_8K |
| 109 | #define CONFIG_ENV_OFFSET_REDUND (9 * SZ_64K) |
| 110 | #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE |
| 111 | #define CONFIG_ENV_IS_IN_MMC |
| 112 | |
| 113 | #ifdef CONFIG_ENV_IS_IN_MMC |
| 114 | #define CONFIG_SUPPORT_EMMC_BOOT |
| 115 | #define CONFIG_EFI_PARTITION |
| 116 | #define CONFIG_DOS_PARTITION |
| 117 | #define CONFIG_SUPPORT_EMMC_RPMB |
| 118 | #define CONFIG_SYS_MMC_ENV_DEV 0 /* USDHC4 eMMC */ |
| 119 | /* 0=user, 1=boot0, 2=boot1, * 4..7=general0..3. */ |
| 120 | #define CONFIG_SYS_MMC_ENV_PART 1 /* boot0 */ |
| 121 | #endif |
| 122 | |
| 123 | #endif /* __CONFIG_H */ |