Complete support for the KwikByte KB920x boards
authorWolfgang Denk <wd@pollux.denx.de>
Wed, 5 Oct 2005 23:22:22 +0000 (01:22 +0200)
committerWolfgang Denk <wd@pollux.denx.de>
Wed, 5 Oct 2005 23:22:22 +0000 (01:22 +0200)
Patch by Anders Larsen, 05 Oct 2005

CHANGELOG
cpu/arm920t/at91rm9200/i2c.c
include/configs/kb9202.h

index 48049da..25d1a6f 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@
 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
   Patch by Anders Larsen, 03 May 2005
 
index 5692740..2565998 100644 (file)
@@ -65,9 +65,8 @@ at91_xfer(unsigned char chip, unsigned int addr, int alen,
                | ((rw == 1) ? AT91C_TWI_MREAD : 0);
 
        /* Set TWI Internal Address Register with first messages data field */
-       /* only one address byte is supported  */
        if (alen > 0)
-               twi->TWI_IADR = addr & 0xff;
+               twi->TWI_IADR = addr;
 
        length = len;
        buf = buffer;
index a530242..6590f6f 100644 (file)
 #define        CFG_ENV_IS_IN_EEPROM
 
 #ifdef CONFIG_KB9202
-#define CFG_ENV_OFFSET                 0x3000
-#define CFG_ENV_SIZE                   0x1000
+#define CFG_ENV_OFFSET                 0x3E00
+#define CFG_ENV_SIZE                   0x0200
 #else
 #define CFG_ENV_OFFSET                 0x1000
 #define CFG_ENV_SIZE                   0x1000