summaryrefslogtreecommitdiff
path: root/src/i810_reg.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2006-11-02 12:27:21 -0800
committerEric Anholt <eric@anholt.net>2006-11-02 13:19:06 -0800
commit7887c76062b7c79e14fb8e4f13486aa592dcbce8 (patch)
treed6239273d997559475820483f4b2966b425d8dc0 /src/i810_reg.h
parent87b15cfbf762468d4b8728b3e7a39c76654017de (diff)
Add airlied's I2C code, ifdeffed out.
I've gone back to compare our behavior to it several times, so I'll just keep the code in tree for now.
Diffstat (limited to 'src/i810_reg.h')
-rw-r--r--src/i810_reg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i810_reg.h b/src/i810_reg.h
index 31f88859..11c06596 100644
--- a/src/i810_reg.h
+++ b/src/i810_reg.h
@@ -276,11 +276,13 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define GPIOG 0x5028
#define GPIOH 0x502c
# define GPIO_CLOCK_DIR_MASK (1 << 0)
+# define GPIO_CLOCK_DIR_IN (0 << 1)
# define GPIO_CLOCK_DIR_OUT (1 << 1)
# define GPIO_CLOCK_VAL_MASK (1 << 2)
# define GPIO_CLOCK_VAL_OUT (1 << 3)
# define GPIO_CLOCK_VAL_IN (1 << 4)
# define GPIO_DATA_DIR_MASK (1 << 8)
+# define GPIO_DATA_DIR_IN (0 << 9)
# define GPIO_DATA_DIR_OUT (1 << 9)
# define GPIO_DATA_VAL_MASK (1 << 10)
# define GPIO_DATA_VAL_OUT (1 << 11)