soc/amd/picasso: Allow mainboard to configure SPI settings
This change adds options to allow mainboard to configure SPI speed for different modes as well as the SPI read mode. BUG=b:153675510,b:147758054 BRANCH=trembyle-bringup TEST=Verified that SPI settings are configured correctly for trembyle. Change-Id: I24c27ec39101c7c07bedc27056f690cf2cc54951 Signed-off-by: Furquan Shaikh <furquan@google.com> Signed-off-by: Rob Barnes <robbarnes@google.com> Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40421 Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <drivers/i2c/designware/dw_i2c.h>
|
||||
#include <soc/i2c.h>
|
||||
#include <soc/iomap.h>
|
||||
#include <soc/southbridge.h>
|
||||
#include <arch/acpi_device.h>
|
||||
|
||||
struct soc_amd_picasso_config {
|
||||
@@ -70,6 +71,21 @@ struct soc_amd_picasso_config {
|
||||
uint8_t core_dldo_bypass;
|
||||
uint8_t min_soc_vid_offset;
|
||||
uint8_t aclk_dpm0_freq_400MHz;
|
||||
|
||||
/*
|
||||
* SPI config
|
||||
* Default values if not overridden by mainboard:
|
||||
* Read mode - Normal 33MHz
|
||||
* Normal speed - 66MHz
|
||||
* Fast speed - 66MHz
|
||||
* Alt speed - 66MHz
|
||||
* TPM speed - 66MHz
|
||||
*/
|
||||
enum spi_read_mode spi_read_mode;
|
||||
enum spi100_speed spi_normal_speed;
|
||||
enum spi100_speed spi_fast_speed;
|
||||
enum spi100_speed spi_altio_speed;
|
||||
enum spi100_speed spi_tpm_speed;
|
||||
};
|
||||
|
||||
typedef struct soc_amd_picasso_config config_t;
|
||||
|
Reference in New Issue
Block a user