Alexandru Gagniuc | 7e86cd4 | 2015-10-06 10:33:49 -0700 | [diff] [blame] | 1 | ifeq ($(CONFIG_SOC_INTEL_APOLLOLAKE),y) |
| 2 | |
Michael Niewöhner | 7736bfc | 2019-10-22 23:05:06 +0200 | [diff] [blame] | 3 | subdirs-y += ../../../cpu/intel/common |
Alexandru Gagniuc | 7e86cd4 | 2015-10-06 10:33:49 -0700 | [diff] [blame] | 4 | subdirs-y += ../../../cpu/intel/microcode |
| 5 | subdirs-y += ../../../cpu/intel/turbo |
| 6 | subdirs-y += ../../../cpu/x86/lapic |
| 7 | subdirs-y += ../../../cpu/x86/mtrr |
| 8 | subdirs-y += ../../../cpu/x86/smm |
| 9 | subdirs-y += ../../../cpu/x86/tsc |
Ravi Sarawadi | 9d903a1 | 2016-03-04 21:33:04 -0800 | [diff] [blame] | 10 | subdirs-y += ../../../cpu/x86/cache |
Alexandru Gagniuc | 7e86cd4 | 2015-10-06 10:33:49 -0700 | [diff] [blame] | 11 | |
Alexandru Gagniuc | dfc2b31 | 2015-10-06 17:16:41 -0700 | [diff] [blame] | 12 | bootblock-y += bootblock/bootblock.c |
Praveen hodagatta pranesh | b66757f | 2018-10-23 02:43:05 +0800 | [diff] [blame] | 13 | bootblock-$(CONFIG_FSP_CAR) += fspcar.c |
Aaron Durbin | 595688a | 2016-03-31 11:38:13 -0500 | [diff] [blame] | 14 | bootblock-y += car.c |
Andrey Petrov | fcd51ff | 2016-07-14 17:16:35 -0700 | [diff] [blame] | 15 | bootblock-y += heci.c |
Ravi Sarawadi | 3669a06 | 2018-02-27 13:23:42 -0800 | [diff] [blame] | 16 | bootblock-y += gspi.c |
Rizwan Qureshi | ae6a4b6 | 2017-04-26 21:06:35 +0530 | [diff] [blame] | 17 | bootblock-y += i2c.c |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 18 | bootblock-y += lpc.c |
Andrey Petrov | 5672dcd | 2016-02-12 15:12:43 -0800 | [diff] [blame] | 19 | bootblock-y += mmap_boot.c |
Andrey Petrov | 3dbea29 | 2016-06-14 22:20:28 -0700 | [diff] [blame] | 20 | bootblock-y += pmutil.c |
Furquan Shaikh | 6ac226d | 2016-06-15 17:13:20 -0700 | [diff] [blame] | 21 | bootblock-y += spi.c |
Nico Huber | a96e66a | 2018-11-11 02:51:14 +0100 | [diff] [blame] | 22 | bootblock-y += uart.c |
Brenton Dong | c9b3981 | 2016-10-18 13:57:54 -0700 | [diff] [blame] | 23 | |
Aaron Durbin | 595688a | 2016-03-31 11:38:13 -0500 | [diff] [blame] | 24 | romstage-y += car.c |
Subrata Banik | 1799011 | 2019-08-27 11:01:33 +0530 | [diff] [blame] | 25 | romstage-y += ../../../cpu/intel/car/romstage.c |
Michael Niewöhner | b17f3d3 | 2019-10-24 00:19:45 +0200 | [diff] [blame] | 26 | romstage-y += romstage.c |
Ravi Sarawadi | 3669a06 | 2018-02-27 13:23:42 -0800 | [diff] [blame] | 27 | romstage-y += gspi.c |
Andrey Petrov | fcd51ff | 2016-07-14 17:16:35 -0700 | [diff] [blame] | 28 | romstage-y += heci.c |
Rizwan Qureshi | ae6a4b6 | 2017-04-26 21:06:35 +0530 | [diff] [blame] | 29 | romstage-y += i2c.c |
Nico Huber | a96e66a | 2018-11-11 02:51:14 +0100 | [diff] [blame] | 30 | romstage-y += uart.c |
Andrey Petrov | 491c016 | 2016-03-02 15:09:27 -0800 | [diff] [blame] | 31 | romstage-y += memmap.c |
Aaron Durbin | fc2e741 | 2016-05-12 12:43:37 -0500 | [diff] [blame] | 32 | romstage-y += meminit.c |
Ravi Sarawadi | 09195ac | 2017-07-20 15:11:19 -0700 | [diff] [blame] | 33 | ifeq ($(CONFIG_SOC_INTEL_GLK),y) |
| 34 | romstage-y += meminit_util_glk.c |
| 35 | else |
| 36 | romstage-y += meminit_util_apl.c |
| 37 | endif |
Andrey Petrov | 5672dcd | 2016-02-12 15:12:43 -0800 | [diff] [blame] | 38 | romstage-y += mmap_boot.c |
Hannah Williams | 01bc897 | 2016-02-04 20:13:34 -0800 | [diff] [blame] | 39 | romstage-y += pmutil.c |
Andrey Petrov | 0f593c2 | 2016-06-17 15:30:13 -0700 | [diff] [blame] | 40 | romstage-y += reset.c |
Furquan Shaikh | bae6383 | 2016-06-17 15:50:24 -0700 | [diff] [blame] | 41 | romstage-y += spi.c |
Andrey Petrov | 87fb1a6 | 2016-02-10 17:47:03 -0800 | [diff] [blame] | 42 | |
Aaron Durbin | b3f5418 | 2016-05-26 14:22:34 -0500 | [diff] [blame] | 43 | smm-y += mmap_boot.c |
Nico Huber | 2fe596e | 2019-01-31 14:31:35 +0100 | [diff] [blame] | 44 | smm-y += pmc.c |
Hannah Williams | 01bc897 | 2016-02-04 20:13:34 -0800 | [diff] [blame] | 45 | smm-y += pmutil.c |
Hannah Williams | d9c84ca | 2016-05-13 00:47:14 -0700 | [diff] [blame] | 46 | smm-y += smihandler.c |
Aaron Durbin | b3f5418 | 2016-05-26 14:22:34 -0500 | [diff] [blame] | 47 | smm-y += spi.c |
Nico Huber | a96e66a | 2018-11-11 02:51:14 +0100 | [diff] [blame] | 48 | smm-y += uart.c |
Furquan Shaikh | c83e70e | 2018-06-25 14:29:48 -0700 | [diff] [blame] | 49 | smm-y += elog.c |
Karthikeyan Ramasubramanian | 0f71831 | 2019-07-03 13:02:37 -0600 | [diff] [blame] | 50 | smm-y += xhci.c |
Lance Zhao | f51b127 | 2015-11-09 17:06:34 -0800 | [diff] [blame] | 51 | |
| 52 | ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c |
Ravi Sarawadi | 9d903a1 | 2016-03-04 21:33:04 -0800 | [diff] [blame] | 53 | ramstage-y += cpu.c |
Andrey Petrov | 70efecd | 2016-03-04 21:41:13 -0800 | [diff] [blame] | 54 | ramstage-y += chip.c |
Aaron Durbin | 7d14af8 | 2017-02-07 11:33:56 -0600 | [diff] [blame] | 55 | ramstage-y += cse.c |
Brandon Breitenstein | 3b0e761 | 2016-07-18 15:14:12 -0700 | [diff] [blame] | 56 | ramstage-y += elog.c |
Alexandru Gagniuc | c364019 | 2015-12-15 16:06:15 -0800 | [diff] [blame] | 57 | ramstage-y += graphics.c |
Ravi Sarawadi | 3669a06 | 2018-02-27 13:23:42 -0800 | [diff] [blame] | 58 | ramstage-y += gspi.c |
Andrey Petrov | fcd51ff | 2016-07-14 17:16:35 -0700 | [diff] [blame] | 59 | ramstage-y += heci.c |
Duncan Laurie | ff8bce0 | 2016-06-27 10:57:13 -0700 | [diff] [blame] | 60 | ramstage-y += i2c.c |
Lance Zhao | a7ff9c5 | 2015-11-12 18:19:41 -0800 | [diff] [blame] | 61 | ramstage-y += lpc.c |
Andrey Petrov | 491c016 | 2016-03-02 15:09:27 -0800 | [diff] [blame] | 62 | ramstage-y += memmap.c |
Andrey Petrov | 5672dcd | 2016-02-12 15:12:43 -0800 | [diff] [blame] | 63 | ramstage-y += mmap_boot.c |
Nico Huber | a96e66a | 2018-11-11 02:51:14 +0100 | [diff] [blame] | 64 | ramstage-y += uart.c |
Saurabh Satija | 734aa87 | 2016-06-21 14:22:16 -0700 | [diff] [blame] | 65 | ramstage-y += nhlt.c |
Alexandru Gagniuc | 0581a67 | 2016-02-24 15:08:23 -0800 | [diff] [blame] | 66 | ramstage-y += spi.c |
Subrata Banik | 15129b4 | 2017-11-07 17:50:48 +0530 | [diff] [blame] | 67 | ramstage-y += systemagent.c |
Hannah Williams | 01bc897 | 2016-02-04 20:13:34 -0800 | [diff] [blame] | 68 | ramstage-y += pmutil.c |
Divya Chellap | 0b15b70 | 2017-11-29 18:53:03 +0530 | [diff] [blame] | 69 | ramstage-y += pnpconfig.c |
Hannah Williams | 733b39a | 2016-02-11 13:46:28 -0800 | [diff] [blame] | 70 | ramstage-y += pmc.c |
Andrey Petrov | 0f593c2 | 2016-06-17 15:30:13 -0700 | [diff] [blame] | 71 | ramstage-y += reset.c |
Andrey Petrov | 79fc33a | 2017-01-24 21:56:36 -0800 | [diff] [blame] | 72 | ramstage-y += xdci.c |
Venkateswarlu Vinjamuri | 6dd7b40 | 2017-02-24 15:37:30 -0800 | [diff] [blame] | 73 | ramstage-y += sd.c |
Karthikeyan Ramasubramanian | 0f71831 | 2019-07-03 13:02:37 -0600 | [diff] [blame] | 74 | ramstage-y += xhci.c |
Alexandru Gagniuc | 7e86cd4 | 2015-10-06 10:33:49 -0700 | [diff] [blame] | 75 | |
Aaron Durbin | eebe0e0 | 2016-03-18 11:19:38 -0500 | [diff] [blame] | 76 | postcar-y += memmap.c |
| 77 | postcar-y += mmap_boot.c |
Furquan Shaikh | 0be3da5 | 2016-06-19 23:20:43 -0700 | [diff] [blame] | 78 | postcar-y += spi.c |
Philipp Deppenwiese | 545ed7a | 2018-02-14 16:47:12 +0100 | [diff] [blame] | 79 | postcar-y += i2c.c |
Patrick Georgi | e7864ce | 2018-10-22 14:54:48 +0200 | [diff] [blame] | 80 | postcar-$(CONFIG_RESET_ON_INVALID_RAMSTAGE_CACHE) += heci.c |
| 81 | postcar-$(CONFIG_RESET_ON_INVALID_RAMSTAGE_CACHE) += reset.c |
Nico Huber | a96e66a | 2018-11-11 02:51:14 +0100 | [diff] [blame] | 82 | postcar-y += uart.c |
Philipp Deppenwiese | 2af17af | 2018-11-26 15:04:46 +0100 | [diff] [blame] | 83 | postcar-$(CONFIG_VBOOT_MEASURED_BOOT) += gspi.c |
Aaron Durbin | eebe0e0 | 2016-03-18 11:19:38 -0500 | [diff] [blame] | 84 | |
Furquan Shaikh | b54a2d1 | 2016-06-01 01:55:43 -0700 | [diff] [blame] | 85 | verstage-y += car.c |
Rizwan Qureshi | ae6a4b6 | 2017-04-26 21:06:35 +0530 | [diff] [blame] | 86 | verstage-y += i2c.c |
Ravi Sarawadi | 3669a06 | 2018-02-27 13:23:42 -0800 | [diff] [blame] | 87 | verstage-y += gspi.c |
Andrey Petrov | fcd51ff | 2016-07-14 17:16:35 -0700 | [diff] [blame] | 88 | verstage-y += heci.c |
Aaron Durbin | bef75e7 | 2016-05-26 11:00:44 -0500 | [diff] [blame] | 89 | verstage-y += memmap.c |
| 90 | verstage-y += mmap_boot.c |
Nico Huber | a96e66a | 2018-11-11 02:51:14 +0100 | [diff] [blame] | 91 | verstage-y += uart.c |
Aaron Durbin | bef75e7 | 2016-05-26 11:00:44 -0500 | [diff] [blame] | 92 | verstage-y += pmutil.c |
Andrey Petrov | 0f593c2 | 2016-06-17 15:30:13 -0700 | [diff] [blame] | 93 | verstage-y += reset.c |
Furquan Shaikh | 0be3da5 | 2016-06-19 23:20:43 -0700 | [diff] [blame] | 94 | verstage-y += spi.c |
Aaron Durbin | bef75e7 | 2016-05-26 11:00:44 -0500 | [diff] [blame] | 95 | |
Hannah Williams | 3ff14a0 | 2017-05-05 16:30:22 -0700 | [diff] [blame] | 96 | ifeq ($(CONFIG_SOC_INTEL_GLK),y) |
| 97 | bootblock-y += gpio_glk.c |
| 98 | romstage-y += gpio_glk.c |
| 99 | smm-y += gpio_glk.c |
| 100 | ramstage-y += gpio_glk.c |
| 101 | else |
| 102 | bootblock-y += gpio_apl.c |
| 103 | romstage-y += gpio_apl.c |
| 104 | smm-y += gpio_apl.c |
| 105 | ramstage-y += gpio_apl.c |
| 106 | endif |
| 107 | |
Alexandru Gagniuc | dfc2b31 | 2015-10-06 17:16:41 -0700 | [diff] [blame] | 108 | CPPFLAGS_common += -I$(src)/soc/intel/apollolake/include |
| 109 | |
Andrey Petrov | 79091db7 | 2016-05-17 00:03:27 -0700 | [diff] [blame] | 110 | # Since FSP-M runs in CAR we need to relocate it to a specific address |
| 111 | $(CONFIG_FSP_M_CBFS)-options := -b $(CONFIG_FSP_M_ADDR) |
| 112 | |
Aaron Durbin | 5c9df70 | 2018-04-18 01:05:25 -0600 | [diff] [blame] | 113 | # Handle GLK paging requirements |
| 114 | ifeq ($(CONFIG_PAGING_IN_CACHE_AS_RAM),y) |
| 115 | cbfs-files-y += pt |
| 116 | pt-file := pt.c:struct |
| 117 | pt-type := raw |
| 118 | cbfs-files-y += pdpt |
| 119 | pdpt-file := pdpt.c:struct |
| 120 | pdpt-type := raw |
| 121 | endif |
| 122 | |
Aaron Durbin | 9f444c3 | 2016-05-20 10:48:44 -0500 | [diff] [blame] | 123 | ifeq ($(CONFIG_NEED_LBP2),y) |
| 124 | files_added:: |
| 125 | $(CBFSTOOL) $(obj)/coreboot.rom write -r $(CONFIG_LBP2_FMAP_NAME) -f $(CONFIG_LBP2_FILE_NAME) --fill-upward |
| 126 | endif |
| 127 | |
Furquan Shaikh | 7043bf3 | 2016-05-28 12:57:05 -0700 | [diff] [blame] | 128 | # Bootblock on Apollolake platform lies in the IFWI region. In order to place |
| 129 | # the bootblock at the right location in IFWI image - |
| 130 | # a. Using ifwitool: |
| 131 | # 1. Create IFWI image (ifwi.bin.tmp) from input image |
| 132 | # (CONFIG_IFWI_FILE_NAME). |
| 133 | # 2. Delete OBBP sub-partition, if present. |
| 134 | # 3. Replace IBBL directory entry in IBBP sub-partition with currently |
| 135 | # generated bootblock.bin. |
| 136 | # b. Using cbfstool: |
| 137 | # 1. Write ifwi.bin.tmp to coreboot.rom using CONFIG_IFWI_FMAP_NAME. |
| 138 | ifeq ($(CONFIG_NEED_IFWI),y) |
| 139 | files_added:: $(IFWITOOL) |
| 140 | $(IFWITOOL) $(CONFIG_IFWI_FILE_NAME) create -f $(objcbfs)/ifwi.bin.tmp |
| 141 | $(IFWITOOL) $(objcbfs)/ifwi.bin.tmp delete -n OBBP |
| 142 | $(IFWITOOL) $(objcbfs)/ifwi.bin.tmp replace -n IBBP -f $(objcbfs)/bootblock.bin -d -e IBBL |
| 143 | $(CBFSTOOL) $(obj)/coreboot.rom write -r $(CONFIG_IFWI_FMAP_NAME) -f $(objcbfs)/ifwi.bin.tmp --fill-upward |
| 144 | endif |
| 145 | |
Saurabh Satija | 734aa87 | 2016-06-21 14:22:16 -0700 | [diff] [blame] | 146 | # DSP firmware settings files. |
Hannah Williams | 96939ae | 2017-11-01 11:01:20 -0700 | [diff] [blame] | 147 | ifeq ($(CONFIG_SOC_INTEL_GLK),y) |
| 148 | NHLT_BLOB_PATH = 3rdparty/blobs/soc/intel/glk/nhlt-blobs |
| 149 | else |
Saurabh Satija | 734aa87 | 2016-06-21 14:22:16 -0700 | [diff] [blame] | 150 | NHLT_BLOB_PATH = 3rdparty/blobs/soc/intel/apollolake/nhlt-blobs |
Hannah Williams | 96939ae | 2017-11-01 11:01:20 -0700 | [diff] [blame] | 151 | endif |
Sathyanarayana Nujella | 3e0a3fb | 2016-10-26 17:31:36 -0700 | [diff] [blame] | 152 | DMIC_1CH_48KHZ_16B = dmic-1ch-48khz-16b.bin |
Saurabh Satija | 734aa87 | 2016-06-21 14:22:16 -0700 | [diff] [blame] | 153 | DMIC_2CH_48KHZ_16B = dmic-2ch-48khz-16b.bin |
Sathyanarayana Nujella | 3e0a3fb | 2016-10-26 17:31:36 -0700 | [diff] [blame] | 154 | DMIC_4CH_48KHZ_16B = dmic-4ch-48khz-16b.bin |
Saurabh Satija | 734aa87 | 2016-06-21 14:22:16 -0700 | [diff] [blame] | 155 | MAX98357_RENDER = max98357-render-2ch-48khz-24b.bin |
| 156 | DA7219_RENDER_CAPTURE = dialog-2ch-48khz-24b.bin |
Naveen Manohar | 532b8d5 | 2018-04-27 15:24:45 +0530 | [diff] [blame] | 157 | RT5682_RENDER_CAPTURE = rt5682-2ch-48khz-24b.bin |
Saurabh Satija | 734aa87 | 2016-06-21 14:22:16 -0700 | [diff] [blame] | 158 | |
Sathyanarayana Nujella | 3e0a3fb | 2016-10-26 17:31:36 -0700 | [diff] [blame] | 159 | cbfs-files-$(CONFIG_NHLT_DMIC_1CH_16B) += $(DMIC_1CH_48KHZ_16B) |
| 160 | $(DMIC_1CH_48KHZ_16B)-file := $(NHLT_BLOB_PATH)/$(DMIC_1CH_48KHZ_16B) |
| 161 | $(DMIC_1CH_48KHZ_16B)-type := raw |
| 162 | |
Saurabh Satija | 6f23374 | 2016-08-18 14:08:37 -0700 | [diff] [blame] | 163 | cbfs-files-$(CONFIG_NHLT_DMIC_2CH_16B) += $(DMIC_2CH_48KHZ_16B) |
Saurabh Satija | 734aa87 | 2016-06-21 14:22:16 -0700 | [diff] [blame] | 164 | $(DMIC_2CH_48KHZ_16B)-file := $(NHLT_BLOB_PATH)/$(DMIC_2CH_48KHZ_16B) |
| 165 | $(DMIC_2CH_48KHZ_16B)-type := raw |
| 166 | |
Sathyanarayana Nujella | 3e0a3fb | 2016-10-26 17:31:36 -0700 | [diff] [blame] | 167 | cbfs-files-$(CONFIG_NHLT_DMIC_4CH_16B) += $(DMIC_4CH_48KHZ_16B) |
| 168 | $(DMIC_4CH_48KHZ_16B)-file := $(NHLT_BLOB_PATH)/$(DMIC_4CH_48KHZ_16B) |
| 169 | $(DMIC_4CH_48KHZ_16B)-type := raw |
| 170 | |
Saurabh Satija | 734aa87 | 2016-06-21 14:22:16 -0700 | [diff] [blame] | 171 | cbfs-files-$(CONFIG_NHLT_MAX98357) += $(MAX98357_RENDER) |
| 172 | $(MAX98357_RENDER)-file := $(NHLT_BLOB_PATH)/$(MAX98357_RENDER) |
| 173 | $(MAX98357_RENDER)-type := raw |
| 174 | |
| 175 | cbfs-files-$(CONFIG_NHLT_DA7219) += $(DA7219_RENDER_CAPTURE) |
| 176 | $(DA7219_RENDER_CAPTURE)-file := $(NHLT_BLOB_PATH)/$(DA7219_RENDER_CAPTURE) |
| 177 | $(DA7219_RENDER_CAPTURE)-type := raw |
| 178 | |
Naveen Manohar | 532b8d5 | 2018-04-27 15:24:45 +0530 | [diff] [blame] | 179 | cbfs-files-$(CONFIG_NHLT_RT5682) += $(RT5682_RENDER_CAPTURE) |
| 180 | $(RT5682_RENDER_CAPTURE)-file := $(NHLT_BLOB_PATH)/$(RT5682_RENDER_CAPTURE) |
| 181 | $(RT5682_RENDER_CAPTURE)-type := raw |
| 182 | |
Nico Huber | bae03a5 | 2018-11-14 17:46:14 +0100 | [diff] [blame] | 183 | ifeq ($(CONFIG_SOC_INTEL_GLK),y) |
| 184 | # Gemini Lake B0 (706a1) only atm. |
Arthur Heymans | a449290 | 2019-06-17 10:50:47 +0200 | [diff] [blame] | 185 | cpu_microcode_bins += $(wildcard 3rdparty/intel-microcode/intel-ucode/06-7a-*) |
Nico Huber | bae03a5 | 2018-11-14 17:46:14 +0100 | [diff] [blame] | 186 | else |
| 187 | # Apollo Lake 506c2, B0 (506c9) and E0 (506ca) only atm. |
Arthur Heymans | a449290 | 2019-06-17 10:50:47 +0200 | [diff] [blame] | 188 | cpu_microcode_bins += $(wildcard 3rdparty/intel-microcode/intel-ucode/06-5c-*) |
Alexandru Gagniuc | 7e86cd4 | 2015-10-06 10:33:49 -0700 | [diff] [blame] | 189 | endif |
Nico Huber | bae03a5 | 2018-11-14 17:46:14 +0100 | [diff] [blame] | 190 | |
| 191 | endif # if CONFIG_SOC_INTEL_APOLLOLAKE |