From 7f395fe95bd525581214bc12bb7a231be766a502 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Fri, 19 May 2017 08:18:54 +0200 Subject: ec/lenovo/h8: Add panic method Add two additional LED IDs. Add Kconfig menu entries to allow selecting the action to execute on death. Overwrite weak die_notify method to notify user on death. Flash all LEDs and play beep code 10 depending on Kconfig options. Successfully tested on: Tested on Lenovo T500. Tested on Lenovo X200. Tested on Lenovo T430, but only LEDs are flashing. Change-Id: Id34d399f154952a48c1f4ccb0c41a238b2d7ccb8 Signed-off-by: Patrick Rudolph Reviewed-by: Martin Roth --- src/ec/lenovo/h8/h8.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ec/lenovo/h8/h8.h') diff --git a/src/ec/lenovo/h8/h8.h b/src/ec/lenovo/h8/h8.h index 42d279fc6f..9d4b186e46 100644 --- a/src/ec/lenovo/h8/h8.h +++ b/src/ec/lenovo/h8/h8.h @@ -71,6 +71,8 @@ void h8_mainboard_init_dock (void); #define H8_LED_CONTROL_SUSPEND_LED 0x07 #define H8_LED_CONTROL_DOCK_LED1 0x08 #define H8_LED_CONTROL_DOCK_LED2 0x09 +#define H8_LED_CONTROL_ACDC_LED 0x0c +#define H8_LED_CONTROL_MUTE_LED 0x0e #define H8_USB_ALWAYS_ON 0x0d #define H8_USB_ALWAYS_ON_ENABLE 0x01 -- cgit v1.2.3