mb/google/zork: Remove code that reconfigured the backlight GPIO
The SMU code was assuming that GPIO 85 was used for a fan, which caused interesting backlight flickering. That has now been fixed, so remove the code that reconfigured it to a GPIO on resume. BUG=b:155667589 TEST=Verify the screen does not flicker on resume from S3 BRANCH=Zork Signed-off-by: Martin Roth <martinroth@chromium.org> Change-Id: I6d4f9d98e9df52fefab9b20d0ab0f0b67512d356 Reviewed-on: https://review.coreboot.org/c/coreboot/+/45853 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Rob Barnes <robbarnes@google.com> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
This commit is contained in:
parent
407b866a3e
commit
5ea556eeb0
@ -188,25 +188,12 @@ static void zork_enable(struct device *dev)
|
|||||||
dev->ops->acpi_inject_dsdt = chromeos_dsdt_generator;
|
dev->ops->acpi_inject_dsdt = chromeos_dsdt_generator;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct soc_amd_gpio gpio_set_bl[] = {
|
|
||||||
PAD_GPO(GPIO_85, LOW),
|
|
||||||
};
|
|
||||||
|
|
||||||
static void reset_backlight_gpio(void *unused)
|
|
||||||
{
|
|
||||||
printk(BIOS_DEBUG, "Reset backlight GPIO\n");
|
|
||||||
/* Re-Enable backlight - GPIO 85 active low */
|
|
||||||
/* TODO: Remove this after AGESA stops enabling the fan - b/155667589 */
|
|
||||||
program_gpios(gpio_set_bl, ARRAY_SIZE(gpio_set_bl)); /* APU_EDP_BL_DISABLE */
|
|
||||||
}
|
|
||||||
|
|
||||||
static void mainboard_final(void *chip_info)
|
static void mainboard_final(void *chip_info)
|
||||||
{
|
{
|
||||||
struct global_nvs *gnvs;
|
struct global_nvs *gnvs;
|
||||||
|
|
||||||
gnvs = acpi_get_gnvs();
|
gnvs = acpi_get_gnvs();
|
||||||
|
|
||||||
reset_backlight_gpio(NULL);
|
|
||||||
|
|
||||||
if (gnvs) {
|
if (gnvs) {
|
||||||
gnvs->tmps = CTL_TDP_SENSOR_ID;
|
gnvs->tmps = CTL_TDP_SENSOR_ID;
|
||||||
@ -231,5 +218,3 @@ __weak const struct soc_amd_gpio *variant_override_gpio_table(size_t *size)
|
|||||||
*size = 0;
|
*size = 0;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY, reset_backlight_gpio, NULL);
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user