Uwe Hermann | 661e380 | 2008-03-21 18:37:23 +0000 | [diff] [blame] | 1 | ## |
| 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 Reinauer | 6986358 | 2008-08-08 13:45:03 +0000 | [diff] [blame] | 6 | ## Copyright (C) 2008 coresystems GmbH |
Uwe Hermann | 661e380 | 2008-03-21 18:37:23 +0000 | [diff] [blame] | 7 | ## |
| 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 Hermann | 0b53ec3d | 2008-04-15 17:24:08 +0000 | [diff] [blame] | 31 | |
Gabe Black | 1ee2c6d | 2013-08-09 04:27:35 -0700 | [diff] [blame] | 32 | libc-$(CONFIG_LP_PCI) += pci.c |
Stefan Reinauer | 6986358 | 2008-08-08 13:45:03 +0000 | [diff] [blame] | 33 | |
Gabe Black | 1ee2c6d | 2013-08-09 04:27:35 -0700 | [diff] [blame] | 34 | libc-$(CONFIG_LP_SPEAKER) += speaker.c |
Jordan Crouse | f6145c3 | 2008-03-19 23:56:58 +0000 | [diff] [blame] | 35 | |
Gabe Black | a6aecc4 | 2014-04-10 01:07:28 -0700 | [diff] [blame] | 36 | libc-$(CONFIG_LP_8250_SERIAL_CONSOLE) += serial/8250.c |
| 37 | libc-$(CONFIG_LP_S5P_SERIAL_CONSOLE) += serial/s5p.c |
Julius Werner | 120aec0 | 2014-10-22 14:12:50 -0700 | [diff] [blame] | 38 | libc-$(CONFIG_LP_8250_MMIO32_SERIAL_CONSOLE) += serial/8250_mmio32.c |
Vadim Bendebury | 897123a | 2014-05-27 18:28:59 -0700 | [diff] [blame] | 39 | libc-$(CONFIG_LP_IPQ806X_SERIAL_CONSOLE) += serial/ipq806x.c |
Daisuke Nojiri | f8c8703 | 2014-10-09 09:56:43 -0700 | [diff] [blame] | 40 | libc-$(CONFIG_LP_BG4CD_SERIAL_CONSOLE) += serial/bg4cd.c |
Daisuke Nojiri | e18c38e3 | 2015-02-02 13:40:22 -0800 | [diff] [blame] | 41 | libc-$(CONFIG_LP_CYGNUS_SERIAL_CONSOLE) += serial/cygnus.c |
Gabe Black | 1ee2c6d | 2013-08-09 04:27:35 -0700 | [diff] [blame] | 42 | libc-$(CONFIG_LP_PC_KEYBOARD) += keyboard.c |
Stefan Reinauer | 6986358 | 2008-08-08 13:45:03 +0000 | [diff] [blame] | 43 | |
Gabe Black | 1ee2c6d | 2013-08-09 04:27:35 -0700 | [diff] [blame] | 44 | libc-$(CONFIG_LP_CBMEM_CONSOLE) += cbmem_console.c |
Gabe Black | a54b6a6 | 2012-09-29 00:21:27 -0700 | [diff] [blame] | 45 | |
Gabe Black | 1ee2c6d | 2013-08-09 04:27:35 -0700 | [diff] [blame] | 46 | libc-$(CONFIG_LP_NVRAM) += nvram.c |
| 47 | libc-$(CONFIG_LP_NVRAM) += options.c |
Jordan Crouse | 30939bd | 2008-04-10 22:49:02 +0000 | [diff] [blame] | 48 | |
Gabe Black | d4d29a1 | 2014-04-10 02:36:49 -0700 | [diff] [blame] | 49 | # Timer drivers |
| 50 | libc-$(CONFIG_LP_TIMER_MCT) += timer/mct.c |
| 51 | libc-$(CONFIG_LP_TIMER_RDTSC) += timer/rdtsc.c |
| 52 | libc-$(CONFIG_LP_TIMER_TEGRA_1US) += timer/tegra_1us.c |
Vadim Bendebury | 8ec74a3 | 2014-05-21 16:28:57 -0700 | [diff] [blame] | 53 | libc-$(CONFIG_LP_TIMER_IPQ806X) += timer/ipq806x.c |
huang lin | ab69984 | 2014-06-20 11:34:46 +0800 | [diff] [blame] | 54 | libc-$(CONFIG_LP_TIMER_RK) += timer/rktimer.c |
Ionela Voinescu | ce22c02 | 2014-09-24 17:05:33 +0100 | [diff] [blame] | 55 | libc-$(CONFIG_LP_TIMER_BG4CD) += timer/bg4cd.c |
| 56 | libc-$(CONFIG_LP_TIMER_IMG_PISTACHIO) += timer/img_pistachio.c |
Daisuke Nojiri | e18c38e3 | 2015-02-02 13:40:22 -0800 | [diff] [blame] | 57 | libc-$(CONFIG_LP_TIMER_CYGNUS) += timer/cygnus.c |
Gabe Black | d4d29a1 | 2014-04-10 02:36:49 -0700 | [diff] [blame] | 58 | |
Jordan Crouse | 30939bd | 2008-04-10 22:49:02 +0000 | [diff] [blame] | 59 | # Video console drivers |
Gabe Black | 1ee2c6d | 2013-08-09 04:27:35 -0700 | [diff] [blame] | 60 | libc-$(CONFIG_LP_VIDEO_CONSOLE) += video/video.c |
| 61 | libc-$(CONFIG_LP_VGA_VIDEO_CONSOLE) += video/vga.c |
Jordan Crouse | 5431553 | 2008-04-11 15:48:21 +0000 | [diff] [blame] | 62 | |
Peter Stuge | 4b1971c | 2008-10-08 14:47:41 +0000 | [diff] [blame] | 63 | # Geode LX console drivers |
Gabe Black | 1ee2c6d | 2013-08-09 04:27:35 -0700 | [diff] [blame] | 64 | libc-$(CONFIG_LP_GEODELX_VIDEO_CONSOLE) += video/geodelx.c |
| 65 | libc-$(CONFIG_LP_GEODELX_VIDEO_CONSOLE) += video/font8x16.c |
Patrick Georgi | d21f68b | 2008-09-02 16:06:22 +0000 | [diff] [blame] | 66 | |
Stefan Reinauer | b700254 | 2010-03-25 18:56:26 +0000 | [diff] [blame] | 67 | # coreboot generic framebuffer driver |
Nico Huber | cbe3c70 | 2014-10-12 16:37:42 +0200 | [diff] [blame] | 68 | libc-$(CONFIG_LP_COREBOOT_VIDEO_CONSOLE) += video/corebootfb.c |
| 69 | libc-$(CONFIG_LP_COREBOOT_VIDEO_CONSOLE) += video/font8x16.c |
Stefan Reinauer | b700254 | 2010-03-25 18:56:26 +0000 | [diff] [blame] | 70 | |
Edward O'Callaghan | efc5841 | 2014-01-23 08:30:42 +1100 | [diff] [blame] | 71 | # AHCI/ATAPI driver |
Gabe Black | 1ee2c6d | 2013-08-09 04:27:35 -0700 | [diff] [blame] | 72 | libc-$(CONFIG_LP_STORAGE) += storage/storage.c |
| 73 | libc-$(CONFIG_LP_STORAGE_AHCI) += storage/ahci.c |
| 74 | libc-$(CONFIG_LP_STORAGE_AHCI) += storage/ahci_common.c |
| 75 | ifeq ($(CONFIG_LP_STORAGE_ATA),y) |
| 76 | libc-$(CONFIG_LP_STORAGE_ATA) += storage/ata.c |
| 77 | libc-$(CONFIG_LP_STORAGE_ATA) += storage/ahci_ata.c |
Edward O'Callaghan | efc5841 | 2014-01-23 08:30:42 +1100 | [diff] [blame] | 78 | endif |
Gabe Black | 1ee2c6d | 2013-08-09 04:27:35 -0700 | [diff] [blame] | 79 | ifeq ($(CONFIG_LP_STORAGE_ATAPI),y) |
| 80 | libc-$(CONFIG_LP_STORAGE_ATAPI) += storage/atapi.c |
| 81 | libc-$(CONFIG_LP_STORAGE_ATAPI) += storage/ahci_atapi.c |
Edward O'Callaghan | efc5841 | 2014-01-23 08:30:42 +1100 | [diff] [blame] | 82 | endif |
Nico Huber | 1f6bd94 | 2012-08-30 15:36:57 +0200 | [diff] [blame] | 83 | |
Patrick Georgi | d21f68b | 2008-09-02 16:06:22 +0000 | [diff] [blame] | 84 | # USB stack |
Gabe Black | 1ee2c6d | 2013-08-09 04:27:35 -0700 | [diff] [blame] | 85 | libc-$(CONFIG_LP_USB) += usb/usbinit.c |
| 86 | libc-$(CONFIG_LP_USB) += usb/usb.c |
| 87 | libc-$(CONFIG_LP_USB) += usb/usb_dev.c |
| 88 | libc-$(CONFIG_LP_USB) += usb/quirks.c |
| 89 | libc-$(CONFIG_LP_USB_GEN_HUB) += usb/generic_hub.c |
| 90 | libc-$(CONFIG_LP_USB_HUB) += usb/usbhub.c |
| 91 | libc-$(CONFIG_LP_USB_UHCI) += usb/uhci.c |
| 92 | libc-$(CONFIG_LP_USB_UHCI) += usb/uhci_rh.c |
| 93 | libc-$(CONFIG_LP_USB_OHCI) += usb/ohci.c |
| 94 | libc-$(CONFIG_LP_USB_OHCI) += usb/ohci_rh.c |
| 95 | libc-$(CONFIG_LP_USB_EHCI) += usb/ehci.c |
| 96 | libc-$(CONFIG_LP_USB_EHCI) += usb/ehci_rh.c |
| 97 | libc-$(CONFIG_LP_USB_XHCI) += usb/xhci.c |
| 98 | libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_debug.c |
| 99 | libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_devconf.c |
| 100 | libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_events.c |
| 101 | libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_commands.c |
| 102 | libc-$(CONFIG_LP_USB_XHCI) += usb/xhci_rh.c |
| 103 | libc-$(CONFIG_LP_USB_HID) += usb/usbhid.c |
| 104 | libc-$(CONFIG_LP_USB_MSC) += usb/usbmsc.c |
huang lin | 365250e | 2014-08-06 16:43:43 +0800 | [diff] [blame] | 105 | libc-$(CONFIG_LP_USB_DWC2) += usb/dwc2.c |
| 106 | libc-$(CONFIG_LP_USB_DWC2) += usb/dwc2_rh.c |
Patrick Georgi | d21f68b | 2008-09-02 16:06:22 +0000 | [diff] [blame] | 107 | |
Patrick Georgi | 1bd3050 | 2015-01-26 20:17:49 +0100 | [diff] [blame^] | 108 | # USB device stack |
| 109 | libc-$(CONFIG_LP_UDC) += udc/udc.c |
| 110 | libc-$(CONFIG_LP_UDC_CI) += udc/chipidea.c |
| 111 | |
Stefan Reinauer | 1beabe1 | 2010-03-25 18:52:24 +0000 | [diff] [blame] | 112 | # used by both USB HID and keyboard |
Patrick Georgi | b3db79e | 2011-04-21 18:48:50 +0200 | [diff] [blame] | 113 | libc-y += hid.c |