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