blob: af455366ed934adfd2d60a4979c6ead622a78933 [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
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)
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. 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)
33ALL-y += u-boot-spl_HS_SPI_X-LOADER
34ALL-y += u-boot-spl_HS_ISSW
35endif
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)
Andrew F. Davis8a739ae2016-08-30 14:06:23 -050050ALL-y += u-boot-spl_HS_SPI_X-LOADER
Andrew F. Davisa86d6ad2016-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. Davis1665f232017-01-23 11:34:37 -060054endif
Daniel Allrede8a9b672016-05-19 19:10:46 -050055else
Tom Rini28eec372016-11-07 21:34:54 -050056ALL-y += MLO
57ifeq ($(CONFIG_AM33XX),y)
Andrew F. Davis8a739ae2016-08-30 14:06:23 -050058ALL-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)
63ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER
Andreas Dannenberg28c6b022016-07-20 13:55:58 -050064ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img
Daniel Allrede8a9b672016-05-19 19:10:46 -050065endif
Tom Rini28eec372016-11-07 21:34:54 -050066ALL-y += u-boot.img
Chandan Nath77a73fe2012-01-09 20:38:59 +000067endif