diff 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
line wrap: on
line diff
--- a/driver/pt1_i2c.h	Tue Dec 01 20:24:22 2009 +0900
+++ b/driver/pt1_i2c.h	Mon Dec 07 15:01:57 2009 +0900
@@ -52,6 +52,7 @@
 #define		READ_UNLOCK			(1 << 31)
 
 #define		XC3S_PCI_CLOCK		(512 / 4)
+#define		XC3S_PCI_CLOCK_PT2	(166)
 /***************************************************************************/
 /* I2Cアドレス定義                                                         */
 /***************************************************************************/
@@ -74,7 +75,7 @@
 /* 関数定義                                                                */
 /***************************************************************************/
 //extern	__u32	makei2c(void __iomem *, __u32, __u32, __u32, __u32, __u32, __u32);
-extern	int		xc3s_init(void __iomem *);
+extern	int		xc3s_init(void __iomem *, int);
 extern	void	SetStream(void __iomem *, __u32, __u32);
 extern	void	blockwrite(void __iomem *, WBLOCK *);
 extern	void	i2c_write(void __iomem *, struct mutex *, WBLOCK *);