blob: 377c6aa077dc72ac9cfdb3760337d005b76ae057 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Kim Phillips53b34982007-08-21 17:00:17 -05002#
3# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Kim Phillips53b34982007-08-21 17:00:17 -05005
Prabhakar Kushwahaab4ab012013-04-16 13:27:59 +05306MINIMAL=
7
8ifdef CONFIG_SPL_BUILD
Tom Rini6b15c162022-05-13 12:26:35 -04009ifndef CONFIG_TPL_BUILD
Prabhakar Kushwahaab4ab012013-04-16 13:27:59 +053010ifdef CONFIG_SPL_INIT_MINIMAL
11MINIMAL=y
12endif
13endif
Tom Rini6b15c162022-05-13 12:26:35 -040014endif
Prabhakar Kushwahaab4ab012013-04-16 13:27:59 +053015
Masahiro Yamada350735c2014-02-04 17:24:25 +090016ifdef MINIMAL
17# necessary to create built-in.o
18obj- := __dummy__.o
19else
Stephen Carlsone36d49c2021-06-22 16:35:20 -070020# include i2c_common.o once if either VID or FSL_USE_PCA9547_MUX
21I2C_COMMON=
22ifdef CONFIG_VID
23I2C_COMMON=y
24endif
25ifdef CONFIG_FSL_USE_PCA9547_MUX
26I2C_COMMON=y
27endif
28
Masahiro Yamadac54b77e2013-10-21 11:53:38 +090029obj-$(CONFIG_FSL_CADMUS) += cadmus.o
30obj-$(CONFIG_FSL_VIA) += cds_via.o
31obj-$(CONFIG_FMAN_ENET) += fman.o
32obj-$(CONFIG_FSL_PIXIS) += pixis.o
Matthew McClintockcd99caa2013-02-18 10:02:19 +000033ifndef CONFIG_SPL_BUILD
Masahiro Yamadac54b77e2013-10-21 11:53:38 +090034obj-$(CONFIG_FSL_NGPIXIS) += ngpixis.o
Matthew McClintockcd99caa2013-02-18 10:02:19 +000035endif
Stephen Carlsone36d49c2021-06-22 16:35:20 -070036obj-$(I2C_COMMON) += i2c_common.o
37obj-$(CONFIG_FSL_USE_PCA9547_MUX) += i2c_mux.o
Tom Rini89cdcab2021-12-12 22:12:31 -050038obj-$(CONFIG_$(SPL_)VID) += vid.o
Masahiro Yamadac54b77e2013-10-21 11:53:38 +090039obj-$(CONFIG_FSL_QIXIS) += qixis.o
40obj-$(CONFIG_PQ_MDS_PIB) += pq-mds-pib.o
Matthew McClintockcd99caa2013-02-18 10:02:19 +000041ifndef CONFIG_SPL_BUILD
Masahiro Yamadac54b77e2013-10-21 11:53:38 +090042obj-$(CONFIG_ID_EEPROM) += sys_eeprom.o
Matthew McClintockcd99caa2013-02-18 10:02:19 +000043endif
Shaohui Xiec6083892011-05-12 18:46:40 +080044ifndef CONFIG_RAMBOOT_PBL
Masahiro Yamadac54b77e2013-10-21 11:53:38 +090045obj-$(CONFIG_FSL_FIXED_MMC_LOCATION) += sdhc_boot.o
Shaohui Xiec6083892011-05-12 18:46:40 +080046endif
Jon Loeliger6bcdb402008-03-19 15:02:07 -050047
Tang Yuantian064f1262014-11-21 11:17:15 +080048ifdef CONFIG_ARM
49obj-$(CONFIG_DEEP_SLEEP) += arm_sleep.o
50else
51obj-$(CONFIG_DEEP_SLEEP) += mpc85xx_sleep.o
52endif
53
York Sun098f8a72016-11-16 11:43:49 -080054obj-$(CONFIG_TARGET_MPC8548CDS) += cds_pci_ft.o
Jon Loeliger6bcdb402008-03-19 15:02:07 -050055
York Sunc731cc22016-11-16 11:09:07 -080056obj-$(CONFIG_TARGET_MPC8536DS) += ics307_clk.o
York Suncf2b3b62016-11-16 15:25:52 -080057obj-$(CONFIG_TARGET_P1022DS) += ics307_clk.o
Masahiro Yamadac54b77e2013-10-21 11:53:38 +090058obj-$(CONFIG_P2020DS) += ics307_clk.o
York Sun80d89912016-11-18 11:22:17 -080059obj-$(CONFIG_TARGET_P3041DS) += ics307_clk.o
York Sund1bb6022016-11-18 11:26:09 -080060obj-$(CONFIG_TARGET_P4080DS) += ics307_clk.o
York Suncc85e252016-11-18 11:40:51 -080061obj-$(CONFIG_TARGET_P5040DS) += ics307_clk.o
Masahiro Yamadac54b77e2013-10-21 11:53:38 +090062obj-$(CONFIG_VSC_CROSSBAR) += vsc3316_3308.o
Shaveta Leekhaafe5b062014-04-11 14:12:39 +053063obj-$(CONFIG_ZM7300) += zm7300.o
Ye.Lia9454db2014-11-06 16:28:59 +080064obj-$(CONFIG_POWER_PFUZE100) += pfuze.o
Peng Fana7e8fcb2018-01-02 09:32:06 +080065obj-$(CONFIG_DM_PMIC_PFUZE100) += pfuze.o
Hou Zhiqiangc4860512016-12-09 16:08:58 +080066obj-$(CONFIG_POWER_MC34VR500) += mc34vr500.o
Peng Fanb72606c2022-07-26 16:41:10 +080067ifneq (,$(filter $(SOC), imx8ulp imx9))
Peng Fan4de11282022-04-06 14:30:25 +080068obj-y += mmc.o
69endif
Kim Phillips53b34982007-08-21 17:00:17 -050070
Xiubo Li03d40aa2014-11-21 17:40:59 +080071obj-$(CONFIG_LS102XA_STREAM_ID) += ls102xa_stream_id.o
72
Meenakshi Aggarwalbbd33182018-11-30 22:32:11 +053073obj-$(CONFIG_EMC2305) += emc2305.o
74
Kumar Gala2bf3c2a2011-08-30 17:29:23 -050075# deal with common files for P-series corenet based devices
York Sun8299ebf2016-11-18 11:17:22 -080076obj-$(CONFIG_TARGET_P2041RDB) += p_corenet/
York Sun80d89912016-11-18 11:22:17 -080077obj-$(CONFIG_TARGET_P3041DS) += p_corenet/
York Sund1bb6022016-11-18 11:26:09 -080078obj-$(CONFIG_TARGET_P4080DS) += p_corenet/
York Sun14bd0742016-11-18 11:32:46 -080079obj-$(CONFIG_TARGET_P5020DS) += p_corenet/
York Suncc85e252016-11-18 11:40:51 -080080obj-$(CONFIG_TARGET_P5040DS) += p_corenet/
Xiubo Li54de0652014-11-21 17:40:58 +080081
Mingkai Hu5b0df8a2015-10-26 19:47:41 +080082obj-$(CONFIG_LAYERSCAPE_NS_ACCESS) += ns_access.o
gaurav rana8b5ea652015-02-27 09:46:17 +053083
Udit Agarwal22ec2382019-11-07 16:11:32 +000084ifdef CONFIG_NXP_ESBC
gaurav rana8707d472015-04-06 13:05:33 +053085obj-$(CONFIG_CMD_ESBC_VALIDATE) += fsl_validate.o cmd_esbc_validate.o
gaurav rana8b5ea652015-02-27 09:46:17 +053086endif
Aneesh Bansal39d5b3b2016-01-22 16:37:26 +053087obj-$(CONFIG_CHAIN_OF_TRUST) += fsl_chain_of_trust.o
gaurav rana8b5ea652015-02-27 09:46:17 +053088
Prabhakar Kushwahaab4ab012013-04-16 13:27:59 +053089endif