X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fi2c%2Fsoft_i2c.c;h=7f0303cc051fd6d06cea1a44247f217f1dd564f8;hb=2e668af5531815dc6a6190cf6490b866da71ffaa;hp=05bf4d476d15d86a9bdcc300ce795a488553f46d;hpb=37b33254c2cf6e47f2aaf40946ed6c98ba1057ed;p=u-boot diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c index 05bf4d476d..7f0303cc05 100644 --- a/drivers/i2c/soft_i2c.c +++ b/drivers/i2c/soft_i2c.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2009 * Heiko Schocher, DENX Software Engineering, hs@denx.de. @@ -6,21 +7,15 @@ * (C) Copyright 2001, 2002 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * - * SPDX-License-Identifier: GPL-2.0+ - * * This has been changed substantially by Gerald Van Baren, Custom IDEAS, * vanbaren@cideas.com. It was heavily influenced by LiMon, written by * Neil Russell. + * + * NOTE: This driver should be converted to driver model before June 2017. + * Please see doc/driver-model/i2c-howto.txt for instructions. */ #include -#ifdef CONFIG_MPC8260 /* only valid for MPC8260 */ -#include -#include -#endif -#if defined(CONFIG_AVR32) -#include -#endif #if defined(CONFIG_AT91FAMILY) #include #include @@ -29,9 +24,6 @@ #include #endif #endif -#if defined(CONFIG_MPC852T) || defined(CONFIG_MPC866) -#include -#endif #include #if defined(CONFIG_SOFT_I2C_GPIO_SCL) @@ -91,15 +83,7 @@ DECLARE_GLOBAL_DATA_PTR; #ifndef I2C_SOFT_DECLARATIONS -# if defined(CONFIG_MPC8260) -# define I2C_SOFT_DECLARATIONS volatile ioport_t *iop = \ - ioport_addr((immap_t *)CONFIG_SYS_IMMR, I2C_PORT); -# elif defined(CONFIG_8xx) -# define I2C_SOFT_DECLARATIONS volatile immap_t *immr = \ - (immap_t *)CONFIG_SYS_IMMR; -# else # define I2C_SOFT_DECLARATIONS -# endif #endif #if !defined(CONFIG_SYS_I2C_SOFT_SPEED)