Mercurial > pt1
comparison driver/pt1_i2c.h @ 79:3c2123189edf
improve PT2 support.
- update read check in initialization
- PT2 specific RAM phase initialization
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 07 Dec 2009 15:01:57 +0900 |
parents | 67e8eca28a80 |
children | 1e7718cc2556 |
comparison
equal
deleted
inserted
replaced
78:5a0126d8af17 | 79:3c2123189edf |
---|---|
50 #define I2C_READ_SYNC (1 << 29) | 50 #define I2C_READ_SYNC (1 << 29) |
51 #define READ_DATA (1 << 30) | 51 #define READ_DATA (1 << 30) |
52 #define READ_UNLOCK (1 << 31) | 52 #define READ_UNLOCK (1 << 31) |
53 | 53 |
54 #define XC3S_PCI_CLOCK (512 / 4) | 54 #define XC3S_PCI_CLOCK (512 / 4) |
55 #define XC3S_PCI_CLOCK_PT2 (166) | |
55 /***************************************************************************/ | 56 /***************************************************************************/ |
56 /* I2Cアドレス定義 */ | 57 /* I2Cアドレス定義 */ |
57 /***************************************************************************/ | 58 /***************************************************************************/ |
58 #define T0_ISDB_S 0X1B // チューナ0 ISDB-S | 59 #define T0_ISDB_S 0X1B // チューナ0 ISDB-S |
59 #define T1_ISDB_S 0X19 // チューナ1 ISDB-S | 60 #define T1_ISDB_S 0X19 // チューナ1 ISDB-S |
72 | 73 |
73 /***************************************************************************/ | 74 /***************************************************************************/ |
74 /* 関数定義 */ | 75 /* 関数定義 */ |
75 /***************************************************************************/ | 76 /***************************************************************************/ |
76 //extern __u32 makei2c(void __iomem *, __u32, __u32, __u32, __u32, __u32, __u32); | 77 //extern __u32 makei2c(void __iomem *, __u32, __u32, __u32, __u32, __u32, __u32); |
77 extern int xc3s_init(void __iomem *); | 78 extern int xc3s_init(void __iomem *, int); |
78 extern void SetStream(void __iomem *, __u32, __u32); | 79 extern void SetStream(void __iomem *, __u32, __u32); |
79 extern void blockwrite(void __iomem *, WBLOCK *); | 80 extern void blockwrite(void __iomem *, WBLOCK *); |
80 extern void i2c_write(void __iomem *, struct mutex *, WBLOCK *); | 81 extern void i2c_write(void __iomem *, struct mutex *, WBLOCK *); |
81 extern __u32 i2c_read(void __iomem *, struct mutex *, WBLOCK *, int); | 82 extern __u32 i2c_read(void __iomem *, struct mutex *, WBLOCK *, int); |
82 | 83 |