projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename CFG_ macros to CONFIG_SYS
[platform/kernel/u-boot.git]
/
include
/
i2c.h
diff --git
a/include/i2c.h
b/include/i2c.h
index
9f771dd
..
8d6f867
100644
(file)
--- a/
include/i2c.h
+++ b/
include/i2c.h
@@
-47,31
+47,31
@@
#define I2C_RXTX_LEN 128 /* maximum tx/rx buffer length */
#if defined(CONFIG_I2C_MULTI_BUS)
#define I2C_RXTX_LEN 128 /* maximum tx/rx buffer length */
#if defined(CONFIG_I2C_MULTI_BUS)
-#define C
FG_MAX_I2C_BUS
2
+#define C
ONFIG_SYS_MAX_I2C_BUS
2
#define I2C_GET_BUS() i2c_get_bus_num()
#define I2C_SET_BUS(a) i2c_set_bus_num(a)
#else
#define I2C_GET_BUS() i2c_get_bus_num()
#define I2C_SET_BUS(a) i2c_set_bus_num(a)
#else
-#define C
FG_MAX_I2C_BUS
1
+#define C
ONFIG_SYS_MAX_I2C_BUS
1
#define I2C_GET_BUS() 0
#define I2C_SET_BUS(a)
#endif
/* define the I2C bus number for RTC and DTT if not already done */
#define I2C_GET_BUS() 0
#define I2C_SET_BUS(a)
#endif
/* define the I2C bus number for RTC and DTT if not already done */
-#if !defined(C
FG
_RTC_BUS_NUM)
-#define C
FG_RTC_BUS_NUM
0
+#if !defined(C
ONFIG_SYS
_RTC_BUS_NUM)
+#define C
ONFIG_SYS_RTC_BUS_NUM
0
#endif
#endif
-#if !defined(C
FG
_DTT_BUS_NUM)
-#define C
FG_DTT_BUS_NUM
0
+#if !defined(C
ONFIG_SYS
_DTT_BUS_NUM)
+#define C
ONFIG_SYS_DTT_BUS_NUM
0
#endif
#endif
-#if !defined(C
FG
_SPD_BUS_NUM)
-#define C
FG_SPD_BUS_NUM
0
+#if !defined(C
ONFIG_SYS
_SPD_BUS_NUM)
+#define C
ONFIG_SYS_SPD_BUS_NUM
0
#endif
#ifndef I2C_SOFT_DECLARATIONS
# if defined(CONFIG_MPC8260)
#endif
#ifndef I2C_SOFT_DECLARATIONS
# if defined(CONFIG_MPC8260)
-# define I2C_SOFT_DECLARATIONS volatile ioport_t *iop = ioport_addr((immap_t *)C
FG
_IMMR, I2C_PORT);
+# define I2C_SOFT_DECLARATIONS volatile ioport_t *iop = ioport_addr((immap_t *)C
ONFIG_SYS
_IMMR, I2C_PORT);
# elif defined(CONFIG_8xx)
# elif defined(CONFIG_8xx)
-# define I2C_SOFT_DECLARATIONS volatile immap_t *immr = (immap_t *)C
FG
_IMMR;
+# define I2C_SOFT_DECLARATIONS volatile immap_t *immr = (immap_t *)C
ONFIG_SYS
_IMMR;
# else
# define I2C_SOFT_DECLARATIONS
# endif
# else
# define I2C_SOFT_DECLARATIONS
# endif
@@
-81,7
+81,7
@@
* repeatedly to change the speed and slave addresses.
*/
void i2c_init(int speed, int slaveaddr);
* repeatedly to change the speed and slave addresses.
*/
void i2c_init(int speed, int slaveaddr);
-#ifdef C
FG
_I2C_INIT_BOARD
+#ifdef C
ONFIG_SYS
_I2C_INIT_BOARD
void i2c_init_board(void);
#endif
void i2c_init_board(void);
#endif