mmc: sdhci-acpi: AMDI0040: Allow changing HS200/HS400 driver strength
authorRaul E Rangel <rrangel@chromium.org>
Tue, 27 Oct 2020 08:46:12 +0000 (19:46 +1100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 16 Nov 2020 10:59:27 +0000 (11:59 +0100)
commite10f480902da770db895b6a1d2f10b11d80fe5d8
treeac5c88d7bfd60e4543097c0d71932d43012faebb
parentb733775fb68f2a179dd28e6b41ff189fbcd3e95b
mmc: sdhci-acpi: AMDI0040: Allow changing HS200/HS400 driver strength

This change will allow platform designers better control over signal
integrity by allowing them to tune the HS200 and HS400 driver strengths.

The driver strength was previously hard coded to A to solve boot
problems with certain platforms. This driver strength does not
universally apply to all platforms so we need a knob to adjust it.

All older platforms currently have the SDR104 preset hard coded to A in
the firmware. This means that switching from the hard coded value in
the kernel to reading the SDR104 preset is a no-op for these platforms.
Newer platforms will have properly set presets. So this change will
support both new and old platforms.

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Signed-off-by: Victor Ding <victording@google.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20201027084612.528301-1-victording@google.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-acpi.c