Merge branch 'master' of git://git.denx.de/u-boot
[platform/kernel/u-boot.git] / drivers / Makefile
1 #
2 # SPDX-License-Identifier:      GPL-2.0+
3 #
4
5 obj-$(CONFIG_$(SPL_)DM)         += core/
6 obj-$(CONFIG_$(SPL_)CLK)        += clk/
7 obj-$(CONFIG_$(SPL_)LED)        += led/
8 obj-$(CONFIG_$(SPL_)PINCTRL)    += pinctrl/
9 obj-$(CONFIG_$(SPL_)RAM)        += ram/
10
11 ifdef CONFIG_SPL_BUILD
12
13 obj-$(CONFIG_SPL_I2C_SUPPORT) += i2c/
14 obj-$(CONFIG_SPL_GPIO_SUPPORT) += gpio/
15 obj-$(CONFIG_SPL_MMC_SUPPORT) += mmc/
16 obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
17 obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
18 obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
19 obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
20 obj-$(CONFIG_SPL_SERIAL_SUPPORT) += serial/
21 obj-$(CONFIG_SPL_SPI_FLASH_SUPPORT) += mtd/spi/
22 obj-$(CONFIG_SPL_SPI_SUPPORT) += spi/
23 obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
24 obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
25 obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
26 obj-$(CONFIG_SPL_NAND_SUPPORT) += mtd/nand/
27 obj-$(CONFIG_SPL_DRIVERS_MISC_SUPPORT) += misc/
28 obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
29 obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
30 obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
31 obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
32 obj-$(CONFIG_SPL_USBETH_SUPPORT) += net/phy/
33 obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
34 obj-$(CONFIG_SPL_USBETH_SUPPORT) += usb/gadget/
35 obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
36 obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
37 obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
38 obj-$(CONFIG_SPL_SATA_SUPPORT) += block/
39 obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += block/
40 obj-$(CONFIG_SPL_MMC_SUPPORT) += block/
41
42 else
43
44 obj-y += adc/
45 obj-$(CONFIG_DM_DEMO) += demo/
46 obj-$(CONFIG_BIOSEMU) += bios_emulator/
47 obj-y += block/
48 obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
49 obj-$(CONFIG_CPU) += cpu/
50 obj-y += crypto/
51 obj-$(CONFIG_FPGA) += fpga/
52 obj-y += hwmon/
53 obj-y += misc/
54 obj-y += pcmcia/
55 obj-y += dfu/
56 obj-$(CONFIG_X86) += pch/
57 obj-y += rtc/
58 obj-y += sound/
59 obj-y += spmi/
60 obj-y += timer/
61 obj-y += tpm/
62 obj-y += twserial/
63 obj-y += video/
64 obj-y += watchdog/
65 obj-$(CONFIG_QE) += qe/
66 obj-$(CONFIG_U_QE) += qe/
67 obj-y += mailbox/
68 obj-y += memory/
69 obj-y += pwm/
70 obj-y += input/
71 # SOC specific infrastructure drivers.
72 obj-y += soc/
73 obj-$(CONFIG_REMOTEPROC) += remoteproc/
74 obj-y += thermal/
75
76 obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
77 endif