1#
2# Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
3#
4# SPDX-License-Identifier:      GPL-2.0+
5
6include  $(srctree)/arch/arm/mach-omap2/config_secure.mk
7
8ifdef CONFIG_SPL_BUILD
9ifeq ($(CONFIG_TI_SECURE_DEVICE),y) # Refer to README.ti-secure for more info
10# On DRA7xx/AM57xx:
11#
12# 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
17#
18# For booting spl from QSPI or NOR use
19# u-boot-spl_HS_X-LOADER
20ifeq ($(CONFIG_OMAP54XX),y)
21INPUTS-y += u-boot-spl_HS_MLO
22INPUTS-y += u-boot-spl_HS_ULO
23INPUTS-y += u-boot-spl_HS_X-LOADER
24endif
25# On AM43XX:
26#
27# For booting spl from SPI flash use
28# u-boot-spl_HS_SPI_X-LOADER
29#
30# For booting spl from all other media use
31# u-boot-spl_HS_ISSW
32ifeq ($(CONFIG_AM43XX),y)
33INPUTS-y += u-boot-spl_HS_SPI_X-LOADER
34INPUTS-y += u-boot-spl_HS_ISSW
35endif
36# On AM33XX:
37#
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
42# u-boot-spl_HS_X-LOADER
43#
44# For booting spl from a filesystem on SD/MMC/eMMC use
45# u-boot-spl_HS_MLO
46#
47# For booting spl over UART, USB, or Ethernet use
48# u-boot-spl_HS_2ND
49ifeq ($(CONFIG_AM33XX),y)
50INPUTS-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
54endif
55else
56INPUTS-y += MLO
57ifeq ($(CONFIG_AM33XX),y)
58INPUTS-y += MLO.byteswap
59endif
60endif
61else
62ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
63INPUTS-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER
64INPUTS-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img
65endif
66INPUTS-y += u-boot.img
67endif
68