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>
This commit is contained in:
parent
75b90a1f50
commit
e2b6795e04
|
@ -26,6 +26,11 @@
|
||||||
#include "h8.h"
|
#include "h8.h"
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
#include <pc80/mc146818rtc.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)
|
static void h8_bluetooth_enable(int on)
|
||||||
{
|
{
|
||||||
|
@ -161,6 +166,14 @@ static void h8_enable(device_t dev)
|
||||||
ec_write(H8_CONFIG3, tmp);
|
ec_write(H8_CONFIG3, tmp);
|
||||||
}
|
}
|
||||||
h8_set_audio_mute(0);
|
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 = {
|
struct chip_operations ec_lenovo_h8_ops = {
|
||||||
|
|
Loading…
Reference in New Issue