mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 21:36:41 +07:00
a092de11bb
This patch adds device tree support to the pnx-i2c driver by using platform resources for memory region and irq and removing dependency on mach includes. The following platforms are affected: * PNX * LPC31xx (WIP) * LPC32xx The patch is based on a patch by Jon Smirl, working on lpc31xx integration Signed-off-by: Roland Stigge <stigge@antcom.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
39 lines
897 B
C
39 lines
897 B
C
/*
|
|
* Header file for I2C support on PNX010x/4008.
|
|
*
|
|
* Author: Dennis Kovalev <dkovalev@ru.mvista.com>
|
|
*
|
|
* 2004-2006 (c) MontaVista Software, Inc. This file is licensed under
|
|
* the terms of the GNU General Public License version 2. This program
|
|
* is licensed "as is" without any warranty of any kind, whether express
|
|
* or implied.
|
|
*/
|
|
|
|
#ifndef __I2C_PNX_H__
|
|
#define __I2C_PNX_H__
|
|
|
|
struct platform_device;
|
|
struct clk;
|
|
|
|
struct i2c_pnx_mif {
|
|
int ret; /* Return value */
|
|
int mode; /* Interface mode */
|
|
struct completion complete; /* I/O completion */
|
|
struct timer_list timer; /* Timeout */
|
|
u8 * buf; /* Data buffer */
|
|
int len; /* Length of data buffer */
|
|
};
|
|
|
|
struct i2c_pnx_algo_data {
|
|
void __iomem *ioaddr;
|
|
struct i2c_pnx_mif mif;
|
|
int last;
|
|
struct clk *clk;
|
|
struct i2c_adapter adapter;
|
|
phys_addr_t base;
|
|
int irq;
|
|
u32 timeout;
|
|
};
|
|
|
|
#endif /* __I2C_PNX_H__ */
|