i2c-iop3xx.h (5800571960234f9d1f1011bf135799b2014d4268) i2c-iop3xx.h (fdb7e884ad617f8aa69abdd7f39e3fdac85e081e)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/* ------------------------------------------------------------------------- */
3/* i2c-iop3xx.h algorithm driver definitions private to i2c-iop3xx.c */
4/* ------------------------------------------------------------------------- */
5/* Copyright (C) 2003 Peter Milne, D-TACQ Solutions Ltd
6 * <Peter dot Milne at D hyphen TACQ dot com>
7
1/* ------------------------------------------------------------------------- */
2/* i2c-iop3xx.h algorithm driver definitions private to i2c-iop3xx.c */
3/* ------------------------------------------------------------------------- */
4/* Copyright (C) 2003 Peter Milne, D-TACQ Solutions Ltd
5 * <Peter dot Milne at D hyphen TACQ dot com>
6
8 */
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, version 2.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details. */
9/* ------------------------------------------------------------------------- */
10
11
12#ifndef I2C_IOP3XX_H
13#define I2C_IOP3XX_H 1
14
15/*
16 * iop321 hardware bit definitions

--- 70 unchanged lines hidden (view full) ---

87#define IOP3XX_I2C_IO_SIZE 0x18
88
89struct i2c_algo_iop3xx_data {
90 void __iomem *ioaddr;
91 wait_queue_head_t waitq;
92 spinlock_t lock;
93 u32 SR_enabled, SR_received;
94 int id;
15/* ------------------------------------------------------------------------- */
16
17
18#ifndef I2C_IOP3XX_H
19#define I2C_IOP3XX_H 1
20
21/*
22 * iop321 hardware bit definitions

--- 70 unchanged lines hidden (view full) ---

93#define IOP3XX_I2C_IO_SIZE 0x18
94
95struct i2c_algo_iop3xx_data {
96 void __iomem *ioaddr;
97 wait_queue_head_t waitq;
98 spinlock_t lock;
99 u32 SR_enabled, SR_received;
100 int id;
101 struct gpio_desc *gpio_scl;
102 struct gpio_desc *gpio_sda;
95};
96
97#endif /* I2C_IOP3XX_H */
103};
104
105#endif /* I2C_IOP3XX_H */