Vladimir Serbinenko (phcoder@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4082
-gerrit
commit 0e1ba12854012698ff84c6d01b4b24f9f4d7dba0 Author: Vladimir Serbinenko phcoder@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@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 = {