Merge branch 'master' of git://git.denx.de/u-boot-spi
[platform/kernel/u-boot.git] / drivers / Makefile
1 # SPDX-License-Identifier: GPL-2.0+
2
3 obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/
4 obj-$(CONFIG_$(SPL_TPL_)DM) += core/
5 obj-$(CONFIG_$(SPL_TPL_)DFU) += dfu/
6 obj-$(CONFIG_$(SPL_TPL_)GPIO_SUPPORT) += gpio/
7 obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/ sysreset/ firmware/
8 obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/
9 obj-$(CONFIG_$(SPL_TPL_)INPUT) += input/
10 obj-$(CONFIG_$(SPL_TPL_)LED) += led/
11 obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/
12 obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += mtd/nand/raw/
13 obj-$(CONFIG_$(SPL_TPL_)PCH_SUPPORT) += pch/
14 obj-$(CONFIG_$(SPL_TPL_)PCI) += pci/
15 obj-$(CONFIG_$(SPL_TPL_)PHY) += phy/
16 obj-$(CONFIG_$(SPL_TPL_)PINCTRL) += pinctrl/
17 obj-$(CONFIG_$(SPL_TPL_)RAM) += ram/
18 obj-$(CONFIG_$(SPL_TPL_)RTC_SUPPORT) += rtc/
19 obj-$(CONFIG_$(SPL_TPL_)SERIAL_SUPPORT) += serial/
20 obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += mtd/spi/
21 obj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/
22 obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/
23 obj-$(CONFIG_$(SPL_TPL_)VIRTIO) += virtio/
24 obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox/
25 obj-$(CONFIG_$(SPL_)REMOTEPROC) += remoteproc/
26 obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm/
27
28 ifndef CONFIG_TPL_BUILD
29 ifdef CONFIG_SPL_BUILD
30
31 obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
32 obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
33 obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
34 obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
35 obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
36 obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
37 obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
38 obj-$(CONFIG_ARCH_IMX8M) += ddr/imx/imx8m/
39 obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
40 obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
41 obj-$(CONFIG_SPL_POWER_DOMAIN) += power/domain/
42 obj-$(CONFIG_SPL_DM_RESET) += reset/
43 obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
44 obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
45 obj-$(CONFIG_SPL_UBI) += mtd/ubispl/
46 obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
47 obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
48 obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
49 obj-$(CONFIG_SPL_USB_ETHER) += net/phy/
50 obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
51 obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/
52 obj-$(CONFIG_SPL_USB_GADGET) += usb/common/
53 obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/udc/
54 obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
55 obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
56 obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
57 obj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/
58 obj-$(CONFIG_HAVE_BLOCK_DEVICE) += block/
59 obj-$(CONFIG_SPL_FPGA_SUPPORT) += fpga/
60 obj-$(CONFIG_SPL_THERMAL) += thermal/
61
62 endif
63 endif
64
65 ifdef CONFIG_TPL_BUILD
66
67 obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
68
69 endif
70
71 ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
72
73 obj-y += adc/
74 obj-y += ata/
75 obj-$(CONFIG_DM_DEMO) += demo/
76 obj-$(CONFIG_BIOSEMU) += bios_emulator/
77 obj-y += block/
78 obj-y += board/
79 obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
80 obj-y += cache/
81 obj-$(CONFIG_CPU) += cpu/
82 obj-y += crypto/
83 obj-$(CONFIG_FASTBOOT) += fastboot/
84 obj-y += firmware/
85 obj-$(CONFIG_FPGA) += fpga/
86 obj-y += misc/
87 obj-$(CONFIG_MMC) += mmc/
88 obj-$(CONFIG_NVME) += nvme/
89 obj-y += pcmcia/
90 obj-y += dfu/
91 obj-$(CONFIG_PCH) += pch/
92 obj-y += phy/allwinner/
93 obj-y += phy/marvell/
94 obj-y += rtc/
95 obj-y += scsi/
96 obj-y += sound/
97 obj-y += spmi/
98 obj-y += sysreset/
99 obj-y += video/
100 obj-y += watchdog/
101 obj-$(CONFIG_QE) += qe/
102 obj-$(CONFIG_U_QE) += qe/
103 obj-y += mailbox/
104 obj-y += memory/
105 obj-y += pwm/
106 obj-y += reset/
107 obj-y += input/
108 # SOC specific infrastructure drivers.
109 obj-y += smem/
110 obj-y += soc/
111 obj-y += thermal/
112 obj-$(CONFIG_TEE) += tee/
113 obj-y += axi/
114 obj-$(CONFIG_W1) += w1/
115 obj-$(CONFIG_W1_EEPROM) += w1-eeprom/
116
117 obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
118 obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock/
119 endif