]> git.ipfire.org Git - thirdparty/u-boot.git/blob - include/pca9564.h
colibri_imx6: switch to zimage
[thirdparty/u-boot.git] / include / pca9564.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * File: include/pca9564.h
4 * Author:
5 *
6 * Created: 2009-06-23
7 * Description: PCA9564 i2c bridge driver
8 *
9 * Modified:
10 * Copyright 2009 CJSC "NII STT", http://www.niistt.ru/
11 *
12 * Bugs:
13 */
14
15 #ifndef _PCA9564_H
16 #define _PCA9564_H
17
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
27
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) */
34
35 #endif