Merge tag 'u-boot-amlogic-20200108' of https://gitlab.denx.de/u-boot/custodians/u...
[oweals/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/
8 obj-$(CONFIG_$(SPL_TPL_)SYSRESET) += sysreset/
9 obj-$(CONFIG_$(SPL_TPL_)FIRMWARE) +=firmware/
10 obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/
11 obj-$(CONFIG_$(SPL_TPL_)INPUT) += input/
12 obj-$(CONFIG_$(SPL_TPL_)LED) += led/
13 obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/
14 obj-y += mtd/
15 obj-$(CONFIG_$(SPL_TPL_)PCH_SUPPORT) += pch/
16 obj-$(CONFIG_$(SPL_TPL_)PCI) += pci/
17 obj-$(CONFIG_$(SPL_TPL_)PHY) += phy/
18 obj-$(CONFIG_$(SPL_TPL_)PINCTRL) += pinctrl/
19 obj-$(CONFIG_$(SPL_TPL_)RAM) += ram/
20 obj-$(CONFIG_$(SPL_TPL_)RTC_SUPPORT) += rtc/
21 obj-$(CONFIG_$(SPL_TPL_)SERIAL_SUPPORT) += serial/
22 obj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/
23 obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/
24 obj-$(CONFIG_$(SPL_TPL_)VIRTIO) += virtio/
25 obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox/
26 obj-$(CONFIG_$(SPL_)REMOTEPROC) += remoteproc/
27 obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm/
28 obj-$(CONFIG_$(SPL_TPL_)ACPI_PMC) += power/acpi_pmc/
29 obj-$(CONFIG_$(SPL_)BOARD) += board/
30
31 ifndef CONFIG_TPL_BUILD
32 ifdef CONFIG_SPL_BUILD
33
34 obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
35 obj-$(CONFIG_SPL_CACHE_SUPPORT) += cache/
36 obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
37 obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
38 obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
39 obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
40 obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
41 obj-$(CONFIG_$(SPL_)ALTERA_SDRAM) += ddr/altera/
42 obj-$(CONFIG_ARCH_IMX8M) += ddr/imx/imx8m/
43 obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
44 obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
45 obj-$(CONFIG_SPL_POWER_DOMAIN) += power/domain/
46 obj-$(CONFIG_SPL_DM_RESET) += reset/
47 obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
48 obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
49 obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
50 obj-$(CONFIG_SPL_USB_ETHER) += net/phy/
51 obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
52 obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/
53 obj-$(CONFIG_SPL_USB_GADGET) += usb/common/
54 obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/udc/
55 obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
56 obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
57 obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
58 obj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/
59 obj-$(CONFIG_HAVE_BLOCK_DEVICE) += block/
60 obj-$(CONFIG_SPL_FPGA_SUPPORT) += fpga/
61 obj-$(CONFIG_SPL_THERMAL) += thermal/
62
63 endif
64 endif
65
66 ifdef CONFIG_TPL_BUILD
67
68 obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
69
70 endif
71
72 ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
73
74 obj-y += adc/
75 obj-y += ata/
76 obj-$(CONFIG_DM_DEMO) += demo/
77 obj-$(CONFIG_BIOSEMU) += bios_emulator/
78 obj-y += block/
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-$(CONFIG_FPGA) += fpga/
85 obj-y += misc/
86 obj-$(CONFIG_MMC) += mmc/
87 obj-$(CONFIG_NVME) += nvme/
88 obj-$(CONFIG_PCI_ENDPOINT) += pci_endpoint/
89 obj-y += dfu/
90 obj-$(CONFIG_PCH) += pch/
91 obj-y += phy/allwinner/
92 obj-y += phy/marvell/
93 obj-y += rtc/
94 obj-y += scsi/
95 obj-y += sound/
96 obj-y += spmi/
97 obj-y += video/
98 obj-y += watchdog/
99 obj-$(CONFIG_QE) += qe/
100 obj-$(CONFIG_U_QE) += qe/
101 obj-y += mailbox/
102 obj-y += memory/
103 obj-y += mtd/
104 obj-y += pwm/
105 obj-y += reset/
106 obj-y += input/
107 # SOC specific infrastructure drivers.
108 obj-y += smem/
109 obj-y += soc/
110 obj-y += thermal/
111 obj-$(CONFIG_TEE) += tee/
112 obj-y += axi/
113 obj-y += ufs/
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