diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-11-12 12:43:28 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-11-12 12:43:28 +0000 |
commit | fe5d5048c6c3fae402c626f17e2e61979c768b55 (patch) | |
tree | 2a3a85bb8ea028d0d06b3d6bca6f392dfecf843a /c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.h | |
parent | 2010-11-11 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-fe5d5048c6c3fae402c626f17e2e61979c768b55.tar.bz2 |
2010-11-12 Sebastian Huber <sebastian.huber@embedded-brains.de>
* mpc55xx/include/irq.h: Include missing <bspopts.h>. Format.
* mpc83xx/include/mpc83xx.h, mpc83xx/i2c/mpc83xx_i2cdrv.h,
mpc83xx/i2c/mpc83xx_i2cdrv.c: Changes to use this driver for the
MPC55XX familiy.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.h')
-rw-r--r-- | c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.h b/c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.h index 4aca85bbab..0353f62138 100644 --- a/c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.h +++ b/c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.h @@ -19,14 +19,30 @@ #ifndef _MPC83XX_I2CDRV_H #define _MPC83XX_I2CDRV_H -#include <mpc83xx/mpc83xx.h> #include <rtems/libi2c.h> #include <rtems/irq.h> +#include <bsp.h> + +#ifdef __GEN83xx_BSP_h + #include <mpc83xx/mpc83xx.h> +#endif + #ifdef __cplusplus extern "C" { #endif +#ifdef LIBBSP_POWERPC_MPC55XXEVB_BSP_H + typedef struct { + volatile uint8_t i2cadr; + volatile uint8_t i2cfdr; + volatile uint8_t i2ccr; + volatile uint8_t i2csr; + volatile uint8_t i2cdr; + volatile uint8_t i2cdfsrr; + } m83xxI2CRegisters_t; +#endif + typedef struct mpc83xx_i2c_softc { m83xxI2CRegisters_t *reg_ptr; /* ptr to HW registers */ int initialized; /* TRUE: module is initialized */ |