X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Farch-s3c2410%2Fregs-iic.h;h=fed3288e20468cd03acfad559b5915676df2407a;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=028ab20292e00b8cf7f87a41e0d83c773a147afb;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-arm/arch-s3c2410/regs-iic.h b/include/asm-arm/arch-s3c2410/regs-iic.h index 028ab2029..fed3288e2 100644 --- a/include/asm-arm/arch-s3c2410/regs-iic.h +++ b/include/asm-arm/arch-s3c2410/regs-iic.h @@ -11,10 +11,11 @@ * * Changelog: * 03-Oct-2004 BJD Initial include for Linux + * 08-Nov-2004 BJD Added S3C2440 filter register */ -#ifndef __ASM_ARCH_IIC_H -#define __ASM_ARCH_IIC_H __FILE__ +#ifndef __ASM_ARCH_REGS_IIC_H +#define __ASM_ARCH_REGS_IIC_H __FILE__ /* see s3c2410x user guide, v1.1, section 9 (p447) for more info */ @@ -24,6 +25,7 @@ #define S3C2410_IICSTAT S3C2410_IICREG(0x04) #define S3C2410_IICADD S3C2410_IICREG(0x08) #define S3C2410_IICDS S3C2410_IICREG(0x0C) +#define S3C2440_IICLC S3C2410_IICREG(0x10) #define S3C2410_IICCON_ACKEN (1<<7) #define S3C2410_IICCON_TXDIV_16 (0<<6) @@ -47,4 +49,12 @@ #define S3C2410_IICSTAT_ADDR0 (1<<1) #define S3C2410_IICSTAT_LASTBIT (1<<0) -#endif /* __ASM_ARCH_IIC_H */ +#define S3C2410_IICLC_SDA_DELAY0 (0 << 0) +#define S3C2410_IICLC_SDA_DELAY5 (1 << 0) +#define S3C2410_IICLC_SDA_DELAY10 (2 << 0) +#define S3C2410_IICLC_SDA_DELAY15 (3 << 0) +#define S3C2410_IICLC_SDA_DELAY_MASK (3 << 0) + +#define S3C2410_IICLC_FILTER_ON (1<<2) + +#endif /* __ASM_ARCH_REGS_IIC_H */