soc/intel/jasperlake: Allow SD card power enable polarity configuration
SdCardPowerEnableActiveHigh is a UPD which controls polarity of SD card power enable pin. Setting it 1 will set polarity of this pin as Active high. This patch will allow to control it from devicetree so that it can be set as per each board's requirement. BUG=b:155595624 BRANCH=None TEST=Build, boot JSLRVP, Verified UPD value from FSP log Signed-off-by: Ronak Kanabar <ronak.kanabar@intel.com> Change-Id: Id777a262651689952a217875e6606f67855fc2f4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/41027 Reviewed-by: Aamir Bohra <aamir.bohra@intel.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Reviewed-by: V Sowmya <v.sowmya@intel.com> Reviewed-by: Maulik V Vaghela <maulik.v.vaghela@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
296ce46bcc
commit
a4412d68d5
|
@ -136,10 +136,12 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
|
||||||
|
|
||||||
/* SDCard related configuration */
|
/* SDCard related configuration */
|
||||||
dev = pcidev_path_on_root(PCH_DEVFN_SDCARD);
|
dev = pcidev_path_on_root(PCH_DEVFN_SDCARD);
|
||||||
if (!dev)
|
if (!dev) {
|
||||||
params->ScsSdCardEnabled = 0;
|
params->ScsSdCardEnabled = 0;
|
||||||
else
|
} else {
|
||||||
params->ScsSdCardEnabled = dev->enabled;
|
params->ScsSdCardEnabled = dev->enabled;
|
||||||
|
params->SdCardPowerEnableActiveHigh = config->SdCardPowerEnableActiveHigh;
|
||||||
|
}
|
||||||
|
|
||||||
params->Device4Enable = config->Device4Enable;
|
params->Device4Enable = config->Device4Enable;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue