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