diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-09-18 19:47:28 -0400 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-09-23 22:15:16 -0400 |
commit | 7f0e153e2c0b15aa7427ad4ac550640e1e2e9c33 (patch) | |
tree | 98f82deced910e6dcc9cc9bde3fb139d699261f8 /drivers/video/via/hw.h | |
parent | e029ab0d02b94d633d8e82a46dfdb7fd94a62216 (diff) |
viafb: add function to change sync polarity per device
At the moment only the sync polarity for CRT is handled but there are
also bits for controlling the sync polarity for other output devices.
Add a function to change those similar to the other output device
functions.
There is no runtime change yet as the code still handles only CRT.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Joseph Chan <JosephChan@via.com.tw>
Diffstat (limited to 'drivers/video/via/hw.h')
-rw-r--r-- | drivers/video/via/hw.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/via/hw.h b/drivers/video/via/hw.h index b067cbb45ebf..ad6f9b1cf40e 100644 --- a/drivers/video/via/hw.h +++ b/drivers/video/via/hw.h | |||
@@ -47,6 +47,10 @@ | |||
47 | #define VIA_STATE_SUSPEND 2 | 47 | #define VIA_STATE_SUSPEND 2 |
48 | #define VIA_STATE_OFF 3 | 48 | #define VIA_STATE_OFF 3 |
49 | 49 | ||
50 | /* VIA output device sync polarity */ | ||
51 | #define VIA_HSYNC_NEGATIVE 0x01 | ||
52 | #define VIA_VSYNC_NEGATIVE 0x02 | ||
53 | |||
50 | /*************************************************** | 54 | /*************************************************** |
51 | * Definition IGA1 Design Method of CRTC Registers * | 55 | * Definition IGA1 Design Method of CRTC Registers * |
52 | ****************************************************/ | 56 | ****************************************************/ |
@@ -912,6 +916,7 @@ void viafb_load_reg(int timing_value, int viafb_load_reg_num, | |||
912 | int io_type); | 916 | int io_type); |
913 | void via_set_source(u32 devices, u8 iga); | 917 | void via_set_source(u32 devices, u8 iga); |
914 | void via_set_state(u32 devices, u8 state); | 918 | void via_set_state(u32 devices, u8 state); |
919 | void via_set_sync_polarity(u32 devices, u8 polarity); | ||
915 | u32 via_parse_odev(char *input, char **end); | 920 | u32 via_parse_odev(char *input, char **end); |
916 | void via_odev_to_seq(struct seq_file *m, u32 odev); | 921 | void via_odev_to_seq(struct seq_file *m, u32 odev); |
917 | void init_ad9389(void); | 922 | void init_ad9389(void); |