]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/pca9564.h
common: arm: davinci: Move header file out of common
[people/ms/u-boot.git] / include / pca9564.h
CommitLineData
08ea550e
VY
1/*
2 * File: include/pca9564.h
3 * Author:
4 *
5 * Created: 2009-06-23
6 * Description: PCA9564 i2c bridge driver
7 *
8 * Modified:
9 * Copyright 2009 CJSC "NII STT", http://www.niistt.ru/
10 *
11 * Bugs:
12 *
1a459660 13 * SPDX-License-Identifier: GPL-2.0+
08ea550e
VY
14 */
15
16#ifndef _PCA9564_H
17#define _PCA9564_H
18
19/* Clock speeds for the bus */
20#define PCA_CON_330kHz 0x00
21#define PCA_CON_288kHz 0x01
22#define PCA_CON_217kHz 0x02
23#define PCA_CON_146kHz 0x03
24#define PCA_CON_88kHz 0x04
25#define PCA_CON_59kHz 0x05
26#define PCA_CON_44kHz 0x06
27#define PCA_CON_36kHz 0x07
28
29#define PCA_CON_AA 0x80 /* Assert Acknowledge */
30#define PCA_CON_ENSIO 0x40 /* Enable */
31#define PCA_CON_STA 0x20 /* Start */
32#define PCA_CON_STO 0x10 /* Stop */
33#define PCA_CON_SI 0x08 /* Serial Interrupt */
34#define PCA_CON_CR 0x07 /* Clock Rate (MASK) */
35
36#endif