diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2013-11-14 19:09:42 +0100 |
---|---|---|
committer | Vladimir Serbinenko <phcoder@gmail.com> | 2013-11-23 13:09:56 +0100 |
commit | e2b6795e046894487863e4bc9e29aa075dfcc3f6 (patch) | |
tree | fe045c50f767da5ecd5c1bc08858778de8bf200b /src | |
parent | 75b90a1f50f15b8ccb814d005c840d189d512f26 (diff) | |
download | coreboot-e2b6795e046894487863e4bc9e29aa075dfcc3f6.tar.xz |
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>
Reviewed-on: http://review.coreboot.org/4082
Reviewed-by: Idwer Vollering <vidwer@gmail.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/ec/lenovo/h8/h8.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 <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) { @@ -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 = { |