Martin Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45854 )
Change subject: mb/google/zork: Temporary init for backlight in the OS ......................................................................
mb/google/zork: Temporary init for backlight in the OS
This needs to go into ACPI, but that's taking me a while, so I figured I'd push this temporarily.
Not for merge.
Signed-off-by: Martin Roth martinroth@chromium.org Change-Id: I6ecc3c9e397c9756a78e480d3f639c507879a0ea --- M src/mainboard/google/zork/smihandler.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/45854/1
diff --git a/src/mainboard/google/zork/smihandler.c b/src/mainboard/google/zork/smihandler.c index 12a3b64..6fc6f92 100644 --- a/src/mainboard/google/zork/smihandler.c +++ b/src/mainboard/google/zork/smihandler.c @@ -33,5 +33,9 @@ if (CONFIG(EC_GOOGLE_CHROMEEC)) chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS, MAINBOARD_EC_SMI_EVENTS); + /* Temporary fix - Needs to go into ACPI instead */ + /* Turn on the backlight when we go to ACPI mode */ + gpio_set(GPIO_85, 0); + return 0; }
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45854 )
Change subject: mb/google/zork: Temporary init for backlight in the OS ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45854/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/45854/1//COMMIT_MSG@7 PS1, Line 7: Temporary Temporarily init backlight in the OS
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/45854
to look at the new patch set (#2).
Change subject: mb/google/zork: Temporary init for backlight in the OS ......................................................................
mb/google/zork: Temporary init for backlight in the OS
This fix needs to go into ACPI in the long-term, but this should suffice in the short-term.
Signed-off-by: Martin Roth martinroth@chromium.org Change-Id: I6ecc3c9e397c9756a78e480d3f639c507879a0ea --- M src/mainboard/google/zork/smihandler.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/45854/2
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/45854
to look at the new patch set (#3).
Change subject: mb/google/zork: Initialize the backlight in the OS ......................................................................
mb/google/zork: Initialize the backlight in the OS
This fix needs to go into ACPI in the long-term, but this should suffice in the short-term.
Signed-off-by: Martin Roth martinroth@chromium.org Change-Id: I6ecc3c9e397c9756a78e480d3f639c507879a0ea --- M src/mainboard/google/zork/smihandler.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/45854/3
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/45854
to look at the new patch set (#4).
Change subject: mb/google/zork: Initialize the backlight in the OS ......................................................................
mb/google/zork: Initialize the backlight in the OS
This fix needs to go into ACPI in the long-term, but this should suffice in the short-term.
BUG=b:158087989 TEST=Boot berknip, verify backlight is enabled. Test suspend & resume sequence, backlight is still enabled. BRANCH=Zork
Signed-off-by: Martin Roth martinroth@chromium.org Change-Id: I6ecc3c9e397c9756a78e480d3f639c507879a0ea --- M src/mainboard/google/zork/smihandler.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/45854/4
Martin Roth has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45854 )
Change subject: mb/google/zork: Initialize the backlight in the OS ......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45854/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/45854/1//COMMIT_MSG@7 PS1, Line 7: Temporary
Temporarily init backlight in the OS
updated.
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/45854
to look at the new patch set (#5).
Change subject: mb/google/zork: Initialize the backlight in the OS ......................................................................
mb/google/zork: Initialize the backlight in the OS
This fix needs to go into ACPI in the long-term, but this should suffice in the short-term.
BUG=b:158087989 TEST=Boot berknip, verify backlight is enabled. Test suspend & resume sequence, backlight is still enabled. BRANCH=Zork
Signed-off-by: Martin Roth martinroth@chromium.org Change-Id: I6ecc3c9e397c9756a78e480d3f639c507879a0ea --- M src/mainboard/google/zork/smihandler.c 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/45854/5
Marshall Dawson has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45854 )
Change subject: mb/google/zork: Initialize the backlight in the OS ......................................................................
Patch Set 5: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/45854/4/src/mainboard/google/zork/s... File src/mainboard/google/zork/smihandler.c:
https://review.coreboot.org/c/coreboot/+/45854/4/src/mainboard/google/zork/s... PS4, Line 38: gpio_set(GPIO_85, 0); Maybe the following if I understand your intent
if (apmc == APM_CNT_ACPI_ENABLE) gpio_set(GPIO_85, 0);
Marshall Dawson has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45854 )
Change subject: mb/google/zork: Initialize the backlight in the OS ......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45854/4/src/mainboard/google/zork/s... File src/mainboard/google/zork/smihandler.c:
https://review.coreboot.org/c/coreboot/+/45854/4/src/mainboard/google/zork/s... PS4, Line 38: gpio_set(GPIO_85, 0);
Maybe the following if I understand your intent […]
Ugh, forgot about my draft...
Paul Fagerburg has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45854 )
Change subject: mb/google/zork: Initialize the backlight in the OS ......................................................................
Patch Set 5: Code-Review+2
Paul Fagerburg has submitted this change. ( https://review.coreboot.org/c/coreboot/+/45854 )
Change subject: mb/google/zork: Initialize the backlight in the OS ......................................................................
mb/google/zork: Initialize the backlight in the OS
This fix needs to go into ACPI in the long-term, but this should suffice in the short-term.
BUG=b:158087989 TEST=Boot berknip, verify backlight is enabled. Test suspend & resume sequence, backlight is still enabled. BRANCH=Zork
Signed-off-by: Martin Roth martinroth@chromium.org Change-Id: I6ecc3c9e397c9756a78e480d3f639c507879a0ea Reviewed-on: https://review.coreboot.org/c/coreboot/+/45854 Reviewed-by: Marshall Dawson marshalldawson3rd@gmail.com Reviewed-by: Paul Fagerburg pfagerburg@chromium.org Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/mainboard/google/zork/smihandler.c 1 file changed, 6 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Marshall Dawson: Looks good to me, approved Paul Fagerburg: Looks good to me, approved
diff --git a/src/mainboard/google/zork/smihandler.c b/src/mainboard/google/zork/smihandler.c index 12a3b64..6ef2704 100644 --- a/src/mainboard/google/zork/smihandler.c +++ b/src/mainboard/google/zork/smihandler.c @@ -33,5 +33,11 @@ if (CONFIG(EC_GOOGLE_CHROMEEC)) chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS, MAINBOARD_EC_SMI_EVENTS); + + /* Temporary fix - Needs to go into ACPI instead */ + /* Turn on the backlight when we go to ACPI mode */ + if (apmc == APM_CNT_ACPI_ENABLE) + gpio_set(GPIO_85, 0); + return 0; }