[U-Boot] [PATCH v3 05/12] i2c: keymile: Drop use of CONFIG_I2C_HARD

Heiko Schocher hs at denx.de
Mon May 15 04:24:12 UTC 2017


Hello simon,

Am 13.05.2017 um 05:09 schrieb Simon Glass:
> Drop use of this long-deprecated option.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>   board/keymile/km82xx/km82xx.c | 5 -----
>   board/keymile/km_arm/km_arm.c | 4 ----
>   2 files changed, 9 deletions(-)

Thanks!

Applied to u-boot-i2c.git master

u-boot-i2c master just testing on travis:
https://travis-ci.org/hsdenx/u-boot-i2c/builds/232288665

bye,
Heiko
>
> diff --git a/board/keymile/km82xx/km82xx.c b/board/keymile/km82xx/km82xx.c
> index 51b4571d40..f5a98b33e7 100644
> --- a/board/keymile/km82xx/km82xx.c
> +++ b/board/keymile/km82xx/km82xx.c
> @@ -153,13 +153,8 @@ const iop_conf_t iop_conf_tab[4][32] = {
>   		{ 0,		 0,   0,   0,	0,   0 }, /* PD18	     */
>   		{ 0,		 0,   0,   0,	0,   0 }, /* PD17	     */
>   		{ 0,		 0,   0,   0,	0,   0 }, /* PD16	     */
> -#if defined(CONFIG_HARD_I2C)
> -		{ 1,		 1,   1,   0,	1,   0 }, /* PD15 I2C SDA    */
> -		{ 1,		 1,   1,   0,	1,   0 }, /* PD14 I2C SCL    */
> -#else
>   		{ 1,		 0,   0,   0,	1,   1 }, /* PD15	     */
>   		{ 1,		 0,   0,   1,	1,   1 }, /* PD14	     */
> -#endif
>   		{ 0,		 0,   0,   0,	0,   0 }, /* PD13	     */
>   		{ 0,		 0,   0,   0,	0,   0 }, /* PD12	     */
>   		{ 0,		 0,   0,   0,	0,   0 }, /* PD11	     */
> diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c
> index 079509c979..85785ffc02 100644
> --- a/board/keymile/km_arm/km_arm.c
> +++ b/board/keymile/km_arm/km_arm.c
> @@ -75,10 +75,6 @@ static const u32 kwmpp_config[] = {
>   #if defined(CONFIG_SYS_I2C_SOFT)
>   	MPP8_GPIO,		/* SDA */
>   	MPP9_GPIO,		/* SCL */
> -#endif
> -#if defined(CONFIG_HARD_I2C)
> -	MPP8_TW_SDA,
> -	MPP9_TW_SCK,
>   #endif
>   	MPP10_UART0_TXD,
>   	MPP11_UART0_RXD,
>

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list