diff options
Diffstat (limited to 'include/configs/TOP5200.h')
| -rw-r--r-- | include/configs/TOP5200.h | 30 | 
1 files changed, 8 insertions, 22 deletions
| diff --git a/include/configs/TOP5200.h b/include/configs/TOP5200.h index 2267d59d7..00056a33d 100644 --- a/include/configs/TOP5200.h +++ b/include/configs/TOP5200.h @@ -14,23 +14,7 @@   * Internal regs are at 0xf0000000   * Reset jumps to 0x00000100   * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier:	GPL-2.0+    */  #ifndef __CONFIG_H @@ -200,10 +184,13 @@  #define CONFIG_ENV_OVERWRITE  #define CONFIG_MISC_INIT_R -#undef	CONFIG_HARD_I2C			/* I2C with hardware support */ -#define	CONFIG_SOFT_I2C		1	/* I2C with softwate support */ +#define CONFIG_SYS_I2C_SOFT		/* I2C bit-banged */ -#if defined (CONFIG_SOFT_I2C) +#if defined(CONFIG_SYS_I2C_SOFT) +#  define CONFIG_SYS_I2C +#  define CONFIG_SYS_I2C_SOFT_SPEED	100000 +#  define CONFIG_SYS_I2C_SOFT_SLAVE	0x7F +/**/  #  define SDA0			0x40  #  define SCL0			0x80  #  define GPIOE0		*((volatile uchar*)(CONFIG_SYS_MBAR+0x0c00)) @@ -218,8 +205,7 @@  #  define I2C_DELAY		{udelay(5);}  #  define I2C_ACTIVE	{DDR0|=SDA0;}  #  define I2C_TRISTATE	{DDR0&=~SDA0;} -#  define CONFIG_SYS_I2C_SPEED		100000 -#  define CONFIG_SYS_I2C_SLAVE		0x7F +  #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57  #define CONFIG_SYS_I2C_FACT_ADDR	0x57  #endif |