xref: /openbmc/u-boot/drivers/Makefile (revision 9702ec00)
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_CRYPTO_SUPPORT) += crypto/
14obj-$(CONFIG_SPL_I2C_SUPPORT) += i2c/
15obj-$(CONFIG_SPL_GPIO_SUPPORT) += gpio/
16obj-$(CONFIG_SPL_MMC_SUPPORT) += mmc/
17obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
18obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
19obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
20obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
21obj-$(CONFIG_SPL_SERIAL_SUPPORT) += serial/
22obj-$(CONFIG_SPL_SPI_FLASH_SUPPORT) += mtd/spi/
23obj-$(CONFIG_SPL_SPI_SUPPORT) += spi/
24obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
25obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
26obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
27obj-$(CONFIG_SPL_NAND_SUPPORT) += mtd/nand/
28obj-$(CONFIG_SPL_DRIVERS_MISC_SUPPORT) += misc/
29obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
30obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
31obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
32obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
33obj-$(CONFIG_SPL_USBETH_SUPPORT) += net/phy/
34obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
35obj-$(CONFIG_SPL_USBETH_SUPPORT) += usb/gadget/
36obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
37obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
38obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
39obj-$(CONFIG_SPL_SATA_SUPPORT) += block/
40obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += block/
41obj-$(CONFIG_SPL_MMC_SUPPORT) += block/
42
43else
44
45obj-y += adc/
46obj-$(CONFIG_DM_DEMO) += demo/
47obj-$(CONFIG_BIOSEMU) += bios_emulator/
48obj-y += block/
49obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
50obj-$(CONFIG_CPU) += cpu/
51obj-y += crypto/
52obj-$(CONFIG_FPGA) += fpga/
53obj-y += hwmon/
54obj-y += misc/
55obj-y += pcmcia/
56obj-y += dfu/
57obj-$(CONFIG_X86) += pch/
58obj-y += rtc/
59obj-y += sound/
60obj-y += spmi/
61obj-y += timer/
62obj-y += tpm/
63obj-y += twserial/
64obj-y += video/
65obj-y += watchdog/
66obj-$(CONFIG_QE) += qe/
67obj-$(CONFIG_U_QE) += qe/
68obj-y += mailbox/
69obj-y += memory/
70obj-y += pwm/
71obj-y += input/
72# SOC specific infrastructure drivers.
73obj-y += soc/
74obj-$(CONFIG_REMOTEPROC) += remoteproc/
75obj-y += thermal/
76
77obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
78endif
79