Pali Rohár | 6763ff8 | 2024-06-06 18:33:26 +0200 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
| 2 | # (C) 2022 Pali Rohár <pali@kernel.org> |
| 3 | |
| 4 | if TARGET_TURRIS_1X |
| 5 | |
| 6 | # Board identification |
| 7 | config SYS_BOARD |
| 8 | default "turris_1x" |
| 9 | config SYS_VENDOR |
| 10 | default "CZ.NIC" |
| 11 | config SYS_CONFIG_NAME |
| 12 | default "turris_1x" |
| 13 | config DEFAULT_DEVICE_TREE |
| 14 | default "turris1x" |
| 15 | |
| 16 | # Board functions |
| 17 | config ATSHA204A |
| 18 | default y |
| 19 | config BOARD_EARLY_INIT_F |
| 20 | default y |
| 21 | config BOARD_EARLY_INIT_R |
| 22 | default y |
| 23 | config LAST_STAGE_INIT |
| 24 | default y |
| 25 | config MISC |
| 26 | default y |
| 27 | config OF_BOARD_FIXUP |
| 28 | default y |
| 29 | config OF_BOARD_SETUP |
| 30 | default y |
| 31 | |
| 32 | # ENV |
| 33 | config ENV_SIZE |
| 34 | default 0x2000 |
| 35 | config ENV_SECT_SIZE |
| 36 | default 0x20000 |
| 37 | config ENV_OVERWRITE |
| 38 | default y |
| 39 | config ENV_IS_IN_FLASH |
| 40 | default y |
| 41 | config ENV_ADDR |
| 42 | default 0xeff20000 # in NOR |
| 43 | config SYS_RELOC_GD_ENV_ADDR |
| 44 | default y |
| 45 | |
| 46 | # DDR |
| 47 | config DDR_CLK_FREQ |
| 48 | default 66666666 |
| 49 | config NR_DRAM_BANKS |
| 50 | default 5 |
| 51 | |
| 52 | # UART |
| 53 | config DEBUG_UART_BASE |
| 54 | default 0xffe04500 if DEBUG_UART |
| 55 | config DEBUG_UART_CLOCK |
| 56 | default 37500000 if DEBUG_UART |
| 57 | config SYS_NS16550 |
| 58 | default y |
| 59 | |
| 60 | # I2C |
| 61 | config I2C_SET_DEFAULT_BUS_NUM |
| 62 | default y |
| 63 | config SYS_FSL_I2C_OFFSET |
| 64 | default 0x3000 |
| 65 | config SYS_FSL_HAS_I2C2_OFFSET |
| 66 | default y |
| 67 | config SYS_FSL_I2C2_OFFSET |
| 68 | default 0x3100 |
| 69 | config SYS_I2C_FSL |
| 70 | default y |
| 71 | |
| 72 | # GPIO |
| 73 | config MPC8XXX_GPIO |
| 74 | default y |
| 75 | |
| 76 | # WDT |
| 77 | config WDT_MAX6370 |
| 78 | default y |
| 79 | |
| 80 | # PCIe |
| 81 | config PCI_INIT_R |
| 82 | default y |
| 83 | config PCIE_FSL |
| 84 | default y |
| 85 | |
| 86 | # Ethernet |
| 87 | config MII |
| 88 | default y |
| 89 | config PHY_FIXED |
| 90 | default y |
| 91 | config TSEC_ENET |
| 92 | default y |
| 93 | |
| 94 | # USB |
| 95 | config USB_EHCI_FSL |
| 96 | default y |
| 97 | config USB_XHCI_HCD |
| 98 | default y |
| 99 | config USB_XHCI_PCI |
| 100 | default y |
| 101 | |
| 102 | # SDHC |
| 103 | config FSL_ESDHC |
| 104 | default y |
| 105 | config SYS_FSL_ESDHC_DEFAULT_BUS_WIDTH |
| 106 | default 4 |
| 107 | |
| 108 | # NOR |
| 109 | config MTD_NOR_FLASH |
| 110 | default y |
| 111 | config CFI_FLASH |
| 112 | default y |
| 113 | config FLASH_CFI_MTD |
| 114 | default y |
| 115 | config SYS_FLASH_USE_BUFFER_WRITE |
| 116 | default y |
| 117 | |
| 118 | # NAND |
| 119 | config MTD_RAW_NAND |
| 120 | default y |
| 121 | config NAND_FSL_ELBC |
| 122 | default y |
| 123 | config NAND_FSL_ELBC_DT |
| 124 | default y |
| 125 | config BCH |
| 126 | default y |
| 127 | config SYS_FLASH_CFI |
| 128 | default y |
| 129 | config NAND_ECC_BCH |
| 130 | default y |
| 131 | endif |
| 132 | |
| 133 | config SYS_LOAD_ADDR |
| 134 | default 0x1000000 |
| 135 | |
| 136 | if SPL |
| 137 | |
| 138 | config SPL_ENV_SUPPORT |
| 139 | default y |
| 140 | config SPL_FRAMEWORK |
| 141 | default n |
| 142 | config SPL_I2C |
| 143 | default y |
| 144 | config SPL_LIBCOMMON_SUPPORT |
| 145 | default y |
| 146 | config SPL_LIBGENERIC_SUPPORT |
| 147 | default y |
| 148 | config SPL_MPC8XXX_INIT_DDR |
| 149 | default y |
| 150 | config SPL_SERIAL |
| 151 | default y |
| 152 | config SPL_SYS_I2C_LEGACY |
| 153 | default y |
| 154 | |
| 155 | endif |