2015-05-13 03:19:47 +02:00
|
|
|
ifeq ($(CONFIG_SOC_INTEL_SKYLAKE),y)
|
|
|
|
|
2015-11-24 19:35:06 +01:00
|
|
|
subdirs-y += nhlt
|
2015-05-13 03:19:47 +02:00
|
|
|
subdirs-y += romstage
|
2015-05-13 03:23:27 +02:00
|
|
|
subdirs-y += ../../../cpu/intel/microcode
|
|
|
|
subdirs-y += ../../../cpu/intel/turbo
|
2015-05-13 03:19:47 +02:00
|
|
|
subdirs-y += ../../../cpu/x86/lapic
|
|
|
|
subdirs-y += ../../../cpu/x86/mtrr
|
|
|
|
subdirs-y += ../../../cpu/x86/smm
|
|
|
|
subdirs-y += ../../../cpu/x86/tsc
|
|
|
|
|
2016-07-18 10:43:52 +02:00
|
|
|
bootblock-y += bootblock/bootblock.c
|
|
|
|
bootblock-y += bootblock/cache_as_ram.S
|
2016-07-23 21:06:12 +02:00
|
|
|
bootblock-y += bootblock/cpu.c
|
2016-08-11 11:26:28 +02:00
|
|
|
bootblock-y += bootblock/i2c.c
|
2016-07-23 21:06:12 +02:00
|
|
|
bootblock-y += bootblock/pch.c
|
2016-08-11 11:26:28 +02:00
|
|
|
bootblock-y += bootblock/report_platform.c
|
|
|
|
bootblock-y += bootblock/smbus.c
|
2016-07-23 21:06:12 +02:00
|
|
|
bootblock-y += bootblock/systemagent.c
|
2016-08-12 00:13:40 +02:00
|
|
|
bootblock-y += flash_controller.c
|
2016-08-02 04:37:38 +02:00
|
|
|
bootblock-$(CONFIG_UART_DEBUG) += bootblock/uart.c
|
2016-08-11 11:26:28 +02:00
|
|
|
bootblock-$(CONFIG_UART_DEBUG) += uart_debug.c
|
2016-07-23 21:06:12 +02:00
|
|
|
bootblock-y += gpio.c
|
|
|
|
bootblock-y += monotonic_timer.c
|
|
|
|
bootblock-y += pch.c
|
|
|
|
bootblock-y += pcr.c
|
|
|
|
bootblock-y += pmutil.c
|
|
|
|
bootblock-y += tsc_freq.c
|
2016-07-18 10:43:52 +02:00
|
|
|
|
2016-08-12 00:13:40 +02:00
|
|
|
verstage-y += flash_controller.c
|
2016-08-24 15:49:29 +02:00
|
|
|
verstage-y += monotonic_timer.c
|
2016-08-12 00:13:40 +02:00
|
|
|
verstage-y += pch.c
|
2016-10-28 16:54:02 +02:00
|
|
|
verstage-$(CONFIG_UART_DEBUG) += uart_debug.c
|
2016-10-26 05:05:31 +02:00
|
|
|
verstage-y += pmutil.c
|
|
|
|
verstage-y += bootblock/i2c.c
|
2015-10-07 23:10:43 +02:00
|
|
|
|
2015-07-14 13:16:40 +02:00
|
|
|
romstage-y += flash_controller.c
|
2015-05-13 03:23:27 +02:00
|
|
|
romstage-y += gpio.c
|
|
|
|
romstage-y += memmap.c
|
2015-08-28 08:58:18 +02:00
|
|
|
romstage-y += monotonic_timer.c
|
2016-08-19 09:03:42 +02:00
|
|
|
romstage-y += me.c
|
2015-05-13 03:23:27 +02:00
|
|
|
romstage-y += pch.c
|
|
|
|
romstage-y += pcr.c
|
|
|
|
romstage-y += pei_data.c
|
|
|
|
romstage-y += pmutil.c
|
2016-08-23 11:01:23 +02:00
|
|
|
romstage-$(CONFIG_PLATFORM_USES_FSP2_0) += reset.c
|
2015-05-13 03:23:27 +02:00
|
|
|
romstage-y += smbus_common.c
|
|
|
|
romstage-y += tsc_freq.c
|
2015-07-30 23:52:56 +02:00
|
|
|
romstage-$(CONFIG_UART_DEBUG) += uart_debug.c
|
2015-05-13 03:23:27 +02:00
|
|
|
|
|
|
|
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c
|
2016-08-23 11:01:23 +02:00
|
|
|
ramstage-$(CONFIG_PLATFORM_USES_FSP1_1) += chip.c
|
|
|
|
ramstage-$(CONFIG_PLATFORM_USES_FSP2_0) += chip_fsp20.c
|
2015-05-13 03:19:47 +02:00
|
|
|
ramstage-y += cpu.c
|
|
|
|
ramstage-y += cpu_info.c
|
2016-05-11 00:42:42 +02:00
|
|
|
ramstage-y += dsp.c
|
2015-05-13 03:23:27 +02:00
|
|
|
ramstage-y += elog.c
|
2015-05-13 03:19:47 +02:00
|
|
|
ramstage-y += finalize.c
|
2015-05-13 03:23:27 +02:00
|
|
|
ramstage-y += flash_controller.c
|
2015-05-13 03:19:47 +02:00
|
|
|
ramstage-y += gpio.c
|
2016-05-11 00:31:22 +02:00
|
|
|
ramstage-y += i2c.c
|
2015-05-13 03:19:47 +02:00
|
|
|
ramstage-y += igd.c
|
2016-08-30 17:17:13 +02:00
|
|
|
ramstage-y += irq.c
|
2015-05-13 03:19:47 +02:00
|
|
|
ramstage-y += lpc.c
|
2016-08-19 09:03:42 +02:00
|
|
|
ramstage-y += me.c
|
2015-05-13 03:19:47 +02:00
|
|
|
ramstage-y += memmap.c
|
|
|
|
ramstage-y += monotonic_timer.c
|
2016-08-23 11:01:23 +02:00
|
|
|
ramstage-$(CONFIG_PLATFORM_USES_FSP1_1) += opregion.c
|
2015-05-13 03:19:47 +02:00
|
|
|
ramstage-y += pch.c
|
|
|
|
ramstage-y += pcie.c
|
2015-05-13 03:23:27 +02:00
|
|
|
ramstage-y += pcr.c
|
2015-05-13 03:19:47 +02:00
|
|
|
ramstage-y += pei_data.c
|
2015-05-13 03:23:27 +02:00
|
|
|
ramstage-y += pmc.c
|
2015-05-13 03:19:47 +02:00
|
|
|
ramstage-y += pmutil.c
|
2016-08-23 11:01:23 +02:00
|
|
|
ramstage-$(CONFIG_PLATFORM_USES_FSP2_0) += reset.c
|
skylake: Add SD card device to configure card detect GPIO
Add a PCI driver for the skylake SD card device and have it generate
an entry in the SSDT for the card detect GPIO if it is provided by the
mainboard in devicetree.
This sets up a card detect GPIO configuration that will trigger an
interrupt on both edges with a 100ms debounce timeout and can wake the
SD controller from D3 state.
The GpioInt() entry is bound to the "cd-gpio" device property which will
be consumed by the kernel driver.
The resulting ACPI output in the SSDT will be combined with the SDXC
device declaration in the DSDT.
Example:
Scope (\_SB.PCI0.SDXC)
{
Name (_CRS, ResourceTemplate () {
GpioInt (Edge, ActiveBoth, SharedAndWake, PullNone, 10000,
"\\_SB.PCI0.GPIO", 0, ResourceConsumer) { 35 }
})
Name (_DSD, Package () {
ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package () {
Package () { "cd-gpio", Package () { \_SB.PCI0.SDXC, 0, 0, 1 } }
}
})
}
Change-Id: Ie4c1bfadd962cf55a987edb9ef86e92174205770
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/14995
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-05-11 00:56:16 +02:00
|
|
|
ramstage-y += sd.c
|
2015-05-13 03:19:47 +02:00
|
|
|
ramstage-y += smbus.c
|
|
|
|
ramstage-y += smbus_common.c
|
|
|
|
ramstage-y += smi.c
|
|
|
|
ramstage-y += smmrelocate.c
|
|
|
|
ramstage-y += systemagent.c
|
|
|
|
ramstage-y += tsc_freq.c
|
2015-05-13 03:23:27 +02:00
|
|
|
ramstage-y += uart.c
|
2015-07-30 23:52:56 +02:00
|
|
|
ramstage-$(CONFIG_UART_DEBUG) += uart_debug.c
|
2015-12-14 23:44:26 +01:00
|
|
|
ramstage-y += vr_config.c
|
2015-05-13 03:19:47 +02:00
|
|
|
ramstage-y += xhci.c
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
smm-y += cpu_info.c
|
|
|
|
smm-y += gpio.c
|
|
|
|
smm-y += monotonic_timer.c
|
|
|
|
smm-y += pcr.c
|
|
|
|
smm-y += pch.c
|
|
|
|
smm-y += pmutil.c
|
|
|
|
smm-y += smihandler.c
|
|
|
|
smm-$(CONFIG_SPI_FLASH_SMM) += flash_controller.c
|
|
|
|
smm-y += tsc_freq.c
|
2015-07-30 23:52:56 +02:00
|
|
|
smm-$(CONFIG_UART_DEBUG) += uart_debug.c
|
2015-05-13 03:23:27 +02:00
|
|
|
|
2015-09-10 07:38:06 +02:00
|
|
|
# cpu_microcode_bins += ???
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
CPPFLAGS_common += -I$(src)/soc/intel/skylake
|
|
|
|
CPPFLAGS_common += -I$(src)/soc/intel/skylake/include
|
2016-08-23 11:01:23 +02:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_PLATFORM_USES_FSP1_1),y)
|
|
|
|
CPPFLAGS_common += -I$(src)/soc/intel/skylake/include/fsp11
|
2015-11-19 00:32:27 +01:00
|
|
|
CPPFLAGS_common += -I$(src)/vendorcode/intel/fsp/fsp1_1/skylake
|
2016-08-23 11:01:23 +02:00
|
|
|
else
|
|
|
|
CPPFLAGS_common += -I$(src)/soc/intel/skylake/include/fsp20
|
|
|
|
CPPFLAGS_common += -I$(src)/vendorcode/intel/fsp/fsp2_0/skykabylake
|
|
|
|
endif
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-09-10 00:05:06 +02:00
|
|
|
# Currently used for microcode path.
|
2016-09-02 10:37:39 +02:00
|
|
|
CPPFLAGS_common += -I3rdparty/blobs/mainboard/$(MAINBOARDDIR)
|
2015-05-13 03:23:27 +02:00
|
|
|
|
2015-12-15 00:53:21 +01:00
|
|
|
ROMCCFLAGS := -mcpu=p4 -fno-simplify-phi -O2
|
|
|
|
|
2015-05-13 03:19:47 +02:00
|
|
|
endif
|