u-boot/arch/arm/include/asm/arch-lpc32xx/i2c.h
Simon Glass c3dc39a2f8 arm: Don't include common.h in header files
It is bad practice to include common.h in other header files since it can
bring in any number of superfluous definitions. It implies that some C
files don't include it and thus may be missing CONFIG options that are set
up by that file. The C files should include these themselves.

Update some header files in arch/arm to drop this.

Signed-off-by: Simon Glass <sjg@chromium.org>
2020-05-18 14:54:24 -04:00

36 lines
473 B
C

#ifndef _LPC32XX_I2C_H
#define _LPC32XX_I2C_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 */