xref: /openbmc/u-boot/arch/arm/mach-omap2/config.mk (revision c511147c)
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)
21ALL-y += u-boot-spl_HS_MLO
22ALL-y += u-boot-spl_HS_ULO
23ALL-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)
33ALL-y += u-boot-spl_HS_SPI_X-LOADER
34ALL-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)
50ALL-y += u-boot-spl_HS_SPI_X-LOADER
51ALL-y += u-boot-spl_HS_X-LOADER
52ALL-y += u-boot-spl_HS_MLO
53ALL-y += u-boot-spl_HS_2ND
54endif
55else
56ALL-y += MLO
57ifeq ($(CONFIG_AM33XX),y)
58ALL-y += MLO.byteswap
59endif
60endif
61else
62ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
63ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER
64ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img
65endif
66ALL-y += u-boot.img
67endif
68