blob: 02b26733ee635d71300d942f78c257cc695cce2f [file] [log] [blame]
Chandan Nath77a73fe2012-01-09 20:38:59 +00001#
Nishanth Menoneaa39c62023-11-01 15:56:03 -05002# Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
Chandan Nath77a73fe2012-01-09 20:38:59 +00003#
Tom Rini28eec372016-11-07 21:34:54 -05004# SPDX-License-Identifier: GPL-2.0+
Daniel Allrede8a9b672016-05-19 19:10:46 -05005
Tom Rini28eec372016-11-07 21:34:54 -05006include $(srctree)/arch/arm/mach-omap2/config_secure.mk
Daniel Allrede8a9b672016-05-19 19:10:46 -05007
Simon Glass85ed77d2024-09-29 19:49:46 -06008ifdef CONFIG_XPL_BUILD
Andrew F. Davis1665f232017-01-23 11:34:37 -06009ifeq ($(CONFIG_TI_SECURE_DEVICE),y) # Refer to README.ti-secure for more info
10# On DRA7xx/AM57xx:
Daniel Allrede8a9b672016-05-19 19:10:46 -050011#
Andrew F. Davis1665f232017-01-23 11:34:37 -060012# For booting spl from SD/MMC/eMMC use
13# u-boot-spl_HS_MLO
14#
15# For booting spl over UART or USB use
16# u-boot-spl_HS_ULO
Daniel Allrede8a9b672016-05-19 19:10:46 -050017#
Andrew F. Davis1665f232017-01-23 11:34:37 -060018# For booting spl from QSPI or NOR use
19# u-boot-spl_HS_X-LOADER
20ifeq ($(CONFIG_OMAP54XX),y)
Simon Glassc46090d2020-07-19 13:56:01 -060021INPUTS-y += u-boot-spl_HS_MLO
22INPUTS-y += u-boot-spl_HS_ULO
23INPUTS-y += u-boot-spl_HS_X-LOADER
Andrew F. Davis1665f232017-01-23 11:34:37 -060024endif
Andrew F. Davisa86d6ad2016-08-30 14:06:21 -050025# On AM43XX:
26#
Andrew F. Davis1665f232017-01-23 11:34:37 -060027# For booting spl from SPI flash use
28# u-boot-spl_HS_SPI_X-LOADER
29#
Andrew F. Davisa86d6ad2016-08-30 14:06:21 -050030# For booting spl from all other media use
31# u-boot-spl_HS_ISSW
Andrew F. Davis1665f232017-01-23 11:34:37 -060032ifeq ($(CONFIG_AM43XX),y)
Simon Glassc46090d2020-07-19 13:56:01 -060033INPUTS-y += u-boot-spl_HS_SPI_X-LOADER
34INPUTS-y += u-boot-spl_HS_ISSW
Andrew F. Davis1665f232017-01-23 11:34:37 -060035endif
Andrew F. Davisa86d6ad2016-08-30 14:06:21 -050036# On AM33XX:
37#
Andrew F. Davis1665f232017-01-23 11:34:37 -060038# 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. Davisa86d6ad2016-08-30 14:06:21 -050042# u-boot-spl_HS_X-LOADER
43#
Andrew F. Davis1665f232017-01-23 11:34:37 -060044# For booting spl from a filesystem on SD/MMC/eMMC use
Andrew F. Davisa86d6ad2016-08-30 14:06:21 -050045# u-boot-spl_HS_MLO
46#
47# For booting spl over UART, USB, or Ethernet use
48# u-boot-spl_HS_2ND
Andrew F. Davis1665f232017-01-23 11:34:37 -060049ifeq ($(CONFIG_AM33XX),y)
Simon Glassc46090d2020-07-19 13:56:01 -060050INPUTS-y += u-boot-spl_HS_SPI_X-LOADER
51INPUTS-y += u-boot-spl_HS_X-LOADER
52INPUTS-y += u-boot-spl_HS_MLO
53INPUTS-y += u-boot-spl_HS_2ND
Andrew F. Davis1665f232017-01-23 11:34:37 -060054endif
Daniel Allrede8a9b672016-05-19 19:10:46 -050055else
Simon Glassc46090d2020-07-19 13:56:01 -060056INPUTS-y += MLO
Tom Rini28eec372016-11-07 21:34:54 -050057ifeq ($(CONFIG_AM33XX),y)
Simon Glassc46090d2020-07-19 13:56:01 -060058INPUTS-y += MLO.byteswap
Daniel Allrede8a9b672016-05-19 19:10:46 -050059endif
Tom Rini28eec372016-11-07 21:34:54 -050060endif
Chandan Nath77a73fe2012-01-09 20:38:59 +000061else
Daniel Allrede8a9b672016-05-19 19:10:46 -050062ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
Simon Glassc46090d2020-07-19 13:56:01 -060063INPUTS-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER
64INPUTS-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img
Daniel Allrede8a9b672016-05-19 19:10:46 -050065endif
Simon Glassc46090d2020-07-19 13:56:01 -060066INPUTS-y += u-boot.img
Chandan Nath77a73fe2012-01-09 20:38:59 +000067endif