FSP platform microcode: Update to remove Kconfig variable

Move the Kconfig variable into a .h file - this does not need to be
in Kconfig.

Change-Id: I1db20790ddb32e0eb082503c6c60cbbefa818bb9
Signed-off-by: Martin Roth <martin.roth@se-eng.com>
Reviewed-on: http://review.coreboot.org/7646
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
This commit is contained in:
Martin Roth
2014-12-04 18:06:36 -07:00
committed by Martin Roth
parent db3e2f0931
commit e10108a669
13 changed files with 26 additions and 24 deletions

View File

@@ -58,12 +58,6 @@ config CPU_MICROCODE_CBFS_LOC
depends on SUPPORT_CPU_UCODE_IN_CBFS depends on SUPPORT_CPU_UCODE_IN_CBFS
default 0xfff70000 default 0xfff70000
config CPU_MICROCODE_CBFS_LEN
hex
depends on SUPPORT_CPU_UCODE_IN_CBFS
default 0xC000 if CPU_INTEL_FSP_MODEL_306AX
default 0x2800 if CPU_INTEL_FSP_MODEL_206AX
config MICROCODE_INCLUDE_PATH config MICROCODE_INCLUDE_PATH
string "Location of the intel microcode patches" string "Location of the intel microcode patches"
default "../intel/cpu/ivybridge/microcode" if CPU_INTEL_FSP_MODEL_306AX default "../intel/cpu/ivybridge/microcode" if CPU_INTEL_FSP_MODEL_306AX

View File

@@ -6,6 +6,7 @@ ramstage-y += acpi.c
smm-$(CONFIG_HAVE_SMI_HANDLER) += finalize.c smm-$(CONFIG_HAVE_SMI_HANDLER) += finalize.c
cpu_microcode-$(CONFIG_CPU_MICROCODE_CBFS_GENERATE) += microcode_blob.c cpu_microcode-$(CONFIG_CPU_MICROCODE_CBFS_GENERATE) += microcode_blob.c
CPPFLAGS_romstage += -I$(src)/cpu/intel/fsp_model_206ax
ifneq ($(CONFIG_MICROCODE_INCLUDE_PATH),) ifneq ($(CONFIG_MICROCODE_INCLUDE_PATH),)
ifneq ($(wildcard $(shell readlink -f "$(top)/$(CONFIG_MICROCODE_INCLUDE_PATH)")),) ifneq ($(wildcard $(shell readlink -f "$(top)/$(CONFIG_MICROCODE_INCLUDE_PATH)")),)

View File

@@ -19,12 +19,12 @@
*/ */
#if IS_ENABLED(CONFIG_CPU_INTEL_FSP_MODEL_206AX) #if IS_ENABLED(CONFIG_CPU_INTEL_FSP_MODEL_206AX)
/* Size is 0x2800 - Update in Kconfigs when any included file changes*/ /* Size is 0x2800 - Update in microcode_size.h when any included file changes*/
#include <microcode-m12206a7_00000029.h> #include <microcode-m12206a7_00000029.h>
#endif #endif
#if IS_ENABLED(CONFIG_CPU_INTEL_FSP_MODEL_306AX) #if IS_ENABLED(CONFIG_CPU_INTEL_FSP_MODEL_306AX)
/* Size is 0xC000 - Update in Kconfigs when any included file changes*/ /* Size is 0xC000 - Update in microcode_size.h when any included file changes*/
#include <microcode-m12306a2_00000008.h> #include <microcode-m12306a2_00000008.h>
#include <microcode-m12306a4_00000007.h> #include <microcode-m12306a4_00000007.h>
#include <microcode-m12306a5_00000007.h> #include <microcode-m12306a5_00000007.h>

View File

@@ -0,0 +1,7 @@
/* Maximum size of the area that the FSP will search for the correct microcode */
#if IS_ENABLED(CONFIG_CPU_INTEL_FSP_MODEL_306AX)
#define MICROCODE_REGION_LENGTH 0xC000
#elif IS_ENABLED(CONFIG_CPU_INTEL_FSP_MODEL_206AX)
#define MICROCODE_REGION_LENGTH 0x2800
#endif

View File

@@ -62,12 +62,6 @@ config CPU_MICROCODE_CBFS_LOC
depends on SUPPORT_CPU_UCODE_IN_CBFS depends on SUPPORT_CPU_UCODE_IN_CBFS
default 0xfff60040 default 0xfff60040
config CPU_MICROCODE_CBFS_LEN
hex
depends on SUPPORT_CPU_UCODE_IN_CBFS
default 0x14400 if FSP_MODEL_406DX_A1
default 0x14800 if FSP_MODEL_406DX_B0
config MICROCODE_INCLUDE_PATH config MICROCODE_INCLUDE_PATH
string "Location of the intel microcode patches" string "Location of the intel microcode patches"
default "../intel/cpu/rangeley/microcode" default "../intel/cpu/rangeley/microcode"

View File

@@ -23,6 +23,7 @@ subdirs-y += ../../x86/name
ramstage-y += acpi.c ramstage-y += acpi.c
cpu_microcode-$(CONFIG_CPU_MICROCODE_CBFS_GENERATE) += microcode_blob.c cpu_microcode-$(CONFIG_CPU_MICROCODE_CBFS_GENERATE) += microcode_blob.c
CPPFLAGS_romstage += -I$(src)/cpu/intel/fsp_model_406dx
ifneq ($(CONFIG_MICROCODE_INCLUDE_PATH),) ifneq ($(CONFIG_MICROCODE_INCLUDE_PATH),)
ifneq ($(wildcard $(shell readlink -f "$(top)/$(CONFIG_MICROCODE_INCLUDE_PATH)")),) ifneq ($(wildcard $(shell readlink -f "$(top)/$(CONFIG_MICROCODE_INCLUDE_PATH)")),)

View File

@@ -20,10 +20,10 @@
unsigned microcode[] = { unsigned microcode[] = {
#if IS_ENABLED(CONFIG_FSP_MODEL_406DX_A1) #if IS_ENABLED(CONFIG_FSP_MODEL_406DX_A1)
/* Size is 0x14400 */ /* Size is 0x14400 - update in microcode_size.h when the file changes */
#include <microcode-m01406d000e.h> #include <microcode-m01406d000e.h>
#elif IS_ENABLED(CONFIG_FSP_MODEL_406DX_B0) #elif IS_ENABLED(CONFIG_FSP_MODEL_406DX_B0)
/* Size is 0x14800 */ /* Size is 0x14800 - update in microcode_size.h when the file changes */
#include <microcode-m01406d811d.h> #include <microcode-m01406d811d.h>
#endif #endif
}; };

View File

@@ -0,0 +1,7 @@
/* Maximum size of the area that the FSP will search for the correct microcode */
#if IS_ENABLED(CONFIG_FSP_MODEL_406DX_A1)
#define MICROCODE_REGION_LENGTH 0x14400
#elif IS_ENABLED(CONFIG_FSP_MODEL_406DX_B0)
#define MICROCODE_REGION_LENGTH 0x14800
#endif

View File

@@ -22,6 +22,7 @@
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cpu/x86/cache.h> #include <cpu/x86/cache.h>
#include <cpu/x86/post_code.h> #include <cpu/x86/post_code.h>
#include <microcode_size.h>
#include <cbmem.h> #include <cbmem.h>
#ifndef CONFIG_FSP_LOC #ifndef CONFIG_FSP_LOC
@@ -158,7 +159,7 @@ fake_fsp_stack:
CAR_init_params: CAR_init_params:
.long CONFIG_CPU_MICROCODE_CBFS_LOC .long CONFIG_CPU_MICROCODE_CBFS_LOC
.long CONFIG_CPU_MICROCODE_CBFS_LEN .long MICROCODE_REGION_LENGTH
.long 0xFFFFFFFF - CACHE_ROM_SIZE + 1 /* Firmware Location */ .long 0xFFFFFFFF - CACHE_ROM_SIZE + 1 /* Firmware Location */
.long CACHE_ROM_SIZE /* Total Firmware Length */ .long CACHE_ROM_SIZE /* Total Firmware Length */

View File

@@ -102,12 +102,6 @@ config CPU_MICROCODE_CBFS_LOC
hex hex
default 0xfff10040 default 0xfff10040
config CPU_MICROCODE_CBFS_LEN
hex
default 0x19800
help
This should be updated when the microcode patch changes.
config CBFS_SIZE config CBFS_SIZE
hex hex
default 0x200000 default 0x200000

View File

@@ -17,6 +17,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# #
cpu_microcode-$(CONFIG_CPU_MICROCODE_CBFS_GENERATE) += microcode_blob.c cpu_microcode-$(CONFIG_CPU_MICROCODE_CBFS_GENERATE) += microcode_blob.c
CPPFLAGS_romstage += -I$(src)/soc/intel/fsp_baytrail/microcode
ifneq ($(CONFIG_MICROCODE_INCLUDE_PATH),) ifneq ($(CONFIG_MICROCODE_INCLUDE_PATH),)
ifneq ($(wildcard $(shell readlink -f "$(top)/$(CONFIG_MICROCODE_INCLUDE_PATH)")),) ifneq ($(wildcard $(shell readlink -f "$(top)/$(CONFIG_MICROCODE_INCLUDE_PATH)")),)

View File

@@ -19,7 +19,7 @@
unsigned microcode[] = { unsigned microcode[] = {
/* Size is 0x19800 - update in Kconfig when the patch gets updated. */ /* Size is 0x19800 - update in microcode_size.h when a patch gets changed. */
#include "M0230672228.h" // M0230672: Baytrail "Super SKU" B0/B1 #include "M0230672228.h" // M0230672: Baytrail "Super SKU" B0/B1
#include "M013067331E.h" // M0130673: Baytrail I B2 / B3 #include "M013067331E.h" // M0130673: Baytrail I B2 / B3

View File

@@ -0,0 +1,2 @@
/* Maximum size of the area that the FSP will search for the correct microcode */
#define MICROCODE_REGION_LENGTH 0x19800