浏览代码

Complete support for the KwikByte KB920x boards
Patch by Anders Larsen, 05 Oct 2005

Wolfgang Denk 19 年之前
父节点
当前提交
78da60773c
共有 3 个文件被更改,包括 6 次插入4 次删除
  1. 3 0
      CHANGELOG
  2. 1 2
      cpu/arm920t/at91rm9200/i2c.c
  3. 2 2
      include/configs/kb9202.h

+ 3 - 0
CHANGELOG

@@ -2,6 +2,9 @@
 Changes for U-Boot 1.1.4:
 Changes for U-Boot 1.1.4:
 ======================================================================
 ======================================================================
 
 
+* Complete support for the KwikByte KB920x boards
+  Patch by Anders Larsen, 05 Oct 2005
+
 * Set the AT91RM9200 clock to asynchronous mode
 * Set the AT91RM9200 clock to asynchronous mode
   Patch by Anders Larsen, 03 May 2005
   Patch by Anders Larsen, 03 May 2005
 
 

+ 1 - 2
cpu/arm920t/at91rm9200/i2c.c

@@ -65,9 +65,8 @@ at91_xfer(unsigned char chip, unsigned int addr, int alen,
 		| ((rw == 1) ? AT91C_TWI_MREAD : 0);
 		| ((rw == 1) ? AT91C_TWI_MREAD : 0);
 
 
 	/* Set TWI Internal Address Register with first messages data field */
 	/* Set TWI Internal Address Register with first messages data field */
-	/* only one address byte is supported  */
 	if (alen > 0)
 	if (alen > 0)
-		twi->TWI_IADR = addr & 0xff;
+		twi->TWI_IADR = addr;
 
 
 	length = len;
 	length = len;
 	buf = buffer;
 	buf = buffer;

+ 2 - 2
include/configs/kb9202.h

@@ -116,8 +116,8 @@
 #define	CFG_ENV_IS_IN_EEPROM
 #define	CFG_ENV_IS_IN_EEPROM
 
 
 #ifdef CONFIG_KB9202
 #ifdef CONFIG_KB9202
-#define CFG_ENV_OFFSET			0x3000
-#define CFG_ENV_SIZE			0x1000
+#define CFG_ENV_OFFSET			0x3E00
+#define CFG_ENV_SIZE			0x0200
 #else
 #else
 #define CFG_ENV_OFFSET			0x1000
 #define CFG_ENV_OFFSET			0x1000
 #define CFG_ENV_SIZE			0x1000
 #define CFG_ENV_SIZE			0x1000