xref: /openbmc/u-boot/drivers/Makefile (revision c2012cb4)
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/
51endif
52
53ifdef CONFIG_TPL_BUILD
54
55obj-$(CONFIG_TPL_I2C_SUPPORT) += i2c/
56obj-$(CONFIG_TPL_DRIVERS_MISC_SUPPORT) += misc/ sysreset/ firmware/
57obj-$(CONFIG_TPL_MMC_SUPPORT) += mmc/
58obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
59obj-$(CONFIG_TPL_NAND_SUPPORT) += mtd/nand/
60obj-$(CONFIG_TPL_SERIAL_SUPPORT) += serial/
61obj-$(CONFIG_TPL_SPI_FLASH_SUPPORT) += mtd/spi/
62obj-$(CONFIG_TPL_SPI_SUPPORT) += spi/
63
64endif
65
66ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
67
68obj-y += adc/
69obj-y += ata/
70obj-$(CONFIG_DM_DEMO) += demo/
71obj-$(CONFIG_BIOSEMU) += bios_emulator/
72obj-y += block/
73obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
74obj-$(CONFIG_CPU) += cpu/
75obj-y += crypto/
76obj-y += firmware/
77obj-$(CONFIG_FPGA) += fpga/
78obj-y += misc/
79obj-$(CONFIG_MMC) += mmc/
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 += timer/
90obj-y += tpm/
91obj-y += video/
92obj-y += watchdog/
93obj-$(CONFIG_QE) += qe/
94obj-$(CONFIG_U_QE) += qe/
95obj-y += mailbox/
96obj-y += memory/
97obj-y += pwm/
98obj-y += reset/
99obj-y += input/
100# SOC specific infrastructure drivers.
101obj-y += soc/
102obj-$(CONFIG_REMOTEPROC) += remoteproc/
103obj-y += thermal/
104
105obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
106endif
107