[U-Boot] [PATCH 1/6] imx31_phycore: Remove CONFIG_SYS_I2C_SLAVE definition

From: Fabio Estevam fabio.estevam@freescale.com
According to include/i2c.h:
"/* * Many boards/controllers/drivers don't support an I2C slave interface so * provide a default slave address for them for use in common code. A real * value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does * support a slave interface. */ #ifndef CONFIG_SYS_I2C_SLAVE #define CONFIG_SYS_I2C_SLAVE 0xfe #endif "
As the mxc_i2c driver does not support slave mode, there is no need to define CONFIG_SYS_I2C_SLAVE in i.MX board file.
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com --- include/configs/imx31_phycore.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/include/configs/imx31_phycore.h b/include/configs/imx31_phycore.h index 3153eb5..b3244b9 100644 --- a/include/configs/imx31_phycore.h +++ b/include/configs/imx31_phycore.h @@ -56,7 +56,6 @@ #define CONFIG_I2C_MXC #define CONFIG_SYS_I2C_MX31_PORT2 #define CONFIG_SYS_I2C_SPEED 100000 -#define CONFIG_SYS_I2C_SLAVE 0xfe
#define CONFIG_MXC_UART #define CONFIG_MXC_UART_BASE UART1_BASE

From: Fabio Estevam fabio.estevam@freescale.com
According to include/i2c.h:
"/* * Many boards/controllers/drivers don't support an I2C slave interface so * provide a default slave address for them for use in common code. A real * value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does * support a slave interface. */ #ifndef CONFIG_SYS_I2C_SLAVE #define CONFIG_SYS_I2C_SLAVE 0xfe #endif "
As the mxc_i2c driver does not support slave mode, there is no need to define CONFIG_SYS_I2C_SLAVE in i.MX board file.
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com --- include/configs/mx35pdk.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/include/configs/mx35pdk.h b/include/configs/mx35pdk.h index bd57baa..5f75018 100644 --- a/include/configs/mx35pdk.h +++ b/include/configs/mx35pdk.h @@ -59,7 +59,6 @@ #define CONFIG_I2C_MXC #define CONFIG_SYS_I2C_MX35_PORT1 #define CONFIG_SYS_I2C_SPEED 100000 -#define CONFIG_SYS_I2C_SLAVE 0xfe #define CONFIG_MXC_SPI #define CONFIG_MXC_GPIO

According to include/i2c.h:
"/* * Many boards/controllers/drivers don't support an I2C slave interface so * provide a default slave address for them for use in common code. A real * value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does * support a slave interface. */ #ifndef CONFIG_SYS_I2C_SLAVE #define CONFIG_SYS_I2C_SLAVE 0xfe #endif "
As the mxc_i2c driver does not support slave mode, there is no need to define CONFIG_SYS_I2C_SLAVE in i.MX board file.
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com --- include/configs/mx53ard.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/include/configs/mx53ard.h b/include/configs/mx53ard.h index f48a41e..f879edc 100644 --- a/include/configs/mx53ard.h +++ b/include/configs/mx53ard.h @@ -52,7 +52,6 @@ #define CONFIG_I2C_MXC #define CONFIG_SYS_I2C_MX53_PORT2 #define CONFIG_SYS_I2C_SPEED 100000 -#define CONFIG_SYS_I2C_SLAVE 0xfe
/* MMC Configs */ #define CONFIG_FSL_ESDHC

From: Fabio Estevam fabio.estevam@freescale.com
According to include/i2c.h:
"/* * Many boards/controllers/drivers don't support an I2C slave interface so * provide a default slave address for them for use in common code. A real * value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does * support a slave interface. */ #ifndef CONFIG_SYS_I2C_SLAVE #define CONFIG_SYS_I2C_SLAVE 0xfe #endif "
As the mxc_i2c driver does not support slave mode, there is no need to define CONFIG_SYS_I2C_SLAVE in i.MX board file.
Cc: Jason Liu r64343@freescale.com Signed-off-by: Fabio Estevam fabio.estevam@freescale.com --- include/configs/mx53evk.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/include/configs/mx53evk.h b/include/configs/mx53evk.h index a77e5b2..2acefe9 100644 --- a/include/configs/mx53evk.h +++ b/include/configs/mx53evk.h @@ -55,7 +55,6 @@ #define CONFIG_I2C_MXC #define CONFIG_SYS_I2C_MX53_PORT2 1 #define CONFIG_SYS_I2C_SPEED 100000 -#define CONFIG_SYS_I2C_SLAVE 0xfe
/* PMIC Configs */ #define CONFIG_PMIC

From: Fabio Estevam fabio.estevam@freescale.com
According to include/i2c.h:
"/* * Many boards/controllers/drivers don't support an I2C slave interface so * provide a default slave address for them for use in common code. A real * value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does * support a slave interface. */ #ifndef CONFIG_SYS_I2C_SLAVE #define CONFIG_SYS_I2C_SLAVE 0xfe #endif "
As the mxc_i2c driver does not support slave mode, there is no need to define CONFIG_SYS_I2C_SLAVE in i.MX board file.
Cc: Jason Liu r64343@freescale.com Signed-off-by: Fabio Estevam fabio.estevam@freescale.com --- include/configs/mx53loco.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/include/configs/mx53loco.h b/include/configs/mx53loco.h index 7d782e2..7c45647 100644 --- a/include/configs/mx53loco.h +++ b/include/configs/mx53loco.h @@ -92,7 +92,6 @@ #define CONFIG_I2C_MXC #define CONFIG_SYS_I2C_MX53_PORT1 #define CONFIG_SYS_I2C_SPEED 100000 -#define CONFIG_SYS_I2C_SLAVE 0xfe
/* PMIC Controller */ #define CONFIG_PMIC

From: Fabio Estevam fabio.estevam@freescale.com
According to include/i2c.h:
"/* * Many boards/controllers/drivers don't support an I2C slave interface so * provide a default slave address for them for use in common code. A real * value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does * support a slave interface. */ #ifndef CONFIG_SYS_I2C_SLAVE #define CONFIG_SYS_I2C_SLAVE 0xfe #endif "
As the mxc_i2c driver does not support slave mode, there is no need to define CONFIG_SYS_I2C_SLAVE in i.MX board file.
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com --- include/configs/mx53smd.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/include/configs/mx53smd.h b/include/configs/mx53smd.h index a04db3f..61edd7f 100644 --- a/include/configs/mx53smd.h +++ b/include/configs/mx53smd.h @@ -52,7 +52,6 @@ #define CONFIG_I2C_MXC #define CONFIG_SYS_I2C_MX53_PORT2 #define CONFIG_SYS_I2C_SPEED 100000 -#define CONFIG_SYS_I2C_SLAVE 0xfe
/* MMC Configs */ #define CONFIG_FSL_ESDHC

On 03/06/2012 09:53, Fabio Estevam wrote:
From: Fabio Estevam fabio.estevam@freescale.com
According to include/i2c.h:
"/*
- Many boards/controllers/drivers don't support an I2C slave interface so
- provide a default slave address for them for use in common code. A real
- value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does
- support a slave interface.
*/ #ifndef CONFIG_SYS_I2C_SLAVE #define CONFIG_SYS_I2C_SLAVE 0xfe #endif
Whole series applied to u-boot-imx, thanks.
Best regards, Stefano Babic
participants (2)
-
Fabio Estevam
-
Stefano Babic