blob: 1fa0ec3b1814172dd4a9234d50ddfaeb497a45a6 [file] [log] [blame]
Uwe Hermann661e3802008-03-21 18:37:23 +00001##
2## This file is part of the libpayload project.
3##
4## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
5## Copyright (C) 2008 Advanced Micro Devices, Inc.
Stefan Reinauer69863582008-08-08 13:45:03 +00006## Copyright (C) 2008 coresystems GmbH
Uwe Hermann661e3802008-03-21 18:37:23 +00007##
8## Redistribution and use in source and binary forms, with or without
9## modification, are permitted provided that the following conditions
10## are met:
11## 1. Redistributions of source code must retain the above copyright
12## notice, this list of conditions and the following disclaimer.
13## 2. Redistributions in binary form must reproduce the above copyright
14## notice, this list of conditions and the following disclaimer in the
15## documentation and/or other materials provided with the distribution.
16## 3. The name of the author may not be used to endorse or promote products
17## derived from this software without specific prior written permission.
18##
19## THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
20## ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22## ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
23## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25## OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26## HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27## LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28## OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29## SUCH DAMAGE.
30##
Uwe Hermann0b53ec3d2008-04-15 17:24:08 +000031
Gabe Black1ee2c6d2013-08-09 04:27:35 -070032libc-$(CONFIG_LP_PCI) += pci.c
Stefan Reinauer69863582008-08-08 13:45:03 +000033
Gabe Black1ee2c6d2013-08-09 04:27:35 -070034libc-$(CONFIG_LP_SPEAKER) += speaker.c
Jordan Crousef6145c32008-03-19 23:56:58 +000035
Stefan Reinauer777028f2016-04-14 17:43:06 -070036libc-$(CONFIG_LP_8250_SERIAL_CONSOLE) += serial/8250.c serial/serial.c
37libc-$(CONFIG_LP_S5P_SERIAL_CONSOLE) += serial/s5p.c serial/serial.c
38libc-$(CONFIG_LP_IPQ806X_SERIAL_CONSOLE) += serial/ipq806x.c serial/serial.c
Varadarajan Narayananc1ae7e92016-02-01 11:32:12 +053039libc-$(CONFIG_LP_IPQ40XX_SERIAL_CONSOLE) += serial/ipq40xx.c serial/serial.c
Stefan Reinauer777028f2016-04-14 17:43:06 -070040libc-$(CONFIG_LP_BG4CD_SERIAL_CONSOLE) += serial/bg4cd.c serial/serial.c
Gabe Black1ee2c6d2013-08-09 04:27:35 -070041libc-$(CONFIG_LP_PC_KEYBOARD) += keyboard.c
Stefan Reinauer69863582008-08-08 13:45:03 +000042
Gabe Black1ee2c6d2013-08-09 04:27:35 -070043libc-$(CONFIG_LP_CBMEM_CONSOLE) += cbmem_console.c
Gabe Blacka54b6a62012-09-29 00:21:27 -070044
Gabe Black1ee2c6d2013-08-09 04:27:35 -070045libc-$(CONFIG_LP_NVRAM) += nvram.c
46libc-$(CONFIG_LP_NVRAM) += options.c
Jordan Crouse30939bd2008-04-10 22:49:02 +000047
Gabe Blackd4d29a12014-04-10 02:36:49 -070048# Timer drivers
Julius Werner4fda9bd2016-05-16 15:39:12 -070049ifneq ($(CONFIG_LP_TIMER_GENERIC_HZ),0)
50libc-y += timer/generic.c
51endif
Gabe Blackd4d29a12014-04-10 02:36:49 -070052libc-$(CONFIG_LP_TIMER_RDTSC) += timer/rdtsc.c
Ionela Voinescuce22c022014-09-24 17:05:33 +010053libc-$(CONFIG_LP_TIMER_IMG_PISTACHIO) += timer/img_pistachio.c
Ruilin Hao5bcbd112015-11-10 00:41:41 -080054libc-$(CONFIG_LP_TIMER_ARMADA38X) += timer/armada38x.c
Hakim Giydan11302f32016-09-21 15:50:39 -070055libc-$(CONFIG_LP_TIMER_MVMAP2315) += timer/mvmap2315.c
Gabe Blackd4d29a12014-04-10 02:36:49 -070056
Jordan Crouse30939bd2008-04-10 22:49:02 +000057# Video console drivers
Gabe Black1ee2c6d2013-08-09 04:27:35 -070058libc-$(CONFIG_LP_VIDEO_CONSOLE) += video/video.c
59libc-$(CONFIG_LP_VGA_VIDEO_CONSOLE) += video/vga.c
Jordan Crouse54315532008-04-11 15:48:21 +000060
Peter Stuge4b1971c2008-10-08 14:47:41 +000061# Geode LX console drivers
Gabe Black1ee2c6d2013-08-09 04:27:35 -070062libc-$(CONFIG_LP_GEODELX_VIDEO_CONSOLE) += video/geodelx.c
63libc-$(CONFIG_LP_GEODELX_VIDEO_CONSOLE) += video/font8x16.c
Patrick Georgid21f68b2008-09-02 16:06:22 +000064
Stefan Reinauerb7002542010-03-25 18:56:26 +000065# coreboot generic framebuffer driver
Nico Hubercbe3c702014-10-12 16:37:42 +020066libc-$(CONFIG_LP_COREBOOT_VIDEO_CONSOLE) += video/corebootfb.c
67libc-$(CONFIG_LP_COREBOOT_VIDEO_CONSOLE) += video/font8x16.c
Stefan Reinauerb7002542010-03-25 18:56:26 +000068
Daisuke Nojiri3f663982015-07-29 16:03:52 -070069# cbgfx: coreboot graphics library
70libc-y += video/graphics.c
71
Edward O'Callaghanefc58412014-01-23 08:30:42 +110072# AHCI/ATAPI driver
Gabe Black1ee2c6d2013-08-09 04:27:35 -070073libc-$(CONFIG_LP_STORAGE) += storage/storage.c
74libc-$(CONFIG_LP_STORAGE_AHCI) += storage/ahci.c
75libc-$(CONFIG_LP_STORAGE_AHCI) += storage/ahci_common.c
76ifeq ($(CONFIG_LP_STORAGE_ATA),y)
77libc-$(CONFIG_LP_STORAGE_ATA) += storage/ata.c
78libc-$(CONFIG_LP_STORAGE_ATA) += storage/ahci_ata.c
Edward O'Callaghanefc58412014-01-23 08:30:42 +110079endif
Gabe Black1ee2c6d2013-08-09 04:27:35 -070080ifeq ($(CONFIG_LP_STORAGE_ATAPI),y)
81libc-$(CONFIG_LP_STORAGE_ATAPI) += storage/atapi.c
82libc-$(CONFIG_LP_STORAGE_ATAPI) += storage/ahci_atapi.c
Edward O'Callaghanefc58412014-01-23 08:30:42 +110083endif
Nico Huber1f6bd942012-08-30 15:36:57 +020084
Patrick Georgid21f68b2008-09-02 16:06:22 +000085# USB stack
Gabe Black1ee2c6d2013-08-09 04:27:35 -070086libc-$(CONFIG_LP_USB) += usb/usbinit.c
87libc-$(CONFIG_LP_USB) += usb/usb.c
88libc-$(CONFIG_LP_USB) += usb/usb_dev.c
89libc-$(CONFIG_LP_USB) += usb/quirks.c
90libc-$(CONFIG_LP_USB_GEN_HUB) += usb/generic_hub.c
91libc-$(CONFIG_LP_USB_HUB) += usb/usbhub.c
92libc-$(CONFIG_LP_USB_UHCI) += usb/uhci.c
93libc-$(CONFIG_LP_USB_UHCI) += usb/uhci_rh.c
94libc-$(CONFIG_LP_USB_OHCI) += usb/ohci.c
95libc-$(CONFIG_LP_USB_OHCI) += usb/ohci_rh.c
96libc-$(CONFIG_LP_USB_EHCI) += usb/ehci.c
97libc-$(CONFIG_LP_USB_EHCI) += usb/ehci_rh.c
98libc-$(CONFIG_LP_USB_XHCI) += usb/xhci.c
99libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_debug.c
100libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_devconf.c
101libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_events.c
102libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_commands.c
103libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_rh.c
104libc-$(CONFIG_LP_USB_HID) += usb/usbhid.c
105libc-$(CONFIG_LP_USB_MSC) += usb/usbmsc.c
huang lin365250e2014-08-06 16:43:43 +0800106libc-$(CONFIG_LP_USB_DWC2) += usb/dwc2.c
107libc-$(CONFIG_LP_USB_DWC2) += usb/dwc2_rh.c
Patrick Georgid21f68b2008-09-02 16:06:22 +0000108
Patrick Georgi1bd30502015-01-26 20:17:49 +0100109# USB device stack
110libc-$(CONFIG_LP_UDC) += udc/udc.c
111libc-$(CONFIG_LP_UDC_CI) += udc/chipidea.c
huang lin41e24992015-05-20 17:27:10 +0800112libc-$(CONFIG_LP_UDC_DWC2) += udc/dwc2.c
Patrick Georgi1bd30502015-01-26 20:17:49 +0100113
Stefan Reinauer1beabe12010-03-25 18:52:24 +0000114# used by both USB HID and keyboard
Patrick Georgib3db79e2011-04-21 18:48:50 +0200115libc-y += hid.c