Lines Matching +full:i2c +full:- +full:fast +full:- +full:mode
2 * (C) Copyright 2004-2010
5 * SPDX-License-Identifier: GPL-2.0+
10 /* I2C masks */
12 /* I2C Interrupt Enable Register (I2C_IE): */
20 /* I2C Status Register (I2C_STAT): */
34 /* I2C Interrupt Code Register (I2C_INTCODE): */
44 /* I2C Buffer Configuration Register (I2C_BUF): */
49 /* I2C Configuration Register (I2C_CON): */
51 #define I2C_CON_EN (1 << 15) /* I2C module enable */
52 #define I2C_CON_BE (1 << 14) /* Big endian mode */
53 #define I2C_CON_STB (1 << 11) /* Start byte mode (master mode only) */
54 #define I2C_CON_MST (1 << 10) /* Master/slave mode */
55 #define I2C_CON_TRX (1 << 9) /* Transmitter/receiver mode */
56 /* (master mode only) */
58 #define I2C_CON_STP (1 << 1) /* Stop condition (master mode only) */
59 #define I2C_CON_STT (1 << 0) /* Start condition (master mode only) */
61 /* I2C System Test Register (I2C_SYSTEST): */
64 #define I2C_SYSTEST_FREE (1 << 14) /* Free running mode, on brkpoint) */
65 #define I2C_SYSTEST_TMODE_MASK (3 << 12) /* Test mode select */
66 #define I2C_SYSTEST_TMODE_SHIFT (12) /* Test mode select */
72 /* I2C System Status Register (I2C_SYSS): */
102 * The reference minimum clock for fast mode is 9.6MHz
103 * The reference minimum clock for standard mode is 4MHz
113 * thigh = sclh + sclh_trim = (sampling clock * (1 - tlow_duty)) / speed
128 * These are the trim values for standard and fast speed