soc/amd/picasso: Move sd_emmc_config into emmc_config struct
I plan on adding another eMMC parameter. This refactor keeps the config contained in a single struct. BUG=b:159823235 TEST=Build test Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: I4b57d651ab44d6c1cad661d620bffd4207dfebd4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/45095 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
committed by
Patrick Georgi
parent
73cd3e704f
commit
7c79d8302b
@@ -126,20 +126,34 @@ struct soc_amd_picasso_config {
|
||||
uint32_t telemetry_vddcr_soc_slope;
|
||||
uint32_t telemetry_vddcr_soc_offset;
|
||||
|
||||
enum {
|
||||
SD_EMMC_DISABLE,
|
||||
SD_EMMC_SD_LOW_SPEED,
|
||||
SD_EMMC_SD_HIGH_SPEED,
|
||||
SD_EMMC_SD_UHS_I_SDR_50,
|
||||
SD_EMMC_SD_UHS_I_DDR_50,
|
||||
SD_EMMC_SD_UHS_I_SDR_104,
|
||||
SD_EMMC_EMMC_SDR_26,
|
||||
SD_EMMC_EMMC_SDR_52,
|
||||
SD_EMMC_EMMC_DDR_52,
|
||||
SD_EMMC_EMMC_HS200,
|
||||
SD_EMMC_EMMC_HS400,
|
||||
SD_EMMC_EMMC_HS300,
|
||||
} sd_emmc_config;
|
||||
struct {
|
||||
/*
|
||||
* SDHCI doesn't directly support eMMC. There is an implicit mapping between
|
||||
* eMMC timing modes and SDHCI UHS-I timing modes defined in the linux
|
||||
* kernel.
|
||||
*
|
||||
* HS -> UHS_SDR12 (0x00)
|
||||
* DDR52 -> UHS_DDR50 (0x04)
|
||||
* HS200 -> UHS_SDR104 (0x03)
|
||||
* HS400 -> NONE (0x05)
|
||||
*
|
||||
* The kernel driver uses a heuristic to determine if HS400 is supported.
|
||||
*/
|
||||
enum {
|
||||
SD_EMMC_DISABLE,
|
||||
SD_EMMC_SD_LOW_SPEED,
|
||||
SD_EMMC_SD_HIGH_SPEED,
|
||||
SD_EMMC_SD_UHS_I_SDR_50,
|
||||
SD_EMMC_SD_UHS_I_DDR_50,
|
||||
SD_EMMC_SD_UHS_I_SDR_104,
|
||||
SD_EMMC_EMMC_SDR_26,
|
||||
SD_EMMC_EMMC_SDR_52,
|
||||
SD_EMMC_EMMC_DDR_52,
|
||||
SD_EMMC_EMMC_HS200,
|
||||
SD_EMMC_EMMC_HS400,
|
||||
SD_EMMC_EMMC_HS300,
|
||||
} timing;
|
||||
} emmc_config;
|
||||
|
||||
uint8_t xhci0_force_gen1;
|
||||
|
||||
|
Reference in New Issue
Block a user