[coreboot-gerrit] Patch set updated for coreboot: 1094fa9 Call X201 dock hooks in EC code
Vladimir Serbinenko (phcoder@gmail.com)
gerrit at coreboot.org
Fri Nov 15 20:52:30 CET 2013
Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4082
-gerrit
commit 1094fa98d82d6937ef8cdaad6238c0b9569a8606
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date: Thu Nov 14 19:09:42 2013 +0100
Call X201 dock hooks in EC code
Unlike on X60/T60 dock has to be inited at the same time as EC.
Change-Id: If6eb3140c871859ce99027a50908f72bcc560243
Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
src/ec/lenovo/h8/h8.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index 5c2f84f..1e21d7f 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -26,6 +26,11 @@
#include "h8.h"
#include "chip.h"
#include <pc80/mc146818rtc.h>
+#include <kconfig.h>
+
+#if IS_ENABLED (CONFIG_BOARD_LENOVO_X201)
+#include "mainboard/lenovo/x201/dock.h"
+#endif
static void h8_bluetooth_enable(int on)
{
@@ -175,6 +180,14 @@ static void h8_enable(device_t dev)
tmp |= (val & 1) << 4;
ec_write(H8_CONFIG3, tmp);
h8_set_audio_mute(0);
+
+#if IS_ENABLED (CONFIG_BOARD_LENOVO_X201)
+ if (dock_present()) {
+ printk(BIOS_DEBUG, "dock is connected\n");
+ dock_connect();
+ } else
+ printk(BIOS_DEBUG, "dock is not connected\n");
+#endif
}
struct chip_operations ec_lenovo_h8_ops = {
More information about the coreboot-gerrit
mailing list