1# 2# SPDX-License-Identifier: GPL-2.0+ 3# 4 5obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/ 6obj-$(CONFIG_$(SPL_TPL_)DM) += core/ 7obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/ sysreset/ firmware/ 8obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/ 9obj-$(CONFIG_$(SPL_TPL_)LED) += led/ 10obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/ 11obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += mtd/nand/ 12obj-$(CONFIG_$(SPL_TPL_)PHY) += phy/ 13obj-$(CONFIG_$(SPL_TPL_)PINCTRL) += pinctrl/ 14obj-$(CONFIG_$(SPL_TPL_)RAM) += ram/ 15obj-$(CONFIG_$(SPL_TPL_)SERIAL_SUPPORT) += serial/ 16obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += mtd/spi/ 17obj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/ 18obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/ 19 20ifndef CONFIG_TPL_BUILD 21ifdef CONFIG_SPL_BUILD 22 23obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/ 24obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/ 25obj-$(CONFIG_SPL_GPIO_SUPPORT) += gpio/ 26obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/ 27obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/ 28obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/ 29obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/ 30obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/ 31obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/ 32obj-$(CONFIG_SPL_RESET_SUPPORT) += reset/ 33obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/ 34obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/ 35obj-$(CONFIG_SPL_UBI) += mtd/ubispl/ 36obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/ 37obj-$(CONFIG_SPL_ETH_SUPPORT) += net/ 38obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/ 39obj-$(CONFIG_SPL_USB_ETHER) += net/phy/ 40obj-$(CONFIG_SPL_PCI_SUPPORT) += pci/ 41obj-$(CONFIG_SPL_PCH_SUPPORT) += pch/ 42obj-$(CONFIG_SPL_RTC_SUPPORT) += rtc/ 43obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/ 44obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/ 45obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/udc/ 46obj-$(CONFIG_SPL_DFU_SUPPORT) += dfu/ 47obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/ 48obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/ 49obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/ 50obj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/ 51obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += block/ 52obj-$(CONFIG_SPL_MMC_SUPPORT) += block/ 53obj-$(CONFIG_SPL_FPGA_SUPPORT) += fpga/ 54obj-$(CONFIG_SPL_THERMAL) += thermal/ 55 56endif 57endif 58 59ifdef CONFIG_TPL_BUILD 60 61obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/ 62 63endif 64 65ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) 66 67obj-y += adc/ 68obj-y += ata/ 69obj-$(CONFIG_DM_DEMO) += demo/ 70obj-$(CONFIG_BIOSEMU) += bios_emulator/ 71obj-y += block/ 72obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/ 73obj-$(CONFIG_CPU) += cpu/ 74obj-y += crypto/ 75obj-y += firmware/ 76obj-$(CONFIG_FPGA) += fpga/ 77obj-y += misc/ 78obj-$(CONFIG_MMC) += mmc/ 79obj-$(CONFIG_NVME) += nvme/ 80obj-y += pcmcia/ 81obj-y += dfu/ 82obj-$(CONFIG_X86) += pch/ 83obj-y += phy/marvell/ 84obj-y += rtc/ 85obj-y += scsi/ 86obj-y += sound/ 87obj-y += spmi/ 88obj-y += sysreset/ 89obj-y += tpm/ 90obj-y += video/ 91obj-y += watchdog/ 92obj-$(CONFIG_QE) += qe/ 93obj-$(CONFIG_U_QE) += qe/ 94obj-y += mailbox/ 95obj-y += memory/ 96obj-y += pwm/ 97obj-y += reset/ 98obj-y += input/ 99# SOC specific infrastructure drivers. 100obj-y += soc/ 101obj-$(CONFIG_REMOTEPROC) += remoteproc/ 102obj-y += thermal/ 103 104obj-$(CONFIG_MACH_PIC32) += ddr/microchip/ 105endif 106