Lee Leahy | 2ed7eb7 | 2016-01-01 18:08:48 -0800 | [diff] [blame] | 1 | # |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
| 4 | # Copyright (C) 2015-2016 Intel Corporation. |
| 5 | # |
| 6 | # This program is free software; you can redistribute it and/or modify |
| 7 | # it under the terms of the GNU General Public License as published by |
| 8 | # the Free Software Foundation; version 2 of the License. |
| 9 | # |
| 10 | # This program is distributed in the hope that it will be useful, |
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | # GNU General Public License for more details. |
| 14 | # |
| 15 | |
| 16 | ifeq ($(CONFIG_SOC_INTEL_QUARK),y) |
| 17 | |
Lee Leahy | 9fd0895 | 2016-02-02 07:17:06 -0800 | [diff] [blame] | 18 | subdirs-y += romstage |
Nico Huber | d67edca | 2018-11-13 19:28:07 +0100 | [diff] [blame] | 19 | subdirs-y += ../../../cpu/x86/mtrr |
Lee Leahy | 2ed7eb7 | 2016-01-01 18:08:48 -0800 | [diff] [blame] | 20 | subdirs-y += ../../../cpu/x86/tsc |
| 21 | |
Lee Leahy | ce9e21a | 2016-06-05 18:48:31 -0700 | [diff] [blame] | 22 | bootblock-y += bootblock/esram_init.S |
| 23 | bootblock-y += bootblock/bootblock.c |
| 24 | bootblock-y += i2c.c |
| 25 | bootblock-y += reg_access.c |
| 26 | bootblock-y += tsc_freq.c |
| 27 | bootblock-y += uart_common.c |
| 28 | |
Lee Leahy | b8f5323 | 2017-01-04 08:26:53 -0800 | [diff] [blame] | 29 | verstage-y += i2c.c |
| 30 | verstage-y += reg_access.c |
| 31 | verstage-y += tsc_freq.c |
| 32 | verstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c |
| 33 | |
Lee Leahy | a5258cb | 2016-05-30 14:06:25 -0700 | [diff] [blame] | 34 | romstage-y += i2c.c |
Lee Leahy | 2ed7eb7 | 2016-01-01 18:08:48 -0800 | [diff] [blame] | 35 | romstage-y += memmap.c |
Lee Leahy | 4dd34ee | 2016-05-02 14:31:02 -0700 | [diff] [blame] | 36 | romstage-y += reg_access.c |
Lee Leahy | 16bc9ba | 2017-04-01 20:33:58 -0700 | [diff] [blame] | 37 | romstage-$(CONFIG_STORAGE_TEST) += storage_test.c |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 38 | romstage-y += tsc_freq.c |
Lee Leahy | 654fd07 | 2016-02-17 08:47:58 -0800 | [diff] [blame] | 39 | romstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c |
Michael Niewöhner | b17f3d3 | 2019-10-24 00:19:45 +0200 | [diff] [blame] | 40 | romstage-y += reset.c |
Lee Leahy | f26fc0f | 2016-07-25 10:14:07 -0700 | [diff] [blame] | 41 | |
Michael Niewöhner | b17f3d3 | 2019-10-24 00:19:45 +0200 | [diff] [blame] | 42 | postcar-y += fsp_params.c |
Lee Leahy | f26fc0f | 2016-07-25 10:14:07 -0700 | [diff] [blame] | 43 | postcar-y += i2c.c |
Lee Leahy | f26fc0f | 2016-07-25 10:14:07 -0700 | [diff] [blame] | 44 | postcar-y += reg_access.c |
| 45 | postcar-y += tsc_freq.c |
| 46 | postcar-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c |
Lee Leahy | 2ed7eb7 | 2016-01-01 18:08:48 -0800 | [diff] [blame] | 47 | |
Lee Leahy | d3de85c | 2016-02-20 17:15:33 -0800 | [diff] [blame] | 48 | ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c |
Lee Leahy | d4edacb | 2016-02-08 07:12:30 -0800 | [diff] [blame] | 49 | ramstage-y += chip.c |
Lee Leahy | 6923e8c | 2016-05-22 09:01:41 -0700 | [diff] [blame] | 50 | ramstage-y += ehci.c |
Michael Niewöhner | b17f3d3 | 2019-10-24 00:19:45 +0200 | [diff] [blame] | 51 | ramstage-y += fsp_params.c |
Lee Leahy | ac690b1 | 2016-05-15 15:12:56 -0700 | [diff] [blame] | 52 | ramstage-y += gpio_i2c.c |
Lee Leahy | a5258cb | 2016-05-30 14:06:25 -0700 | [diff] [blame] | 53 | ramstage-y += i2c.c |
Lee Leahy | 773ee2b | 2016-05-22 15:34:11 -0700 | [diff] [blame] | 54 | ramstage-y += lpc.c |
Lee Leahy | 535333d | 2016-02-14 15:10:35 -0800 | [diff] [blame] | 55 | ramstage-y += northcluster.c |
Lee Leahy | 4dd34ee | 2016-05-02 14:31:02 -0700 | [diff] [blame] | 56 | ramstage-y += reg_access.c |
Michael Niewöhner | b17f3d3 | 2019-10-24 00:19:45 +0200 | [diff] [blame] | 57 | ramstage-y += reset.c |
Lee Leahy | 16bc9ba | 2017-04-01 20:33:58 -0700 | [diff] [blame] | 58 | ramstage-y += sd.c |
Lee Leahy | d935109 | 2017-05-24 13:23:26 -0700 | [diff] [blame] | 59 | ramstage-y += spi.c |
| 60 | ramstage-y += spi_debug.c |
Lee Leahy | 16bc9ba | 2017-04-01 20:33:58 -0700 | [diff] [blame] | 61 | ramstage-$(CONFIG_STORAGE_TEST) += storage_test.c |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 62 | ramstage-y += tsc_freq.c |
Lee Leahy | 654fd07 | 2016-02-17 08:47:58 -0800 | [diff] [blame] | 63 | ramstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 64 | ramstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart.c |
Lee Leahy | 2ed7eb7 | 2016-01-01 18:08:48 -0800 | [diff] [blame] | 65 | |
Lee Leahy | d4edacb | 2016-02-08 07:12:30 -0800 | [diff] [blame] | 66 | CPPFLAGS_common += -I$(src)/soc/intel/quark |
Lee Leahy | 2ed7eb7 | 2016-01-01 18:08:48 -0800 | [diff] [blame] | 67 | CPPFLAGS_common += -I$(src)/soc/intel/quark/include |
Lee Leahy | 102f625 | 2016-07-25 07:41:54 -0700 | [diff] [blame] | 68 | CPPFLAGS_common += -I$(src)/soc/intel/quark/include/soc/fsp |
Lee Leahy | 2ed7eb7 | 2016-01-01 18:08:48 -0800 | [diff] [blame] | 69 | |
| 70 | # Chipset microcode path |
| 71 | CPPFLAGS_common += -I3rdparty/blobs/soc/intel/quark |
| 72 | |
Lee Leahy | f26fc0f | 2016-07-25 10:14:07 -0700 | [diff] [blame] | 73 | # Since FSP-M runs in CAR we need to relocate it to a specific address |
| 74 | $(CONFIG_FSP_M_CBFS)-options := -b $(CONFIG_FSP_ESRAM_LOC) |
| 75 | |
Lee Leahy | a7ba56e | 2016-02-07 10:42:14 -0800 | [diff] [blame] | 76 | # Add the FSP binary to the CBFS image |
| 77 | cbfs-files-$(CONFIG_ADD_FSP_RAW_BIN) += fsp.bin |
| 78 | fsp.bin-file := $(call strip_quotes,$(CONFIG_FSP_FILE)) |
| 79 | fsp.bin-position := $(CONFIG_FSP_LOC) |
| 80 | fsp.bin-type := raw |
| 81 | |
Lee Leahy | 9fd0895 | 2016-02-02 07:17:06 -0800 | [diff] [blame] | 82 | # Add the chipset microcode file to the CBFS image |
| 83 | cbfs-files-$(CONFIG_ADD_RMU_FILE) += rmu.bin |
| 84 | rmu.bin-file := $(call strip_quotes,$(CONFIG_RMU_FILE)) |
| 85 | rmu.bin-position := $(CONFIG_RMU_LOC) |
| 86 | rmu.bin-type := raw |
| 87 | |
Lee Leahy | 2ed7eb7 | 2016-01-01 18:08:48 -0800 | [diff] [blame] | 88 | endif # CONFIG_SOC_INTEL_QUARK |