xref: /openbmc/u-boot/drivers/Makefile (revision f4abbee3)
1#
2# SPDX-License-Identifier:	GPL-2.0+
3#
4
5obj-$(CONFIG_$(SPL_)DM)		+= core/
6obj-$(CONFIG_$(SPL_)CLK)	+= clk/
7obj-$(CONFIG_$(SPL_)LED)	+= led/
8obj-$(CONFIG_$(SPL_)PINCTRL)	+= pinctrl/
9obj-$(CONFIG_$(SPL_)RAM)	+= ram/
10
11ifdef CONFIG_SPL_BUILD
12
13obj-$(CONFIG_SPL_I2C_SUPPORT) += i2c/
14obj-$(CONFIG_SPL_GPIO_SUPPORT) += gpio/
15obj-$(CONFIG_SPL_MMC_SUPPORT) += mmc/
16obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
17obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
18obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
19obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
20obj-$(CONFIG_SPL_SERIAL_SUPPORT) += serial/
21obj-$(CONFIG_SPL_SPI_FLASH_SUPPORT) += mtd/spi/
22obj-$(CONFIG_SPL_SPI_SUPPORT) += spi/
23obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
24obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
25obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
26obj-$(CONFIG_SPL_NAND_SUPPORT) += mtd/nand/
27obj-$(CONFIG_SPL_DRIVERS_MISC_SUPPORT) += misc/
28obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
29obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
30obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
31obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
32obj-$(CONFIG_SPL_USBETH_SUPPORT) += net/phy/
33obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
34obj-$(CONFIG_SPL_USBETH_SUPPORT) += usb/gadget/
35obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
36obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
37obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
38obj-$(CONFIG_SPL_SATA_SUPPORT) += block/
39
40else
41
42obj-y += adc/
43obj-$(CONFIG_DM_DEMO) += demo/
44obj-$(CONFIG_BIOSEMU) += bios_emulator/
45obj-y += block/
46obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
47obj-$(CONFIG_CPU) += cpu/
48obj-y += crypto/
49obj-$(CONFIG_FPGA) += fpga/
50obj-y += hwmon/
51obj-y += misc/
52obj-y += pcmcia/
53obj-y += dfu/
54obj-$(CONFIG_X86) += pch/
55obj-y += rtc/
56obj-y += sound/
57obj-y += timer/
58obj-y += tpm/
59obj-y += twserial/
60obj-y += video/
61obj-y += watchdog/
62obj-$(CONFIG_QE) += qe/
63obj-$(CONFIG_U_QE) += qe/
64obj-y += memory/
65obj-y += pwm/
66obj-y += input/
67# SOC specific infrastructure drivers.
68obj-y += soc/
69obj-$(CONFIG_REMOTEPROC) += remoteproc/
70obj-y += thermal/
71
72obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
73endif
74