Lokesh Vutla | 9bdec00 | 2018-08-27 15:57:08 +0530 | [diff] [blame] | 1 | if ARCH_K3 |
| 2 | |
| 3 | choice |
| 4 | prompt "Texas Instruments' K3 based SoC select" |
| 5 | optional |
| 6 | |
Lokesh Vutla | 3288644 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 7 | config SOC_K3_AM6 |
| 8 | bool "TI's K3 based AM6 SoC Family Support" |
| 9 | |
Lokesh Vutla | a228532 | 2019-06-13 10:29:42 +0530 | [diff] [blame] | 10 | config SOC_K3_J721E |
| 11 | bool "TI's K3 based J721E SoC Family Support" |
| 12 | |
Lokesh Vutla | 9bdec00 | 2018-08-27 15:57:08 +0530 | [diff] [blame] | 13 | endchoice |
| 14 | |
| 15 | config SYS_SOC |
| 16 | default "k3" |
| 17 | |
Lokesh Vutla | 3288644 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 18 | config SYS_K3_NON_SECURE_MSRAM_SIZE |
| 19 | hex |
Lokesh Vutla | a228532 | 2019-06-13 10:29:42 +0530 | [diff] [blame] | 20 | default 0x80000 if SOC_K3_AM6 |
| 21 | default 0x100000 if SOC_K3_J721E |
Lokesh Vutla | 3288644 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 22 | help |
| 23 | Describes the total size of the MCU MSRAM. This doesn't |
| 24 | specify the total size of SPL as ROM can use some part |
| 25 | of this RAM. Once ROM gives control to SPL then this |
| 26 | complete size can be usable. |
| 27 | |
| 28 | config SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE |
| 29 | hex |
Lokesh Vutla | a228532 | 2019-06-13 10:29:42 +0530 | [diff] [blame] | 30 | default 0x58000 if SOC_K3_AM6 |
| 31 | default 0xc0000 if SOC_K3_J721E |
Lokesh Vutla | 3288644 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 32 | help |
| 33 | Describes the maximum size of the image that ROM can download |
| 34 | from any boot media. |
| 35 | |
| 36 | config SYS_K3_MCU_SCRATCHPAD_BASE |
| 37 | hex |
| 38 | default 0x40280000 if SOC_K3_AM6 |
Lokesh Vutla | a228532 | 2019-06-13 10:29:42 +0530 | [diff] [blame] | 39 | default 0x40280000 if SOC_K3_J721E |
Lokesh Vutla | 3288644 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 40 | help |
| 41 | Describes the base address of MCU Scratchpad RAM. |
| 42 | |
| 43 | config SYS_K3_MCU_SCRATCHPAD_SIZE |
| 44 | hex |
| 45 | default 0x200 if SOC_K3_AM6 |
Lokesh Vutla | a228532 | 2019-06-13 10:29:42 +0530 | [diff] [blame] | 46 | default 0x200 if SOC_K3_J721E |
Lokesh Vutla | 3288644 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 47 | help |
| 48 | Describes the size of MCU Scratchpad RAM. |
| 49 | |
Lokesh Vutla | c7bfb85 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 50 | config SYS_K3_BOOT_PARAM_TABLE_INDEX |
| 51 | hex |
| 52 | default 0x41c7fbfc if SOC_K3_AM6 |
Lokesh Vutla | a228532 | 2019-06-13 10:29:42 +0530 | [diff] [blame] | 53 | default 0x41cffc00 if SOC_K3_J721E |
Lokesh Vutla | c7bfb85 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 54 | help |
| 55 | Address at which ROM stores the value which determines if SPL |
| 56 | is booted up by primary boot media or secondary boot media. |
| 57 | |
Lokesh Vutla | 6b6a394 | 2018-11-02 19:51:04 +0530 | [diff] [blame] | 58 | config SYS_K3_KEY |
| 59 | string "Key used to generate x509 certificate" |
| 60 | help |
| 61 | This option enables to provide a custom key that can be used for |
| 62 | generating x509 certificate for spl binary. If not needed leave |
| 63 | it blank so that a random key is generated and used. |
| 64 | |
| 65 | config SYS_K3_BOOT_CORE_ID |
| 66 | int |
| 67 | default 16 |
| 68 | |
Andreas Dannenberg | 04e5ea8 | 2019-06-04 17:55:47 -0500 | [diff] [blame] | 69 | config K3_LOAD_SYSFW |
| 70 | bool |
| 71 | depends on SPL |
| 72 | |
| 73 | config K3_SYSFW_IMAGE_NAME |
| 74 | string "File name of SYSFW firmware and configuration blob" |
| 75 | depends on K3_LOAD_SYSFW |
| 76 | default "sysfw.itb" |
| 77 | help |
| 78 | Filename of the combined System Firmware and configuration image tree |
| 79 | blob to be loaded when booting from a filesystem. |
| 80 | |
| 81 | config K3_SYSFW_IMAGE_MMCSD_RAW_MODE_SECT |
| 82 | hex "MMC sector to load SYSFW firmware and configuration blob from" |
| 83 | depends on K3_LOAD_SYSFW && SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR |
| 84 | default 0x3600 |
| 85 | help |
| 86 | Address on the MMC to load the combined System Firmware and |
| 87 | configuration image tree blob from, when the MMC is being used |
| 88 | in raw mode. Units: MMC sectors (1 sector = 512 bytes). |
| 89 | |
| 90 | config K3_SYSFW_IMAGE_MMCSD_RAW_MODE_PART |
| 91 | hex "MMC partition to load SYSFW firmware and configuration blob from" |
| 92 | depends on K3_LOAD_SYSFW && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION |
| 93 | default 2 |
| 94 | help |
| 95 | Partition on the MMC to the combined System Firmware and configuration |
| 96 | image tree blob from, when the MMC is being used in raw mode. |
| 97 | |
| 98 | config K3_SYSFW_IMAGE_SIZE_MAX |
| 99 | int "Amount of memory dynamically allocated for loading SYSFW blob" |
| 100 | depends on K3_LOAD_SYSFW |
| 101 | default 269000 |
| 102 | help |
| 103 | Amount of memory (in bytes) reserved through dynamic allocation at |
| 104 | runtime for loading the combined System Firmware and configuration image |
| 105 | tree blob. Keep it as tight as possible, as this directly affects the |
| 106 | overall SPL memory footprint. |
| 107 | |
Lokesh Vutla | 5d83fd2 | 2018-11-02 19:51:05 +0530 | [diff] [blame] | 108 | config SYS_K3_SPL_ATF |
| 109 | bool "Start Cortex-A from SPL" |
| 110 | depends on SPL && CPU_V7R |
| 111 | help |
| 112 | Enabling this will try to start Cortex-A (typically with ATF) |
| 113 | after SPL from R5. |
| 114 | |
Lokesh Vutla | 029f921 | 2018-08-27 15:59:06 +0530 | [diff] [blame] | 115 | source "board/ti/am65x/Kconfig" |
Lokesh Vutla | 1a9dd21 | 2019-06-13 10:29:49 +0530 | [diff] [blame] | 116 | source "board/ti/j721e/Kconfig" |
Lokesh Vutla | 9bdec00 | 2018-08-27 15:57:08 +0530 | [diff] [blame] | 117 | endif |