i2c: at91: add support for digital filtering
[linux-2.6-microblaze.git] / drivers / i2c / busses / i2c-at91.h
index 499b506..c75447e 100644 (file)
@@ -84,6 +84,9 @@
 #define        AT91_TWI_ACR_DATAL(len) ((len) & 0xff)
 #define        AT91_TWI_ACR_DIR        BIT(8)
 
+#define AT91_TWI_FILTR         0x0044
+#define AT91_TWI_FILTR_FILT    BIT(0)
+
 #define        AT91_TWI_FMR            0x0050  /* FIFO Mode Register */
 #define        AT91_TWI_FMR_TXRDYM(mode)       (((mode) & 0x3) << 0)
 #define        AT91_TWI_FMR_TXRDYM_MASK        (0x3 << 0)
@@ -108,6 +111,7 @@ struct at91_twi_pdata {
        bool has_unre_flag;
        bool has_alt_cmd;
        bool has_hold_field;
+       bool has_dig_filtr;
        struct at_dma_slave dma_slave;
 };
 
@@ -145,6 +149,7 @@ struct at91_twi_dev {
        unsigned smr;
        struct i2c_client *slave;
 #endif
+       bool enable_dig_filt;
 };
 
 unsigned at91_twi_read(struct at91_twi_dev *dev, unsigned reg);