]> Devoid-pointer.net GitWeb - omnibook.git/commitdiff
* Add cdimode access for LCD blanking
authorMathieu Bérard <mathieu.berard@crans.org>
Sun, 10 Sep 2006 19:54:36 +0000 (19:54 +0000)
committerMathieu Bérard <mathieu.berard@crans.org>
Sun, 10 Sep 2006 19:54:36 +0000 (19:54 +0000)
blank.c
ec.h

diff --git a/blank.c b/blank.c
index cf8150190cdffb6adc7887b9cd69890d074a5016..274d3e67e7976b5f53241cc67322a8f1b2511ccb 100644 (file)
--- 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 c136b7bb89916cb5dea8ede50f41508045907a18..772f2e67de41508eaa3751cb7ba6b83ff66375b7 100644 (file)
--- 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