2016-01-02 03:08:48 +01:00
|
|
|
#
|
|
|
|
# This file is part of the coreboot project.
|
|
|
|
#
|
|
|
|
# Copyright (C) 2015-2016 Intel Corporation.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SOC_INTEL_QUARK),y)
|
|
|
|
|
2016-02-02 16:17:06 +01:00
|
|
|
subdirs-y += romstage
|
2018-11-13 19:28:07 +01:00
|
|
|
subdirs-y += ../../../cpu/x86/mtrr
|
2016-01-02 03:08:48 +01:00
|
|
|
subdirs-y += ../../../cpu/x86/tsc
|
|
|
|
|
2016-06-06 03:48:31 +02:00
|
|
|
bootblock-y += bootblock/esram_init.S
|
|
|
|
bootblock-y += bootblock/bootblock.c
|
|
|
|
bootblock-y += i2c.c
|
|
|
|
bootblock-y += reg_access.c
|
|
|
|
bootblock-y += tsc_freq.c
|
|
|
|
bootblock-y += uart_common.c
|
|
|
|
|
2017-01-04 17:26:53 +01:00
|
|
|
verstage-y += i2c.c
|
|
|
|
verstage-y += reg_access.c
|
|
|
|
verstage-y += tsc_freq.c
|
|
|
|
verstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c
|
|
|
|
|
2016-05-30 23:06:25 +02:00
|
|
|
romstage-y += i2c.c
|
2016-01-02 03:08:48 +01:00
|
|
|
romstage-y += memmap.c
|
2016-05-02 23:31:02 +02:00
|
|
|
romstage-y += reg_access.c
|
2017-04-02 05:33:58 +02:00
|
|
|
romstage-$(CONFIG_STORAGE_TEST) += storage_test.c
|
2016-02-07 23:37:13 +01:00
|
|
|
romstage-y += tsc_freq.c
|
2016-02-17 17:47:58 +01:00
|
|
|
romstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c
|
2019-10-24 00:19:45 +02:00
|
|
|
romstage-y += reset.c
|
2016-07-25 19:14:07 +02:00
|
|
|
|
2019-10-24 00:19:45 +02:00
|
|
|
postcar-y += fsp_params.c
|
2016-07-25 19:14:07 +02:00
|
|
|
postcar-y += i2c.c
|
|
|
|
postcar-y += reg_access.c
|
|
|
|
postcar-y += tsc_freq.c
|
|
|
|
postcar-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c
|
2016-01-02 03:08:48 +01:00
|
|
|
|
2016-02-21 02:15:33 +01:00
|
|
|
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c
|
2016-02-08 16:12:30 +01:00
|
|
|
ramstage-y += chip.c
|
2016-05-22 18:01:41 +02:00
|
|
|
ramstage-y += ehci.c
|
2019-10-24 00:19:45 +02:00
|
|
|
ramstage-y += fsp_params.c
|
2016-05-16 00:12:56 +02:00
|
|
|
ramstage-y += gpio_i2c.c
|
2016-05-30 23:06:25 +02:00
|
|
|
ramstage-y += i2c.c
|
2016-05-23 00:34:11 +02:00
|
|
|
ramstage-y += lpc.c
|
2016-02-15 00:10:35 +01:00
|
|
|
ramstage-y += northcluster.c
|
2016-05-02 23:31:02 +02:00
|
|
|
ramstage-y += reg_access.c
|
2019-10-24 00:19:45 +02:00
|
|
|
ramstage-y += reset.c
|
2017-04-02 05:33:58 +02:00
|
|
|
ramstage-y += sd.c
|
2017-05-24 22:23:26 +02:00
|
|
|
ramstage-y += spi.c
|
|
|
|
ramstage-y += spi_debug.c
|
2017-04-02 05:33:58 +02:00
|
|
|
ramstage-$(CONFIG_STORAGE_TEST) += storage_test.c
|
2016-02-07 23:37:13 +01:00
|
|
|
ramstage-y += tsc_freq.c
|
2016-02-17 17:47:58 +01:00
|
|
|
ramstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c
|
2016-02-07 23:37:13 +01:00
|
|
|
ramstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart.c
|
2016-01-02 03:08:48 +01:00
|
|
|
|
2016-02-08 16:12:30 +01:00
|
|
|
CPPFLAGS_common += -I$(src)/soc/intel/quark
|
2016-01-02 03:08:48 +01:00
|
|
|
CPPFLAGS_common += -I$(src)/soc/intel/quark/include
|
2016-07-25 16:41:54 +02:00
|
|
|
CPPFLAGS_common += -I$(src)/soc/intel/quark/include/soc/fsp
|
2016-01-02 03:08:48 +01:00
|
|
|
|
|
|
|
# Chipset microcode path
|
|
|
|
CPPFLAGS_common += -I3rdparty/blobs/soc/intel/quark
|
|
|
|
|
2016-07-25 19:14:07 +02:00
|
|
|
# Since FSP-M runs in CAR we need to relocate it to a specific address
|
2019-11-01 12:43:58 +01:00
|
|
|
$(FSP_M_CBFS)-options := -b $(CONFIG_FSP_ESRAM_LOC)
|
2016-07-25 19:14:07 +02:00
|
|
|
|
2016-02-07 19:42:14 +01:00
|
|
|
# Add the FSP binary to the CBFS image
|
|
|
|
cbfs-files-$(CONFIG_ADD_FSP_RAW_BIN) += fsp.bin
|
|
|
|
fsp.bin-file := $(call strip_quotes,$(CONFIG_FSP_FILE))
|
|
|
|
fsp.bin-position := $(CONFIG_FSP_LOC)
|
|
|
|
fsp.bin-type := raw
|
|
|
|
|
2016-02-02 16:17:06 +01:00
|
|
|
# Add the chipset microcode file to the CBFS image
|
|
|
|
cbfs-files-$(CONFIG_ADD_RMU_FILE) += rmu.bin
|
|
|
|
rmu.bin-file := $(call strip_quotes,$(CONFIG_RMU_FILE))
|
|
|
|
rmu.bin-position := $(CONFIG_RMU_LOC)
|
|
|
|
rmu.bin-type := raw
|
|
|
|
|
2016-01-02 03:08:48 +01:00
|
|
|
endif # CONFIG_SOC_INTEL_QUARK
|