spl: move SPL driver entries to driver/Makefile
[platform/kernel/u-boot.git] / drivers / Makefile
1 ifdef CONFIG_SPL_BUILD
2
3 obj-$(CONFIG_SPL_CLK_SUPPORT) += clk/
4 obj-$(CONFIG_SPL_DM) += core/
5 obj-$(CONFIG_SPL_I2C_SUPPORT) += i2c/
6 obj-$(CONFIG_SPL_GPIO_SUPPORT) += gpio/
7 obj-$(CONFIG_SPL_MMC_SUPPORT) += mmc/
8 obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
9 obj-$(CONFIG_SYS_MVEBU_DDR_A38X) += ddr/marvell/a38x/
10 obj-$(CONFIG_SYS_MVEBU_DDR_AXP) += ddr/marvell/axp/
11 obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
12 obj-$(CONFIG_SPL_SERIAL_SUPPORT) += serial/
13 obj-$(CONFIG_SPL_SPI_FLASH_SUPPORT) += mtd/spi/
14 obj-$(CONFIG_SPL_SPI_SUPPORT) += spi/
15 obj-$(CONFIG_SPL_LED_SUPPORT) += led/
16 obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
17 obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
18 obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
19 obj-$(CONFIG_SPL_NAND_SUPPORT) += mtd/nand/
20 obj-$(CONFIG_SPL_DRIVERS_MISC_SUPPORT) += misc/
21 obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
22 obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
23 obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
24 obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
25 obj-$(CONFIG_SPL_USBETH_SUPPORT) += net/phy/
26 obj-$(CONFIG_SPL_RAM_SUPPORT) += ram/
27 obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
28 obj-$(CONFIG_SPL_USBETH_SUPPORT) += usb/gadget/
29 obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
30 obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
31 obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
32 obj-$(CONFIG_SPL_SATA_SUPPORT) += block/
33
34 else
35
36 obj-$(CONFIG_CLK) += clk/
37 obj-$(CONFIG_DM) += core/
38 obj-$(CONFIG_DM_DEMO) += demo/
39 obj-$(CONFIG_BIOSEMU) += bios_emulator/
40 obj-y += block/
41 obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
42 obj-$(CONFIG_CPU) += cpu/
43 obj-y += crypto/
44 obj-$(CONFIG_FPGA) += fpga/
45 obj-y += hwmon/
46 obj-$(CONFIG_LED) += led/
47 obj-y += misc/
48 obj-y += pcmcia/
49 obj-y += dfu/
50 obj-$(CONFIG_RAM) += ram/
51 obj-y += rtc/
52 obj-y += sound/
53 obj-y += tpm/
54 obj-y += twserial/
55 obj-y += video/
56 obj-y += watchdog/
57 obj-$(CONFIG_QE) += qe/
58 obj-$(CONFIG_U_QE) += qe/
59 obj-y += memory/
60 obj-y += pwm/
61 obj-y += input/
62 # SOC specific infrastructure drivers.
63 obj-y += soc/
64 obj-y += thermal/
65
66 endif