diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2008-08-08 17:39:48 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2008-08-08 17:39:48 -0400 |
commit | 4dbdeea7c9316575fba26b41fd347452e42cdcf2 (patch) | |
tree | ce773e84d6c353f0af7f29edfb00f961f8aab868 /src/radeon_probe.h | |
parent | 268c848130ec1770bb645a74197b6aca7fc95abc (diff) |
Further cleanup and unification of i2c code
- unify the ddc and i2c code
- add gpio mask support for legacy chips
- remove the magic gpio dance for ancient monitors
(if you have an ancient monitor that ddc stops
working on let me know). This should speed up DDC
on legacy chips.
-- radeon sw gpio i2c --
4 sets of gpio registers for clk and data and corresponding bit masks
mask - locks the gpio for use by sw
get - reads the value off the gpio pad
put - sets the gpio direction to output
a - "other stuff" On legacy chips you clear them if you want
to use a gpio for i2c. In some cases they are used for the
output value when the gpio in the output state.
Diffstat (limited to 'src/radeon_probe.h')
-rw-r--r-- | src/radeon_probe.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/radeon_probe.h b/src/radeon_probe.h index 944ab9fa..3770abfd 100644 --- a/src/radeon_probe.h +++ b/src/radeon_probe.h @@ -166,6 +166,8 @@ typedef struct Bool valid; uint32_t mask_clk_reg; uint32_t mask_data_reg; + uint32_t a_clk_reg; + uint32_t a_data_reg; uint32_t put_clk_reg; uint32_t put_data_reg; uint32_t get_clk_reg; @@ -176,6 +178,8 @@ typedef struct uint32_t put_data_mask; uint32_t get_clk_mask; uint32_t get_data_mask; + uint32_t a_clk_mask; + uint32_t a_data_mask; } RADEONI2CBusRec, *RADEONI2CBusPtr; typedef struct _RADEONCrtcPrivateRec { |