Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | # |
| 3 | # Copyright 2023 Toradex |
| 4 | # |
| 5 | |
| 6 | choice |
| 7 | prompt "Toradex Verdin AM62 based boards" |
| 8 | optional |
| 9 | |
| 10 | config TARGET_VERDIN_AM62_A53 |
| 11 | bool "Toradex Verdin AM62 running on A53" |
| 12 | select ARM64 |
| 13 | select BINMAN |
| 14 | |
| 15 | config TARGET_VERDIN_AM62_R5 |
| 16 | bool "Toradex Verdin AM62 running on R5" |
| 17 | select CPU_V7R |
| 18 | select SYS_THUMB_BUILD |
| 19 | select K3_LOAD_SYSFW |
| 20 | select RAM |
| 21 | select SPL_RAM |
| 22 | select K3_DDRSS |
| 23 | select BINMAN |
| 24 | imply SYS_K3_SPL_ATF |
| 25 | |
| 26 | endchoice |
| 27 | |
| 28 | if TARGET_VERDIN_AM62_A53 |
| 29 | |
| 30 | config SYS_BOARD |
| 31 | default "verdin-am62" |
| 32 | |
| 33 | config SYS_CONFIG_NAME |
| 34 | default "verdin-am62" |
| 35 | |
| 36 | config SYS_VENDOR |
| 37 | default "toradex" |
| 38 | |
| 39 | config TDX_CFG_BLOCK |
| 40 | default y |
| 41 | |
| 42 | config TDX_CFG_BLOCK_2ND_ETHADDR |
| 43 | default y |
| 44 | |
| 45 | config TDX_CFG_BLOCK_DEV |
| 46 | default "0" |
| 47 | |
| 48 | config TDX_CFG_BLOCK_EXTRA |
| 49 | default y |
| 50 | |
| 51 | # Toradex config block in eMMC, at the end of 1st "boot sector" |
| 52 | config TDX_CFG_BLOCK_OFFSET |
| 53 | default "-512" |
| 54 | |
| 55 | config TDX_CFG_BLOCK_PART |
| 56 | default "1" |
| 57 | |
| 58 | config TDX_HAVE_EEPROM_EXTRA |
| 59 | default y |
| 60 | |
| 61 | config TDX_HAVE_MMC |
| 62 | default y |
| 63 | |
| 64 | source "board/toradex/common/Kconfig" |
| 65 | |
| 66 | endif |
| 67 | |
| 68 | if TARGET_VERDIN_AM62_R5 |
| 69 | |
| 70 | config SPL_LDSCRIPT |
| 71 | default "arch/arm/mach-omap2/u-boot-spl.lds" |
| 72 | |
| 73 | config SYS_BOARD |
| 74 | default "verdin-am62" |
| 75 | |
| 76 | config SYS_CONFIG_NAME |
| 77 | default "verdin-am62" |
| 78 | |
| 79 | config SYS_VENDOR |
| 80 | default "toradex" |
| 81 | |
| 82 | endif |