xref: /OK3568_Linux_fs/u-boot/drivers/Makefile (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun#
2*4882a593Smuzhiyun# SPDX-License-Identifier:	GPL-2.0+
3*4882a593Smuzhiyun#
4*4882a593Smuzhiyun
5*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)CLK) += clk/
6*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)DM) += core/
7*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)DM_CRYPTO) += crypto/
8*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)DM_RNG) += rng/
9*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/ sysreset/ firmware/
10*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/
11*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)LED) += led/
12*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)INPUT) += input/
13*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/
14*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += mtd/nand/raw/
15*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)PHY) += phy/
16*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)PINCTRL) += pinctrl/
17*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)RAM) += ram/
18*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)SERIAL_SUPPORT) += serial/
19*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += mtd/spi/
20*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/
21*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/
22*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)IRQ) += irq/
23*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)DM_VIDEO) += video/
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunifndef CONFIG_TPL_BUILD
26*4882a593Smuzhiyunifdef CONFIG_SPL_BUILD
27*4882a593Smuzhiyunobj-$(CONFIG_SPL_ADC_SUPPORT) += adc/
28*4882a593Smuzhiyunobj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
29*4882a593Smuzhiyunobj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
30*4882a593Smuzhiyunobj-$(CONFIG_SPL_GPIO_SUPPORT) += gpio/
31*4882a593Smuzhiyunobj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
32*4882a593Smuzhiyunobj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
33*4882a593Smuzhiyunobj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
34*4882a593Smuzhiyunobj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
35*4882a593Smuzhiyunobj-$(CONFIG_SPL_POWER_SUPPORT) += power/
36*4882a593Smuzhiyunobj-$(CONFIG_SPL_DM_PMIC) += power/pmic/
37*4882a593Smuzhiyunobj-$(CONFIG_SPL_DM_REGULATOR) += power/regulator/
38*4882a593Smuzhiyunobj-$(CONFIG_SPL_DM_FUEL_GAUGE) += power/fuel_gauge/
39*4882a593Smuzhiyunobj-$(CONFIG_SPL_DM_FUEL_GAUGE) += power/charge/
40*4882a593Smuzhiyunobj-$(CONFIG_SPL_PWM_SUPPORT) += pwm/
41*4882a593Smuzhiyunobj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
42*4882a593Smuzhiyunobj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
43*4882a593Smuzhiyunobj-$(CONFIG_SPL_UBI) += mtd/ubispl/
44*4882a593Smuzhiyunobj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
45*4882a593Smuzhiyunobj-$(CONFIG_SPL_ETH_SUPPORT) += net/
46*4882a593Smuzhiyunobj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
47*4882a593Smuzhiyunobj-$(CONFIG_SPL_USBETH_SUPPORT) += net/phy/
48*4882a593Smuzhiyunobj-$(CONFIG_SPL_PCI_SUPPORT) += pci/
49*4882a593Smuzhiyunobj-$(CONFIG_SPL_PCH_SUPPORT) += pch/
50*4882a593Smuzhiyunobj-$(CONFIG_SPL_RTC_SUPPORT) += rtc/
51*4882a593Smuzhiyunobj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
52*4882a593Smuzhiyunobj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/
53*4882a593Smuzhiyunobj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/udc/
54*4882a593Smuzhiyunobj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/
55*4882a593Smuzhiyunobj-$(CONFIG_SPL_USB_GADGET) += usb/common/
56*4882a593Smuzhiyunobj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/udc/
57*4882a593Smuzhiyunobj-$(CONFIG_SPL_DFU) += dfu/
58*4882a593Smuzhiyunobj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
59*4882a593Smuzhiyunobj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
60*4882a593Smuzhiyunobj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
61*4882a593Smuzhiyunobj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/
62*4882a593Smuzhiyunobj-$(CONFIG_SPL_USB_HOST_SUPPORT) += block/
63*4882a593Smuzhiyunobj-$(CONFIG_SPL_MMC_SUPPORT) += block/
64*4882a593Smuzhiyunobj-$(CONFIG_SPL_MTD_SUPPORT) += block/
65*4882a593Smuzhiyunobj-$(CONFIG_SPL_FPGA_SUPPORT) += fpga/
66*4882a593Smuzhiyunobj-$(CONFIG_SPL_RKNAND_SUPPORT) += rknand/
67*4882a593Smuzhiyunobj-$(CONFIG_SPL_RKNAND_SUPPORT) += block/
68*4882a593Smuzhiyunendif
69*4882a593Smuzhiyunendif
70*4882a593Smuzhiyun
71*4882a593Smuzhiyunifdef CONFIG_TPL_BUILD
72*4882a593Smuzhiyun
73*4882a593Smuzhiyunobj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
74*4882a593Smuzhiyun
75*4882a593Smuzhiyunendif
76*4882a593Smuzhiyun
77*4882a593Smuzhiyunifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
78*4882a593Smuzhiyun
79*4882a593Smuzhiyunobj-y += adc/
80*4882a593Smuzhiyunobj-y += ata/
81*4882a593Smuzhiyunobj-$(CONFIG_DM_DEMO) += demo/
82*4882a593Smuzhiyunobj-$(CONFIG_BIOSEMU) += bios_emulator/
83*4882a593Smuzhiyunobj-y += block/
84*4882a593Smuzhiyunobj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
85*4882a593Smuzhiyunobj-$(CONFIG_CPU) += cpu/
86*4882a593Smuzhiyunobj-y += crypto/
87*4882a593Smuzhiyunobj-y += firmware/
88*4882a593Smuzhiyunobj-$(CONFIG_FPGA) += fpga/
89*4882a593Smuzhiyunobj-y += misc/
90*4882a593Smuzhiyunobj-$(CONFIG_MMC) += mmc/
91*4882a593Smuzhiyunobj-$(CONFIG_NVME) += nvme/
92*4882a593Smuzhiyunobj-$(CONFIG_RKNAND) += rknand/
93*4882a593Smuzhiyunobj-$(CONFIG_RKFLASH) += rkflash/
94*4882a593Smuzhiyunobj-y += pcmcia/
95*4882a593Smuzhiyunobj-$(CONFIG_DM_POWER_DELIVERY) += power/power_delivery/
96*4882a593Smuzhiyunobj-y += dfu/
97*4882a593Smuzhiyunobj-$(CONFIG_X86) += pch/
98*4882a593Smuzhiyunobj-y += phy/marvell/
99*4882a593Smuzhiyunobj-y += rtc/
100*4882a593Smuzhiyunobj-y += scsi/
101*4882a593Smuzhiyunobj-y += sound/
102*4882a593Smuzhiyunobj-y += spmi/
103*4882a593Smuzhiyunobj-y += sysreset/
104*4882a593Smuzhiyunobj-y += tpm/
105*4882a593Smuzhiyunobj-y += watchdog/
106*4882a593Smuzhiyunobj-$(CONFIG_QE) += qe/
107*4882a593Smuzhiyunobj-$(CONFIG_U_QE) += qe/
108*4882a593Smuzhiyunobj-y += mailbox/
109*4882a593Smuzhiyunobj-y += memory/
110*4882a593Smuzhiyunobj-y += pwm/
111*4882a593Smuzhiyunobj-y += input/
112*4882a593Smuzhiyun# SOC specific infrastructure drivers.
113*4882a593Smuzhiyunobj-y += soc/
114*4882a593Smuzhiyunobj-$(CONFIG_REMOTEPROC) += remoteproc/
115*4882a593Smuzhiyunobj-y += thermal/
116*4882a593Smuzhiyunobj-y += ufs/
117*4882a593Smuzhiyun
118*4882a593Smuzhiyunobj-$(CONFIG_MACH_PIC32) += ddr/microchip/
119*4882a593Smuzhiyunendif
120*4882a593Smuzhiyun
121*4882a593Smuzhiyunobj-$(CONFIG_$(SPL_TPL_)DM_RESET) += reset/
122*4882a593Smuzhiyun
123