From 78da60773c4822b071f4b050910ee0fdda8c0b2b Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Thu, 6 Oct 2005 01:22:22 +0200 Subject: Complete support for the KwikByte KB920x boards Patch by Anders Larsen, 05 Oct 2005 --- cpu/arm920t/at91rm9200/i2c.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cpu/arm920t/at91rm9200') diff --git a/cpu/arm920t/at91rm9200/i2c.c b/cpu/arm920t/at91rm9200/i2c.c index 569274082f..2565998e48 100644 --- a/cpu/arm920t/at91rm9200/i2c.c +++ b/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); /* 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; -- cgit