google/lulu,gandof: set kb backlight on boot
Set keyboard backlight to 75% on boot, except when resuming from S3. This enables the backlight at a reasonable level prior to the OS driver taking over, providing early proof-of-life and enhanced usability in grub etc. Uses same method as other google boards with a keyboard backlight (chell, link, samus). 75% value determined based on user feedback. TEST: boot google/lulu,gandof boards, observe keyboard backlight enabled in pre-OS environment. Change-Id: I7ed59289419af21764b1b5bd0a534d3b630c6c6b Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/21330 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
6a878a1f24
commit
a21d0a1073
|
@ -11,6 +11,8 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <ec/google/chromeec/ec.h>
|
||||
#include <soc/pm.h>
|
||||
#include <smbios.h>
|
||||
#include <soc/romstage.h>
|
||||
#include <variant/onboard.h>
|
||||
|
@ -35,5 +37,6 @@ int variant_smbios_data(device_t dev, int *handle,
|
|||
|
||||
void variant_romstage_entry(struct romstage_params *rp)
|
||||
{
|
||||
/* N/A for boards other than SAMUS */
|
||||
if (rp->power_state->prev_sleep_state != ACPI_S3)
|
||||
google_chromeec_kbbacklight(75);
|
||||
}
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <ec/google/chromeec/ec.h>
|
||||
#include <soc/pm.h>
|
||||
#include <smbios.h>
|
||||
#include <soc/romstage.h>
|
||||
#include <variant/onboard.h>
|
||||
|
@ -44,5 +46,6 @@ int variant_smbios_data(device_t dev, int *handle,
|
|||
|
||||
void variant_romstage_entry(struct romstage_params *rp)
|
||||
{
|
||||
/* N/A for boards other than SAMUS */
|
||||
if (rp->power_state->prev_sleep_state != ACPI_S3)
|
||||
google_chromeec_kbbacklight(75);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue