mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 02:38:56 +00:00
fb05788013
Since the lpc32xx i2c driver does not yet support the devicetree bindings, this structure is also needed by the board file as the hardware description is done there. Signed-off-by: Liam Beguin <lbeguin@tycoint.com> Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
37 lines
493 B
C
37 lines
493 B
C
#ifndef _LPC32XX_I2C_H
|
|
#define _LPC32XX_I2C_H
|
|
|
|
#include <common.h>
|
|
#include <asm/types.h>
|
|
|
|
/* i2c register set */
|
|
struct lpc32xx_i2c_base {
|
|
union {
|
|
u32 rx;
|
|
u32 tx;
|
|
};
|
|
u32 stat;
|
|
u32 ctrl;
|
|
u32 clk_hi;
|
|
u32 clk_lo;
|
|
u32 adr;
|
|
u32 rxfl;
|
|
u32 txfl;
|
|
u32 rxb;
|
|
u32 txb;
|
|
u32 stx;
|
|
u32 stxfl;
|
|
};
|
|
|
|
#ifdef CONFIG_DM_I2C
|
|
enum {
|
|
I2C_0, I2C_1, I2C_2,
|
|
};
|
|
|
|
struct lpc32xx_i2c_dev {
|
|
struct lpc32xx_i2c_base *base;
|
|
int index;
|
|
uint speed;
|
|
};
|
|
#endif /* CONFIG_DM_I2C */
|
|
#endif /* _LPC32XX_I2C_H */
|