diff options
| author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-12-17 16:53:07 +0100 | 
|---|---|---|
| committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-12-17 16:53:07 +0100 | 
| commit | cb5473205206c7f14cbb1e747f28ec75b48826e2 (patch) | |
| tree | 8f4808d60917100b18a10b05230f7638a0a9bbcc /cpu/pxa/i2c.c | |
| parent | baf449fc5ff96f071bb0e3789fd3265f6d4fd9a0 (diff) | |
| parent | 92c78a3bbcb2ce508b4bf1c4a1e0940406a024bb (diff) | |
| download | olio-uboot-2014.01-cb5473205206c7f14cbb1e747f28ec75b48826e2.tar.xz olio-uboot-2014.01-cb5473205206c7f14cbb1e747f28ec75b48826e2.zip | |
Merge branch 'fixes' into cleanups
Conflicts:
	board/atmel/atngw100/atngw100.c
	board/atmel/atstk1000/atstk1000.c
	cpu/at32ap/at32ap700x/gpio.c
	include/asm-avr32/arch-at32ap700x/clk.h
	include/configs/atngw100.h
	include/configs/atstk1002.h
	include/configs/atstk1003.h
	include/configs/atstk1004.h
	include/configs/atstk1006.h
	include/configs/favr-32-ezkit.h
	include/configs/hammerhead.h
	include/configs/mimc200.h
Diffstat (limited to 'cpu/pxa/i2c.c')
| -rw-r--r-- | cpu/pxa/i2c.c | 23 | 
1 files changed, 4 insertions, 19 deletions
| diff --git a/cpu/pxa/i2c.c b/cpu/pxa/i2c.c index df537c435..6b72ba13a 100644 --- a/cpu/pxa/i2c.c +++ b/cpu/pxa/i2c.c @@ -37,7 +37,7 @@  #ifdef CONFIG_HARD_I2C  /* - *	- CFG_I2C_SPEED + *	- CONFIG_SYS_I2C_SPEED   *	- I2C_PXA_SLAVE_ADDR   */ @@ -48,7 +48,7 @@  /*#define	DEBUG_I2C	1	/###* activate local debugging output  */  #define I2C_PXA_SLAVE_ADDR	0x1	/* slave pxa unit address           */ -#if (CFG_I2C_SPEED == 400000) +#if (CONFIG_SYS_I2C_SPEED == 400000)  #define I2C_ICR_INIT	(ICR_FM | ICR_BEIE | ICR_IRFIE | ICR_ITEIE | ICR_GCD | ICR_SCLE)  #else  #define I2C_ICR_INIT	(ICR_BEIE | ICR_IRFIE | ICR_ITEIE | ICR_GCD | ICR_SCLE) @@ -254,7 +254,7 @@ i2c_transfer_finish:  void i2c_init(int speed, int slaveaddr)  { -#ifdef CFG_I2C_INIT_BOARD +#ifdef CONFIG_SYS_I2C_INIT_BOARD  	/* call board specific i2c bus reset routine before accessing the   */  	/* environment, which might be in a chip on that bus. For details   */  	/* about this problem see doc/I2C_Edge_Conditions.                  */ @@ -329,7 +329,7 @@ int i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len)  	 * send memory address bytes;  	 * alen defines how much bytes we have to send.  	 */ -	/*addr &= ((1 << CFG_EEPROM_PAGE_WRITE_BITS)-1); */ +	/*addr &= ((1 << CONFIG_SYS_EEPROM_PAGE_WRITE_BITS)-1); */  	addr_bytes[0] = (u8)((addr >>  0) & 0x000000FF);  	addr_bytes[1] = (u8)((addr >>  8) & 0x000000FF);  	addr_bytes[2] = (u8)((addr >> 16) & 0x000000FF); @@ -455,19 +455,4 @@ int i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len)  } -uchar i2c_reg_read (uchar chip, uchar reg) -{ -	uchar buf; - -	PRINTD(("i2c_reg_read(chip=0x%02x, reg=0x%02x)\n",chip,reg)); -	i2c_read(chip, reg, 1, &buf, 1); -	return (buf); -} - -void  i2c_reg_write(uchar chip, uchar reg, uchar val) -{ -	PRINTD(("i2c_reg_write(chip=0x%02x, reg=0x%02x, val=0x%02x)\n",chip,reg,val)); -	i2c_write(chip, reg, 1, &val, 1); -} -  #endif	/* CONFIG_HARD_I2C */ |