From e2b6795e046894487863e4bc9e29aa075dfcc3f6 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 14 Nov 2013 19:09:42 +0100 Subject: 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 Reviewed-on: http://review.coreboot.org/4082 Reviewed-by: Idwer Vollering Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/ec/lenovo/h8/h8.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/ec') diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c index 9ffdfc1d1d..af2aab3c6b 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 +#include + +#if IS_ENABLED (CONFIG_BOARD_LENOVO_X201) +#include "mainboard/lenovo/x201/dock.h" +#endif static void h8_bluetooth_enable(int on) { @@ -161,6 +166,14 @@ static void h8_enable(device_t dev) 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 = { -- cgit v1.2.3