[rtems commit] bsp/gen83xx: Register I2C SEMTECH SC620 driver
Sebastian Huber
sebh at rtems.org
Wed Jan 9 15:41:06 UTC 2013
Module: rtems
Branch: master
Commit: da80202531a1f00727465fdf0c7e23c5ca8f48c4
Changeset: http://git.rtems.org/rtems/commit/?id=da80202531a1f00727465fdf0c7e23c5ca8f48c4
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jan 9 14:31:58 2013 +0100
bsp/gen83xx: Register I2C SEMTECH SC620 driver
---
c/src/lib/libbsp/powerpc/gen83xx/i2c/i2c_init.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/i2c/i2c_init.c b/c/src/lib/libbsp/powerpc/gen83xx/i2c/i2c_init.c
index 16d11d7..b427da7 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/i2c/i2c_init.c
+++ b/c/src/lib/libbsp/powerpc/gen83xx/i2c/i2c_init.c
@@ -20,6 +20,7 @@
#include <mpc83xx/mpc83xx_i2cdrv.h>
#include <libchip/i2c-2b-eeprom.h>
+#include <libchip/i2c-sc620.h>
#include <bsp/irq.h>
#include <bsp.h>
@@ -127,6 +128,17 @@ rtems_status_code bsp_register_i2c
}
#endif /* RTEMS_BSP_I2C_EEPROM_DEVICE_NAME */
+#ifdef MPC83XX_BOARD_BR_UID
+ if (n > 0) {
+ rtems_libi2c_register_drv(
+ "sc620",
+ &i2c_sc620_driver,
+ i2c_busno[0],
+ 0x70
+ );
+ }
+#endif /* MPC83XX_BOARD_BR_UID */
+
/*
* FIXME: register RTC driver, when available
*/
More information about the vc
mailing list