soc/intel/xeon_sp/util: Enhance lock_pam0123
[coreboot2.git] / payloads / libpayload / drivers / Makefile.mk
blob23471b83c45628a91df35a31af4a26a56621689f
1 ##
2 ##
3 ## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
4 ## Copyright (C) 2008 Advanced Micro Devices, Inc.
5 ## Copyright (C) 2008 coresystems GmbH
6 ##
7 ## Redistribution and use in source and binary forms, with or without
8 ## modification, are permitted provided that the following conditions
9 ## are met:
10 ## 1. Redistributions of source code must retain the above copyright
11 ## notice, this list of conditions and the following disclaimer.
12 ## 2. Redistributions in binary form must reproduce the above copyright
13 ## notice, this list of conditions and the following disclaimer in the
14 ## documentation and/or other materials provided with the distribution.
15 ## 3. The name of the author may not be used to endorse or promote products
16 ## derived from this software without specific prior written permission.
18 ## THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19 ## ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 ## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 ## ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22 ## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 ## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 ## OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 ## HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 ## LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 ## OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 ## SUCH DAMAGE.
31 libc-$(CONFIG_LP_PCI) += pci_ops.c
33 ifeq ($(CONFIG_LP_PCI_IO_OPS),y)
34 libc-$(CONFIG_LP_PCI) += pci_io_ops.c
35 else
36 libc-$(CONFIG_LP_PCI) += pci_map_bus_ops.c
37 endif
39 libc-$(CONFIG_LP_PCIE_MEDIATEK) += pcie_mediatek.c
40 libc-$(CONFIG_LP_PCIE_QCOM) += pci_qcom.c
42 libc-$(CONFIG_LP_SPEAKER) += speaker.c
44 libc-$(CONFIG_LP_8250_SERIAL_CONSOLE) += serial/8250.c serial/serial.c
45 libc-$(CONFIG_LP_S5P_SERIAL_CONSOLE) += serial/s5p.c serial/serial.c
46 libc-$(CONFIG_LP_IPQ806X_SERIAL_CONSOLE) += serial/ipq806x.c serial/serial.c
47 libc-$(CONFIG_LP_IPQ40XX_SERIAL_CONSOLE) += serial/ipq40xx.c serial/serial.c
48 libc-$(CONFIG_LP_QCS405_SERIAL_CONSOLE) += serial/qcs405.c serial/serial.c
49 libc-$(CONFIG_LP_QUALCOMM_QUPV3_SERIAL_CONSOLE) += serial/qcom_qupv3_serial.c serial/serial.c
50 libc-$(CONFIG_LP_PC_KEYBOARD) += i8042/keyboard.c
51 libc-$(CONFIG_LP_PC_MOUSE) += i8042/mouse.c
52 libc-$(CONFIG_LP_PC_I8042) += i8042/i8042.c
54 libc-$(CONFIG_LP_CBMEM_CONSOLE) += cbmem_console.c
56 libc-$(CONFIG_LP_MOUSE_CURSOR) += mouse_cursor.c
58 libc-$(CONFIG_LP_NVRAM) += nvram.c
59 libc-$(CONFIG_LP_NVRAM) += options.c
61 # Timer drivers
62 ifneq ($(CONFIG_LP_TIMER_GENERIC_HZ),0)
63 libc-y += timer/generic.c
64 endif
65 libc-$(CONFIG_LP_TIMER_RDTSC) += timer/rdtsc.c
66 libc-$(CONFIG_LP_TIMER_ARM64_ARCH) += timer/arm64_arch_timer.c
68 # Video console drivers
69 libc-$(CONFIG_LP_VIDEO_CONSOLE) += video/video.c
70 libc-$(CONFIG_LP_VGA_VIDEO_CONSOLE) += video/vga.c
72 # Geode LX console drivers
73 libc-$(CONFIG_LP_GEODELX_VIDEO_CONSOLE) += video/geodelx.c
74 libc-$(CONFIG_LP_GEODELX_VIDEO_CONSOLE) += video/font8x16.c
75 libc-$(CONFIG_LP_GEODELX_VIDEO_CONSOLE) += video/font.c
77 # coreboot generic framebuffer driver
78 libc-$(CONFIG_LP_COREBOOT_VIDEO_CONSOLE) += video/corebootfb.c
79 libc-$(CONFIG_LP_COREBOOT_VIDEO_CONSOLE) += video/font8x16.c
80 libc-$(CONFIG_LP_COREBOOT_VIDEO_CONSOLE) += video/font.c
82 # cbgfx: coreboot graphics library
83 libc-y += video/graphics.c
85 # AHCI/ATAPI driver
86 libc-$(CONFIG_LP_STORAGE) += storage/storage.c
87 libc-$(CONFIG_LP_STORAGE_AHCI) += storage/ahci.c
88 libc-$(CONFIG_LP_STORAGE_AHCI) += storage/ahci_common.c
89 libc-$(CONFIG_LP_STORAGE_NVME) += storage/nvme.c
90 ifeq ($(CONFIG_LP_STORAGE_ATA),y)
91 libc-$(CONFIG_LP_STORAGE_ATA) += storage/ata.c
92 libc-$(CONFIG_LP_STORAGE_ATA) += storage/ahci_ata.c
93 endif
94 ifeq ($(CONFIG_LP_STORAGE_ATAPI),y)
95 libc-$(CONFIG_LP_STORAGE_ATAPI) += storage/atapi.c
96 libc-$(CONFIG_LP_STORAGE_ATAPI) += storage/ahci_atapi.c
97 endif
99 # USB stack
100 libc-$(CONFIG_LP_USB) += usb/usbinit.c
101 libc-$(CONFIG_LP_USB) += usb/usb.c
102 libc-$(CONFIG_LP_USB) += usb/usb_dev.c
103 libc-$(CONFIG_LP_USB) += usb/quirks.c
104 libc-$(CONFIG_LP_USB_GEN_HUB) += usb/generic_hub.c
105 libc-$(CONFIG_LP_USB_HUB) += usb/usbhub.c
106 libc-$(CONFIG_LP_USB_UHCI) += usb/uhci.c
107 libc-$(CONFIG_LP_USB_UHCI) += usb/uhci_rh.c
108 libc-$(CONFIG_LP_USB_OHCI) += usb/ohci.c
109 libc-$(CONFIG_LP_USB_OHCI) += usb/ohci_rh.c
110 libc-$(CONFIG_LP_USB_EHCI) += usb/ehci.c
111 libc-$(CONFIG_LP_USB_EHCI) += usb/ehci_rh.c
112 libc-$(CONFIG_LP_USB_XHCI) += usb/xhci.c
113 libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_debug.c
114 libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_devconf.c
115 libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_events.c
116 libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_commands.c
117 libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_rh.c
118 libc-$(CONFIG_LP_USB_HID) += usb/usbhid.c
119 libc-$(CONFIG_LP_USB_MSC) += usb/usbmsc.c
120 libc-$(CONFIG_LP_USB_DWC2) += usb/dwc2.c
121 libc-$(CONFIG_LP_USB_DWC2) += usb/dwc2_rh.c
123 # USB device stack
124 libc-$(CONFIG_LP_UDC) += udc/udc.c
125 libc-$(CONFIG_LP_UDC_CI) += udc/chipidea.c
126 libc-$(CONFIG_LP_UDC_DWC2) += udc/dwc2.c
128 # used by both USB HID and keyboard
129 libc-y += hid.c