From a8d3399532df313ae75339ebc9cc8cf2e769e5dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathieu=20B=C3=A9rard?= Date: Sun, 10 Sep 2006 19:54:36 +0000 Subject: [PATCH] * Add cdimode access for LCD blanking --- blank.c | 4 +++- ec.h | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/blank.c b/blank.c index cf81501..274d3e6 100644 --- a/blank.c +++ b/blank.c @@ -37,7 +37,8 @@ int omnibook_lcd_blank(int blank) if ( blank_driver.io_op->backend == PIO ) omnibook_apply_write_mask(blank_driver.io_op, blank); - else if ( blank_driver.io_op->backend == KBC ) + else if ( blank_driver.io_op->backend == KBC || + blank_driver.io_op->backend == CDI ) omnibook_toggle(blank_driver.io_op, blank); else { printk(O_WARN @@ -122,6 +123,7 @@ static void __exit omnibook_console_blank_cleanup(struct omnibook_operation *io_ } static struct omnibook_tbl blank_table[] __initdata = { + { TSM30X, {CDI, 0, TSM100_BLANK_INDEX, 0, TSM100_LCD_OFF, TSM100_LCD_ON}}, { XE3GF|XE3GC|AMILOD|TSP10|TSM30X|TSM40, COMMAND(KBC,OMNIBOOK_KBC_CMD_LCD_OFF,OMNIBOOK_KBC_CMD_LCD_ON)}, { OB500|OB6000|XE2, { PIO, OB500_GPO1, OB500_GPO1, 0, -OB500_BKLT_MASK, OB500_BKLT_MASK}}, { OB510|OB6100, { PIO, OB510_GPO2, OB510_GPO2, 0, -OB510_BKLT_MASK, OB510_BKLT_MASK}}, diff --git a/ec.h b/ec.h index c136b7b..772f2e6 100644 --- a/ec.h +++ b/ec.h @@ -393,6 +393,9 @@ int omnibook_toggle(const struct omnibook_operation *io_op, int toggle); #define TSM70_LCD_WRITE 0x5D #define TSM70_TOUCHPAD_ON 0x80 #define TSM70_TOUCHPAD_OFF 0x81 +#define TSM100_BLANK_INDEX 0x59 +#define TSM100_LCD_ON 0xe1 +#define TSM100_LCD_OFF 0xe2 /* Toshiba SMI funtion */ #define SMI_FN_PRESSED 0x00 -- 2.43.5