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