blackfin: rename bfin-twi_i2c driver to adi_i2c
authorScott Jiang <scott.jiang.linux@gmail.com>
Thu, 13 Nov 2014 07:30:53 +0000 (15:30 +0800)
committerHeiko Schocher <hs@denx.de>
Mon, 17 Nov 2014 07:10:04 +0000 (08:10 +0100)
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
23 files changed:
drivers/i2c/Makefile
drivers/i2c/adi_i2c.c [moved from drivers/i2c/bfin-twi_i2c.c with 98% similarity]
include/configs/bct-brettl2.h
include/configs/bf518f-ezbrd.h
include/configs/bf526-ezbrd.h
include/configs/bf527-ad7160-eval.h
include/configs/bf527-ezkit.h
include/configs/bf527-sdp.h
include/configs/bf537-minotaur.h
include/configs/bf537-pnav.h
include/configs/bf537-srv1.h
include/configs/bf537-stamp.h
include/configs/bf538f-ezkit.h
include/configs/bf548-ezkit.h
include/configs/bf609-ezkit.h
include/configs/br4.h
include/configs/cm-bf527.h
include/configs/cm-bf537e.h
include/configs/cm-bf537u.h
include/configs/cm-bf548.h
include/configs/pr1.h
include/configs/tcm-bf518.h
include/configs/tcm-bf537.h

index d067897..dae3d71 100644 (file)
@@ -5,7 +5,7 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-obj-$(CONFIG_BFIN_TWI_I2C) += bfin-twi_i2c.o
+obj-$(CONFIG_SYS_I2C_ADI) += adi_i2c.o
 obj-$(CONFIG_I2C_MV) += mv_i2c.o
 obj-$(CONFIG_PCA9564_I2C) += pca9564_i2c.o
 obj-$(CONFIG_TSI108_I2C) += tsi108_i2c.o
similarity index 98%
rename from drivers/i2c/bfin-twi_i2c.c
rename to drivers/i2c/adi_i2c.c
index cfab064..cb74062 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * i2c.c - driver for Blackfin on-chip TWI/I2C
+ * i2c.c - driver for ADI TWI/I2C
  *
- * Copyright (c) 2006-2010 Analog Devices Inc.
+ * Copyright (c) 2006-2014 Analog Devices Inc.
  *
  * Licensed under the GPL-2 or later.
  */
@@ -9,9 +9,8 @@
 #include <common.h>
 #include <i2c.h>
 
-#include <asm/blackfin.h>
 #include <asm/clock.h>
-#include <asm/mach-common/bits/twi.h>
+#include <asm/twi.h>
 
 /* Every register is 32bit aligned, but only 16bits in size */
 #define ureg(name) u16 name; u16 __pad_##name;
index d0828d5..f0b74d8 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index 20f6ed1..4df51b9 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index c33d035..55bfbbe 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index b497f26..589c7a5 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index 0bca53f..0e68952 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index 9d43b81..a3ad7ae 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index 3bc364c..d94c2df 100644 (file)
 /*
  * I2C settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 #define CONFIG_SYS_I2C_SPEED           50000
 #define CONFIG_SYS_I2C_SLAVE           0
index ba74a69..6c9a907 100644 (file)
 /*
  * I2C settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index 0b723cf..a6ceffa 100644 (file)
 /*
  * I2C settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 #define CONFIG_SYS_I2C_SPEED           50000
 #define CONFIG_SYS_I2C_SLAVE           0
index 29f9316..7ab644f 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index a655282..743e193 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index da5f029..6b29d08 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index 12192ff..f02e155 100644 (file)
@@ -81,7 +81,7 @@
 #define CONFIG_PHYLIB
 
 /* i2c Settings */
-#define CONFIG_BFIN_TWI_I2C
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C
 
 /*
index 3f24008..13e939f 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C
 
 
index f5351ad..3668903 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index 1729b44..85f5341 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index 272aa74..5dffd1b 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index 7f27eda..13ea067 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index 0f57e86..eb18d6d 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C
 
 
index 6673026..e9bff83 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1
 
 
index 9998343..caf8847 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_BFIN_TWI_I2C    1
+#define CONFIG_SYS_I2C_ADI
 #define CONFIG_HARD_I2C                1