uboot/include/pca9564.h
<<
>>
Prefs
   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 *
  13 * This program is free software; you can redistribute it and/or modify
  14 * it under the terms of the GNU General Public License as published by
  15 * the Free Software Foundation; either version 2 of the License, or
  16 * (at your option) any later version.
  17 *
  18 * This program is distributed in the hope that it will be useful,
  19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  21 * GNU General Public License for more details.
  22 *
  23 * You should have received a copy of the GNU General Public License
  24 * along with this program; if not, see the file COPYING, or write
  25 * to the Free Software Foundation, Inc.,
  26 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  27 */
  28
  29#ifndef _PCA9564_H
  30#define _PCA9564_H
  31
  32/* Clock speeds for the bus */
  33#define PCA_CON_330kHz      0x00
  34#define PCA_CON_288kHz      0x01
  35#define PCA_CON_217kHz      0x02
  36#define PCA_CON_146kHz      0x03
  37#define PCA_CON_88kHz       0x04
  38#define PCA_CON_59kHz       0x05
  39#define PCA_CON_44kHz       0x06
  40#define PCA_CON_36kHz       0x07
  41
  42#define PCA_CON_AA          0x80 /* Assert Acknowledge */
  43#define PCA_CON_ENSIO       0x40 /* Enable */
  44#define PCA_CON_STA         0x20 /* Start */
  45#define PCA_CON_STO         0x10 /* Stop */
  46#define PCA_CON_SI          0x08 /* Serial Interrupt */
  47#define PCA_CON_CR          0x07 /* Clock Rate (MASK) */
  48
  49#endif
  50