blob: 4f0d2598fa8b58d788f34d9315ea42b8c30b2f15 [file] [log] [blame]
Chandan Nath8a8f0842012-01-09 20:38:59 +00001#
2# Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
3#
Tom Rini983e3702016-11-07 21:34:54 -05004# SPDX-License-Identifier: GPL-2.0+
Daniel Allred883dfd12016-05-19 19:10:46 -05005
Tom Rini983e3702016-11-07 21:34:54 -05006include $(srctree)/arch/arm/mach-omap2/config_secure.mk
Daniel Allred883dfd12016-05-19 19:10:46 -05007
Chandan Nath8a8f0842012-01-09 20:38:59 +00008ifdef CONFIG_SPL_BUILD
Andrew F. Davisc8a25ac2017-01-23 11:34:37 -06009ifeq ($(CONFIG_TI_SECURE_DEVICE),y) # Refer to README.ti-secure for more info
10# On DRA7xx/AM57xx:
Daniel Allred883dfd12016-05-19 19:10:46 -050011#
Andrew F. Davisc8a25ac2017-01-23 11:34:37 -060012# For booting spl from SD/MMC/eMMC use
13# u-boot-spl_HS_MLO
Daniel Allred883dfd12016-05-19 19:10:46 -050014#
Andrew F. Davisc8a25ac2017-01-23 11:34:37 -060015# 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
20ifeq ($(CONFIG_OMAP54XX),y)
Simon Glasse6385c72020-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. Davisc8a25ac2017-01-23 11:34:37 -060024endif
Andrew F. Davis9eda2512016-08-30 14:06:21 -050025# On AM43XX:
26#
Andrew F. Davisc8a25ac2017-01-23 11:34:37 -060027# For booting spl from SPI flash use
28# u-boot-spl_HS_SPI_X-LOADER
29#
Andrew F. Davis9eda2512016-08-30 14:06:21 -050030# For booting spl from all other media use
31# u-boot-spl_HS_ISSW
Andrew F. Davisc8a25ac2017-01-23 11:34:37 -060032ifeq ($(CONFIG_AM43XX),y)
Simon Glasse6385c72020-07-19 13:56:01 -060033INPUTS-y += u-boot-spl_HS_SPI_X-LOADER
34INPUTS-y += u-boot-spl_HS_ISSW
Andrew F. Davisc8a25ac2017-01-23 11:34:37 -060035endif
Andrew F. Davis9eda2512016-08-30 14:06:21 -050036# On AM33XX:
37#
Andrew F. Davisc8a25ac2017-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. Davis9eda2512016-08-30 14:06:21 -050042# u-boot-spl_HS_X-LOADER
43#
Andrew F. Davisc8a25ac2017-01-23 11:34:37 -060044# For booting spl from a filesystem on SD/MMC/eMMC use
Andrew F. Davis9eda2512016-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. Davisc8a25ac2017-01-23 11:34:37 -060049ifeq ($(CONFIG_AM33XX),y)
Simon Glasse6385c72020-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. Davisc8a25ac2017-01-23 11:34:37 -060054endif
Daniel Allred883dfd12016-05-19 19:10:46 -050055else
Simon Glasse6385c72020-07-19 13:56:01 -060056INPUTS-y += MLO
Tom Rini983e3702016-11-07 21:34:54 -050057ifeq ($(CONFIG_AM33XX),y)
Simon Glasse6385c72020-07-19 13:56:01 -060058INPUTS-y += MLO.byteswap
Daniel Allred883dfd12016-05-19 19:10:46 -050059endif
Tom Rini983e3702016-11-07 21:34:54 -050060endif
Chandan Nath8a8f0842012-01-09 20:38:59 +000061else
Daniel Allred883dfd12016-05-19 19:10:46 -050062ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
Simon Glasse6385c72020-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 Allred883dfd12016-05-19 19:10:46 -050065endif
Simon Glasse6385c72020-07-19 13:56:01 -060066INPUTS-y += u-boot.img
Chandan Nath8a8f0842012-01-09 20:38:59 +000067endif