Merge git://git.denx.de/u-boot-mpc85xx
[oweals/u-boot.git] / arch / arm / mach-omap2 / config.mk
1 #
2 # Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
3 #
4 # SPDX-License-Identifier:      GPL-2.0+
5
6 include  $(srctree)/arch/arm/mach-omap2/config_secure.mk
7
8 ifdef CONFIG_SPL_BUILD
9 ifeq ($(CONFIG_AM33XX)$(CONFIG_TI_SECURE_DEVICE),yy)
10 #
11 # For booting from SPI use
12 # u-boot-spl_HS_SPI_X-LOADER to program flash
13 #
14 # 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
29 #
30 # Refer to README.ti-secure for more info
31 #
32 ALL-y += u-boot-spl_HS_ISSW
33 ALL-y += u-boot-spl_HS_SPI_X-LOADER
34 ALL-y += u-boot-spl_HS_X-LOADER
35 ALL-y += u-boot-spl_HS_MLO
36 ALL-y += u-boot-spl_HS_2ND
37 else
38 ifeq ($(CONFIG_OMAP54XX)$(CONFIG_TI_SECURE_DEVICE),yy)
39 ALL-y += u-boot-spl_HS_MLO u-boot-spl_HS_X-LOADER
40 else
41 ALL-y += MLO
42 ifeq ($(CONFIG_AM33XX),y)
43 ALL-y += MLO.byteswap
44 endif
45 endif
46 endif
47 else
48 ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
49 ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER
50 ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img
51 endif
52 ALL-y += u-boot.img
53 endif