summaryrefslogtreecommitdiffstats
path: root/include/configs/bf533-stamp.h
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2013-11-18 18:59:18 +0800
committerSonic Zhang <sonic.zhang@analog.com>2013-12-06 16:06:51 +0800
commite5cb60a033502ab24fef15fa005835b2e46f90eb (patch)
tree78efd47e26d0edb75f88f91ffb694d705695ad78 /include/configs/bf533-stamp.h
parent7a58eb96862d6112b094a7ce78637c4d60461679 (diff)
downloadtalos-obmc-uboot-e5cb60a033502ab24fef15fa005835b2e46f90eb.tar.gz
talos-obmc-uboot-e5cb60a033502ab24fef15fa005835b2e46f90eb.zip
blackfin: soft-i2c: No need to define blackfin specific soft i2c operations
Use default GPIO operations. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'include/configs/bf533-stamp.h')
-rw-r--r--include/configs/bf533-stamp.h29
1 files changed, 2 insertions, 27 deletions
diff --git a/include/configs/bf533-stamp.h b/include/configs/bf533-stamp.h
index a22c868422..f5b9658294 100644
--- a/include/configs/bf533-stamp.h
+++ b/include/configs/bf533-stamp.h
@@ -80,33 +80,8 @@
/*
* Software (bit-bang) I2C driver configuration
*/
-#define PF_SCL PF3
-#define PF_SDA PF2
-#define I2C_INIT (*pFIO_DIR |= PF_SCL); asm("ssync;")
-#define I2C_ACTIVE (*pFIO_DIR |= PF_SDA); \
- *pFIO_INEN &= ~PF_SDA; asm("ssync;")
-#define I2C_TRISTATE (*pFIO_DIR &= ~PF_SDA); \
- *pFIO_INEN |= PF_SDA; asm("ssync;")
-#define I2C_READ ((volatile)(*pFIO_FLAG_D & PF_SDA) != 0); \
- asm("ssync;")
-#define I2C_SDA(bit) if (bit) { \
- *pFIO_FLAG_S = PF_SDA; \
- asm("ssync;"); \
- } \
- else { \
- *pFIO_FLAG_C = PF_SDA; \
- asm("ssync;"); \
- }
-#define I2C_SCL(bit) if (bit) { \
- *pFIO_FLAG_S = PF_SCL; \
- asm("ssync;"); \
- } \
- else { \
- *pFIO_FLAG_C = PF_SCL; \
- asm("ssync;"); \
- }
-#define I2C_DELAY udelay(5) /* 1/4 I2C clock duration */
-
+#define CONFIG_SOFT_I2C_GPIO_SCL GPIO_PF3
+#define CONFIG_SOFT_I2C_GPIO_SDA GPIO_PF2
/*
* Flash Settings
OpenPOWER on IntegriCloud