xref: /openbmc/u-boot/drivers/Makefile (revision cb19c293)
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_)DM_MAILBOX) += mailbox/
18obj-$(CONFIG_$(SPL_)REMOTEPROC) += remoteproc/
19
20ifndef CONFIG_TPL_BUILD
21ifdef CONFIG_SPL_BUILD
22
23obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
24obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
25obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
26obj-$(CONFIG_SPL_GPIO_SUPPORT) += gpio/
27obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
28obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
29obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
30obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
31obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
32obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
33obj-$(CONFIG_SPL_POWER_DOMAIN) += power/domain/
34obj-$(CONFIG_SPL_DM_RESET) += reset/
35obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
36obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
37obj-$(CONFIG_SPL_UBI) += mtd/ubispl/
38obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
39obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
40obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
41obj-$(CONFIG_SPL_USB_ETHER) += net/phy/
42obj-$(CONFIG_SPL_PCI_SUPPORT) += pci/
43obj-$(CONFIG_SPL_PCH_SUPPORT) += pch/
44obj-$(CONFIG_SPL_RTC_SUPPORT) += rtc/
45obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
46obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/
47obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/udc/
48obj-$(CONFIG_SPL_DFU_SUPPORT) += dfu/
49obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
50obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
51obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
52obj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/
53obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += block/
54obj-$(CONFIG_SPL_MMC_SUPPORT) += block/
55obj-$(CONFIG_SPL_FPGA_SUPPORT) += fpga/
56obj-$(CONFIG_SPL_THERMAL) += thermal/
57
58endif
59endif
60
61ifdef CONFIG_TPL_BUILD
62
63obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
64
65endif
66
67ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
68
69obj-y += adc/
70obj-y += ata/
71obj-$(CONFIG_DM_DEMO) += demo/
72obj-$(CONFIG_BIOSEMU) += bios_emulator/
73obj-y += block/
74obj-y += board/
75obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
76obj-$(CONFIG_CPU) += cpu/
77obj-y += crypto/
78obj-$(CONFIG_FASTBOOT) += fastboot/
79obj-y += firmware/
80obj-$(CONFIG_FPGA) += fpga/
81obj-y += misc/
82obj-$(CONFIG_MMC) += mmc/
83obj-$(CONFIG_NVME) += nvme/
84obj-y += pcmcia/
85obj-y += dfu/
86obj-$(CONFIG_X86) += pch/
87obj-y += phy/allwinner/
88obj-y += phy/marvell/
89obj-y += rtc/
90obj-y += scsi/
91obj-y += sound/
92obj-y += spmi/
93obj-y += sysreset/
94obj-y += tpm/
95obj-y += video/
96obj-y += watchdog/
97obj-$(CONFIG_QE) += qe/
98obj-$(CONFIG_U_QE) += qe/
99obj-y += mailbox/
100obj-y += memory/
101obj-y += pwm/
102obj-y += reset/
103obj-y += input/
104# SOC specific infrastructure drivers.
105obj-y += smem/
106obj-y += soc/
107obj-y += thermal/
108obj-$(CONFIG_TEE) += tee/
109obj-y += axi/
110obj-$(CONFIG_W1) += w1/
111obj-$(CONFIG_W1_EEPROM) += w1-eeprom/
112
113obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
114endif
115