xref: /openbmc/u-boot/drivers/Makefile (revision d9b88d25)
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_SUPPORT) += spi/
23obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
24obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
25obj-$(CONFIG_SPL_DRIVERS_MISC_SUPPORT) += misc/ sysreset/
26obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
27obj-$(CONFIG_SPL_NAND_SUPPORT) += mtd/nand/
28obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
29obj-$(CONFIG_SPL_SPI_FLASH_SUPPORT) += mtd/spi/
30obj-$(CONFIG_SPL_UBI) += mtd/ubispl/
31obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
32obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
33obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
34obj-$(CONFIG_SPL_USBETH_SUPPORT) += net/phy/
35obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
36obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/
37obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/udc/
38obj-$(CONFIG_SPL_DFU_SUPPORT) += dfu/
39obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
40obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
41obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
42obj-$(CONFIG_SPL_SATA_SUPPORT) += block/
43obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += block/
44obj-$(CONFIG_SPL_MMC_SUPPORT) += block/
45endif
46
47ifdef CONFIG_TPL_BUILD
48
49obj-$(CONFIG_TPL_I2C_SUPPORT) += i2c/
50obj-$(CONFIG_TPL_DRIVERS_MISC_SUPPORT) += misc/ sysreset/
51obj-$(CONFIG_TPL_MMC_SUPPORT) += mmc/
52obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
53obj-$(CONFIG_TPL_NAND_SUPPORT) += mtd/nand/
54obj-$(CONFIG_TPL_SERIAL_SUPPORT) += serial/
55obj-$(CONFIG_TPL_SPI_FLASH_SUPPORT) += mtd/spi/
56obj-$(CONFIG_TPL_SPI_SUPPORT) += spi/
57
58endif
59
60ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
61
62obj-y += adc/
63obj-$(CONFIG_DM_DEMO) += demo/
64obj-$(CONFIG_BIOSEMU) += bios_emulator/
65obj-y += block/
66obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
67obj-$(CONFIG_CPU) += cpu/
68obj-y += crypto/
69obj-$(CONFIG_FPGA) += fpga/
70obj-y += hwmon/
71obj-y += misc/
72obj-y += pcmcia/
73obj-y += dfu/
74obj-$(CONFIG_X86) += pch/
75obj-y += phy/marvell/
76obj-y += rtc/
77obj-y += sound/
78obj-y += spmi/
79obj-y += sysreset/
80obj-y += timer/
81obj-y += tpm/
82obj-y += twserial/
83obj-y += video/
84obj-y += watchdog/
85obj-$(CONFIG_QE) += qe/
86obj-$(CONFIG_U_QE) += qe/
87obj-y += mailbox/
88obj-y += memory/
89obj-y += pwm/
90obj-y += reset/
91obj-y += input/
92# SOC specific infrastructure drivers.
93obj-y += soc/
94obj-$(CONFIG_REMOTEPROC) += remoteproc/
95obj-y += thermal/
96
97obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
98endif
99