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