Valentin Yakovenkov | 28a1fcc | 2009-10-26 18:49:06 -0400 | [diff] [blame] | 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 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 13 | * SPDX-License-Identifier: GPL-2.0+ |
Valentin Yakovenkov | 28a1fcc | 2009-10-26 18:49:06 -0400 | [diff] [blame] | 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 |