blob: 99e8bcd9adb4890641a7dd783f36da1901e07ee8 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Valentin Yakovenkov28a1fcc2009-10-26 18:49:06 -04002/*
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:
Valentin Yakovenkov28a1fcc2009-10-26 18:49:06 -040013 */
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