xref: /openbmc/u-boot/drivers/Makefile (revision bf9012b8)
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) += block/
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-$(CONFIG_DM_DEMO) += demo/
70obj-$(CONFIG_BIOSEMU) += bios_emulator/
71obj-y += block/
72obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
73obj-$(CONFIG_CPU) += cpu/
74obj-y += crypto/
75obj-y += firmware/
76obj-$(CONFIG_FPGA) += fpga/
77obj-y += misc/
78obj-$(CONFIG_MMC) += mmc/
79obj-y += pcmcia/
80obj-y += dfu/
81obj-$(CONFIG_X86) += pch/
82obj-y += phy/marvell/
83obj-y += rtc/
84obj-y += sound/
85obj-y += spmi/
86obj-y += sysreset/
87obj-y += timer/
88obj-y += tpm/
89obj-y += video/
90obj-y += watchdog/
91obj-$(CONFIG_QE) += qe/
92obj-$(CONFIG_U_QE) += qe/
93obj-y += mailbox/
94obj-y += memory/
95obj-y += pwm/
96obj-y += reset/
97obj-y += input/
98# SOC specific infrastructure drivers.
99obj-y += soc/
100obj-$(CONFIG_REMOTEPROC) += remoteproc/
101obj-y += thermal/
102
103obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
104endif
105