Signed-off-by: Sven Schnelle <sv...@stackframe.org> --- src/ec/lenovo/pmh7/pmh7.c | 8 ++++++++ src/ec/lenovo/pmh7/pmh7.h | 1 + 2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/ec/lenovo/pmh7/pmh7.c b/src/ec/lenovo/pmh7/pmh7.c index d536d74..276a378 100644 --- a/src/ec/lenovo/pmh7/pmh7.c +++ b/src/ec/lenovo/pmh7/pmh7.c @@ -49,6 +49,14 @@ void pmh7_touchpad_enable(int onoff) else pmh7_register_set_bit(0x51, 2); } + +void pmh7_ultrabay_power_enable(int onoff) +{ + if (onoff) + pmh7_register_set_bit(0x62, 0); + else + pmh7_register_clear_bit(0x62, 0); +} void pmh7_register_set_bit(int reg, int bit) { char val; diff --git a/src/ec/lenovo/pmh7/pmh7.h b/src/ec/lenovo/pmh7/pmh7.h index 701013b..3543802 100644 --- a/src/ec/lenovo/pmh7/pmh7.h +++ b/src/ec/lenovo/pmh7/pmh7.h @@ -34,4 +34,5 @@ void pmh7_register_write(int reg, int val); void pmh7_backlight_enable(int onoff); void pmh7_dock_event_enable(int onoff); void pmh7_touchpad_enable(int onoff); +void pmh7_ultrabay_power_enable(int onoff); #endif -- 1.7.4.4 -- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot