blob: af455366ed934adfd2d60a4979c6ead622a78933 [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)
21ALL-y += u-boot-spl_HS_MLO
22ALL-y += u-boot-spl_HS_ULO
23ALL-y += u-boot-spl_HS_X-LOADER
24endif
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)
33ALL-y += u-boot-spl_HS_SPI_X-LOADER
34ALL-y += u-boot-spl_HS_ISSW
35endif
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)
Andrew F. Davis7e5a0bf2016-08-30 14:06:23 -050050ALL-y += u-boot-spl_HS_SPI_X-LOADER
Andrew F. Davis9eda2512016-08-30 14:06:21 -050051ALL-y += u-boot-spl_HS_X-LOADER
52ALL-y += u-boot-spl_HS_MLO
53ALL-y += u-boot-spl_HS_2ND
Andrew F. Davisc8a25ac2017-01-23 11:34:37 -060054endif
Daniel Allred883dfd12016-05-19 19:10:46 -050055else
Tom Rini983e3702016-11-07 21:34:54 -050056ALL-y += MLO
57ifeq ($(CONFIG_AM33XX),y)
Andrew F. Davis7e5a0bf2016-08-30 14:06:23 -050058ALL-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)
63ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER
Andreas Dannenberg8b76d23e2016-07-20 13:55:58 -050064ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img
Daniel Allred883dfd12016-05-19 19:10:46 -050065endif
Tom Rini983e3702016-11-07 21:34:54 -050066ALL-y += u-boot.img
Chandan Nath8a8f0842012-01-09 20:38:59 +000067endif