1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * File: include/pca9564.h
7 * Description: PCA9564 i2c bridge driver
10 * Copyright 2009 CJSC "NII STT", http://www.niistt.ru/
18 /* Clock speeds for the bus */
19 #define PCA_CON_330kHz 0x00
20 #define PCA_CON_288kHz 0x01
21 #define PCA_CON_217kHz 0x02
22 #define PCA_CON_146kHz 0x03
23 #define PCA_CON_88kHz 0x04
24 #define PCA_CON_59kHz 0x05
25 #define PCA_CON_44kHz 0x06
26 #define PCA_CON_36kHz 0x07
28 #define PCA_CON_AA 0x80 /* Assert Acknowledge */
29 #define PCA_CON_ENSIO 0x40 /* Enable */
30 #define PCA_CON_STA 0x20 /* Start */
31 #define PCA_CON_STO 0x10 /* Stop */
32 #define PCA_CON_SI 0x08 /* Serial Interrupt */
33 #define PCA_CON_CR 0x07 /* Clock Rate (MASK) */