diff options
author | Andrey Petrov <andrey.petrov@intel.com> | 2016-02-25 14:16:33 -0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-03-08 13:43:04 +0100 |
commit | 465fc13c0e69ddcf38168b62104fca37b91bdd68 (patch) | |
tree | 3dcb54f8fbe08460f808157ef1f242da28b03403 /src/drivers/intel/fsp2_0/include/fsp | |
parent | 6321d7c14bf96719d199cfe921d4299c93cd441f (diff) | |
download | coreboot-465fc13c0e69ddcf38168b62104fca37b91bdd68.tar.xz |
drivers/intel/fsp2_0: Add MemoryInit API
This adds implementation of fsp_memory_init() that is used to train
memory.
Change-Id: I72268aaa91eea7e4d4f072d70a47871d74c2b979
Signed-off-by: Andrey Petrov <andrey.petrov@intel.com>
Reviewed-on: https://review.coreboot.org/13798
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/intel/fsp2_0/include/fsp')
-rw-r--r-- | src/drivers/intel/fsp2_0/include/fsp/api.h | 11 | ||||
-rw-r--r-- | src/drivers/intel/fsp2_0/include/fsp/info_header.h | 14 |
2 files changed, 4 insertions, 21 deletions
diff --git a/src/drivers/intel/fsp2_0/include/fsp/api.h b/src/drivers/intel/fsp2_0/include/fsp/api.h index 0d45df3ebd..c098a5b143 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/api.h +++ b/src/drivers/intel/fsp2_0/include/fsp/api.h @@ -16,6 +16,8 @@ #include <stddef.h> #include <memrange.h> #include <fsp/info_header.h> +#include <soc/fsp/FspmUpd.h> +#include <soc/fsp/FspsUpd.h> enum fsp_status { FSP_SUCCESS = 0x00000000, @@ -39,19 +41,14 @@ enum fsp_notify_phase { }; -/* Opaque structures. These are platform-specific. */ -struct FSP_M_CONFIG; -struct FSP_S_CONFIG; - /* Main FSP stages */ enum fsp_status fsp_memory_init(void **hob_list, struct range_entry *r); enum fsp_status fsp_silicon_init(struct range_entry *r); enum fsp_status fsp_notify(enum fsp_notify_phase phase); /* Callbacks for updating stage-specific parameters */ -void platform_fsp_memory_init_params_cb(struct fsp_m_arch_upd *archupd, - struct FSP_M_CONFIG *mcfg); -void platform_fsp_silicon_init_params_cb(struct FSP_S_CONFIG *silupd); +void platform_fsp_memory_init_params_cb(struct FSPM_UPD *mupd); +void platform_fsp_silicon_init_params_cb(struct FSPS_UPD *supd); /* * # DOCUMENTATION: diff --git a/src/drivers/intel/fsp2_0/include/fsp/info_header.h b/src/drivers/intel/fsp2_0/include/fsp/info_header.h index 0f25496008..468101e266 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/info_header.h +++ b/src/drivers/intel/fsp2_0/include/fsp/info_header.h @@ -39,20 +39,6 @@ struct fsp_header { uint8_t revision; }; -struct fsp_upd_header { - uint64_t signature; - uint8_t revision; -}; - -struct fsp_m_arch_upd { - uint8_t revision; - uintptr_t nvs_buffer; - uintptr_t stack_base; - uint32_t stack_size; - uint32_t bootloader_tolumsz; - uint32_t boot_mode; -}; - enum cb_err fsp_identify(struct fsp_header *hdr, const void *fsp_blob); void fsp_print_header_info(const struct fsp_header *hdr); void fsp_print_upd_info(const struct fsp_header *hdr, void *cfg_blob); |