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