blob: 5368f6b2d72eff22631cfb0418f391bd19b075e8 [file] [log] [blame]
Chandan Nath77a73fe2012-01-09 20:38:59 +00001#
2# Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
3#
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
Chandan Nath77a73fe2012-01-09 20:38:59 +00008ifdef CONFIG_SPL_BUILD
Tom Rini28eec372016-11-07 21:34:54 -05009ifeq ($(CONFIG_AM33XX)$(CONFIG_TI_SECURE_DEVICE),yy)
Daniel Allrede8a9b672016-05-19 19:10:46 -050010#
11# For booting from SPI use
12# u-boot-spl_HS_SPI_X-LOADER to program flash
13#
Andrew F. Davisa86d6ad2016-08-30 14:06:21 -050014# On AM43XX:
15#
16# For booting spl from all other media use
17# u-boot-spl_HS_ISSW
18#
19# On AM33XX:
20#
21# For booting spl from NAND flash use
22# u-boot-spl_HS_X-LOADER
23#
24# For booting spl from SD/MMC/eMMC media use
25# u-boot-spl_HS_MLO
26#
27# For booting spl over UART, USB, or Ethernet use
28# u-boot-spl_HS_2ND
Daniel Allrede8a9b672016-05-19 19:10:46 -050029#
30# Refer to README.ti-secure for more info
31#
Tom Rini28eec372016-11-07 21:34:54 -050032ALL-y += u-boot-spl_HS_ISSW
Andrew F. Davis8a739ae2016-08-30 14:06:23 -050033ALL-y += u-boot-spl_HS_SPI_X-LOADER
Andrew F. Davisa86d6ad2016-08-30 14:06:21 -050034ALL-y += u-boot-spl_HS_X-LOADER
35ALL-y += u-boot-spl_HS_MLO
36ALL-y += u-boot-spl_HS_2ND
Daniel Allrede8a9b672016-05-19 19:10:46 -050037else
Tom Rini28eec372016-11-07 21:34:54 -050038ifeq ($(CONFIG_OMAP54XX)$(CONFIG_TI_SECURE_DEVICE),yy)
39ALL-y += u-boot-spl_HS_MLO u-boot-spl_HS_X-LOADER
40else
41ALL-y += MLO
42ifeq ($(CONFIG_AM33XX),y)
Andrew F. Davis8a739ae2016-08-30 14:06:23 -050043ALL-y += MLO.byteswap
Daniel Allrede8a9b672016-05-19 19:10:46 -050044endif
Tom Rini28eec372016-11-07 21:34:54 -050045endif
46endif
Chandan Nath77a73fe2012-01-09 20:38:59 +000047else
Daniel Allrede8a9b672016-05-19 19:10:46 -050048ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
49ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER
Andreas Dannenberg28c6b022016-07-20 13:55:58 -050050ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img
Daniel Allrede8a9b672016-05-19 19:10:46 -050051endif
Tom Rini28eec372016-11-07 21:34:54 -050052ALL-y += u-boot.img
Chandan Nath77a73fe2012-01-09 20:38:59 +000053endif