xref: /openbmc/u-boot/drivers/Makefile (revision a22bbfda)
1#
2# SPDX-License-Identifier:	GPL-2.0+
3#
4
5obj-$(CONFIG_$(SPL_TPL_)DM)	+= core/
6obj-$(CONFIG_$(SPL_)CLK)	+= clk/
7obj-$(CONFIG_$(SPL_)LED)	+= led/
8obj-$(CONFIG_$(SPL_)PHY)	+= phy/
9obj-$(CONFIG_$(SPL_)PINCTRL)	+= pinctrl/
10obj-$(CONFIG_$(SPL_)RAM)	+= ram/
11
12ifdef CONFIG_SPL_BUILD
13
14obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
15obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
16obj-$(CONFIG_SPL_I2C_SUPPORT) += i2c/
17obj-$(CONFIG_SPL_GPIO_SUPPORT) += gpio/
18obj-$(CONFIG_SPL_MMC_SUPPORT) += mmc/
19obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
20obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
21obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
22obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
23obj-$(CONFIG_SPL_SERIAL_SUPPORT) += serial/
24obj-$(CONFIG_SPL_SPI_SUPPORT) += spi/
25obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
26obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
27obj-$(CONFIG_SPL_DRIVERS_MISC_SUPPORT) += misc/ sysreset/ firmware/
28obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
29obj-$(CONFIG_SPL_NAND_SUPPORT) += mtd/nand/
30obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
31obj-$(CONFIG_SPL_SPI_FLASH_SUPPORT) += mtd/spi/
32obj-$(CONFIG_SPL_UBI) += mtd/ubispl/
33obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
34obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
35obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
36obj-$(CONFIG_SPL_USBETH_SUPPORT) += net/phy/
37obj-$(CONFIG_SPL_PCI_SUPPORT) += pci/
38obj-$(CONFIG_SPL_PCH_SUPPORT) += pch/
39obj-$(CONFIG_SPL_RTC_SUPPORT) += rtc/
40obj-$(CONFIG_SPL_TIMER_SUPPORT) += timer/
41obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
42obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/
43obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/udc/
44obj-$(CONFIG_SPL_DFU_SUPPORT) += dfu/
45obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
46obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
47obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
48obj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/
49obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += block/
50obj-$(CONFIG_SPL_MMC_SUPPORT) += block/
51obj-$(CONFIG_SPL_FPGA_SUPPORT) += fpga/
52endif
53
54ifdef CONFIG_TPL_BUILD
55
56obj-$(CONFIG_TPL_I2C_SUPPORT) += i2c/
57obj-$(CONFIG_TPL_DRIVERS_MISC_SUPPORT) += misc/ sysreset/ firmware/
58obj-$(CONFIG_TPL_MMC_SUPPORT) += mmc/
59obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
60obj-$(CONFIG_TPL_NAND_SUPPORT) += mtd/nand/
61obj-$(CONFIG_TPL_SERIAL_SUPPORT) += serial/
62obj-$(CONFIG_TPL_SPI_FLASH_SUPPORT) += mtd/spi/
63obj-$(CONFIG_TPL_SPI_SUPPORT) += spi/
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-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
75obj-$(CONFIG_CPU) += cpu/
76obj-y += crypto/
77obj-y += firmware/
78obj-$(CONFIG_FPGA) += fpga/
79obj-y += misc/
80obj-$(CONFIG_MMC) += mmc/
81obj-y += pcmcia/
82obj-y += dfu/
83obj-$(CONFIG_X86) += pch/
84obj-y += phy/marvell/
85obj-y += rtc/
86obj-y += scsi/
87obj-y += sound/
88obj-y += spmi/
89obj-y += sysreset/
90obj-y += timer/
91obj-y += tpm/
92obj-y += video/
93obj-y += watchdog/
94obj-$(CONFIG_QE) += qe/
95obj-$(CONFIG_U_QE) += qe/
96obj-y += mailbox/
97obj-y += memory/
98obj-y += pwm/
99obj-y += reset/
100obj-y += input/
101# SOC specific infrastructure drivers.
102obj-y += soc/
103obj-$(CONFIG_REMOTEPROC) += remoteproc/
104obj-y += thermal/
105
106obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
107endif
108