Chandan Nath | 8a8f084 | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ |
| 3 | # |
Tom Rini | 983e370 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 5 | |
Tom Rini | 983e370 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 6 | include $(srctree)/arch/arm/mach-omap2/config_secure.mk |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 7 | |
Chandan Nath | 8a8f084 | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 8 | ifdef CONFIG_SPL_BUILD |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 9 | ifeq ($(CONFIG_TI_SECURE_DEVICE),y) # Refer to README.ti-secure for more info |
| 10 | # On DRA7xx/AM57xx: |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 11 | # |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 12 | # For booting spl from SD/MMC/eMMC use |
| 13 | # u-boot-spl_HS_MLO |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 14 | # |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 15 | # For booting spl over UART or USB use |
| 16 | # u-boot-spl_HS_ULO |
| 17 | # |
| 18 | # For booting spl from QSPI or NOR use |
| 19 | # u-boot-spl_HS_X-LOADER |
| 20 | ifeq ($(CONFIG_OMAP54XX),y) |
Simon Glass | e6385c7 | 2020-07-19 13:56:01 -0600 | [diff] [blame] | 21 | INPUTS-y += u-boot-spl_HS_MLO |
| 22 | INPUTS-y += u-boot-spl_HS_ULO |
| 23 | INPUTS-y += u-boot-spl_HS_X-LOADER |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 24 | endif |
Andrew F. Davis | 9eda251 | 2016-08-30 14:06:21 -0500 | [diff] [blame] | 25 | # On AM43XX: |
| 26 | # |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 27 | # For booting spl from SPI flash use |
| 28 | # u-boot-spl_HS_SPI_X-LOADER |
| 29 | # |
Andrew F. Davis | 9eda251 | 2016-08-30 14:06:21 -0500 | [diff] [blame] | 30 | # For booting spl from all other media use |
| 31 | # u-boot-spl_HS_ISSW |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 32 | ifeq ($(CONFIG_AM43XX),y) |
Simon Glass | e6385c7 | 2020-07-19 13:56:01 -0600 | [diff] [blame] | 33 | INPUTS-y += u-boot-spl_HS_SPI_X-LOADER |
| 34 | INPUTS-y += u-boot-spl_HS_ISSW |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 35 | endif |
Andrew F. Davis | 9eda251 | 2016-08-30 14:06:21 -0500 | [diff] [blame] | 36 | # On AM33XX: |
| 37 | # |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 38 | # For booting spl from SPI flash use |
| 39 | # u-boot-spl_HS_SPI_X-LOADER |
| 40 | # |
| 41 | # For booting spl from NAND flash or raw SD/MMC/eMMC use |
Andrew F. Davis | 9eda251 | 2016-08-30 14:06:21 -0500 | [diff] [blame] | 42 | # u-boot-spl_HS_X-LOADER |
| 43 | # |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 44 | # For booting spl from a filesystem on SD/MMC/eMMC use |
Andrew F. Davis | 9eda251 | 2016-08-30 14:06:21 -0500 | [diff] [blame] | 45 | # u-boot-spl_HS_MLO |
| 46 | # |
| 47 | # For booting spl over UART, USB, or Ethernet use |
| 48 | # u-boot-spl_HS_2ND |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 49 | ifeq ($(CONFIG_AM33XX),y) |
Simon Glass | e6385c7 | 2020-07-19 13:56:01 -0600 | [diff] [blame] | 50 | INPUTS-y += u-boot-spl_HS_SPI_X-LOADER |
| 51 | INPUTS-y += u-boot-spl_HS_X-LOADER |
| 52 | INPUTS-y += u-boot-spl_HS_MLO |
| 53 | INPUTS-y += u-boot-spl_HS_2ND |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 54 | endif |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 55 | else |
Simon Glass | e6385c7 | 2020-07-19 13:56:01 -0600 | [diff] [blame] | 56 | INPUTS-y += MLO |
Tom Rini | 983e370 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 57 | ifeq ($(CONFIG_AM33XX),y) |
Simon Glass | e6385c7 | 2020-07-19 13:56:01 -0600 | [diff] [blame] | 58 | INPUTS-y += MLO.byteswap |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 59 | endif |
Tom Rini | 983e370 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 60 | endif |
Chandan Nath | 8a8f084 | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 61 | else |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 62 | ifeq ($(CONFIG_TI_SECURE_DEVICE),y) |
Simon Glass | e6385c7 | 2020-07-19 13:56:01 -0600 | [diff] [blame] | 63 | INPUTS-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER |
| 64 | INPUTS-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 65 | endif |
Simon Glass | e6385c7 | 2020-07-19 13:56:01 -0600 | [diff] [blame] | 66 | INPUTS-y += u-boot.img |
Chandan Nath | 8a8f084 | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 67 | endif |