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