diff options
| author | Markus Klotzbuecher <mk@denx.de> | 2008-10-21 09:18:01 +0200 | 
|---|---|---|
| committer | Markus Klotzbuecher <mk@denx.de> | 2008-10-21 09:18:01 +0200 | 
| commit | 50bd0057ba8fceeb48533f8b1a652ccd0e170838 (patch) | |
| tree | ea1a183343573c2a48248923b96d316c0956727c /drivers/rtc/rx8025.c | |
| parent | 9dbc366744960013965fce8851035b6141f3b3ae (diff) | |
| parent | f82642e33899766892499b163e60560fbbf87773 (diff) | |
| download | olio-uboot-2014.01-50bd0057ba8fceeb48533f8b1a652ccd0e170838.tar.xz olio-uboot-2014.01-50bd0057ba8fceeb48533f8b1a652ccd0e170838.zip | |
Merge git://git.denx.de/u-boot into x1
Conflicts:
	drivers/usb/usb_ohci.c
Diffstat (limited to 'drivers/rtc/rx8025.c')
| -rw-r--r-- | drivers/rtc/rx8025.c | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/drivers/rtc/rx8025.c b/drivers/rtc/rx8025.c index 9f4ce2f9a..da87394a0 100644 --- a/drivers/rtc/rx8025.c +++ b/drivers/rtc/rx8025.c @@ -42,8 +42,8 @@  #endif  /*---------------------------------------------------------------------*/ -#ifndef CFG_I2C_RTC_ADDR -# define CFG_I2C_RTC_ADDR	0x32 +#ifndef CONFIG_SYS_I2C_RTC_ADDR +# define CONFIG_SYS_I2C_RTC_ADDR	0x32  #endif  /* @@ -102,7 +102,7 @@ int rtc_get (struct rtc_time *tmp)  	uchar sec, min, hour, mday, wday, mon, year, ctl2;  	uchar buf[16]; -	if (i2c_read(CFG_I2C_RTC_ADDR, 0, 0, buf, 16)) +	if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 16))  		printf("Error reading from RTC\n");  	sec = rtc_read(RTC_SEC_REG_ADDR); @@ -189,7 +189,7 @@ void rtc_reset (void)  	uchar buf[16];  	uchar ctl2; -	if (i2c_read(CFG_I2C_RTC_ADDR, 0,    0,   buf, 16)) +	if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0,    0,   buf, 16))  		printf("Error reading from RTC\n");  	ctl2 = rtc_read(RTC_CTL2_REG_ADDR); @@ -221,7 +221,7 @@ static void rtc_write (uchar reg, uchar val)  	uchar buf[2];  	buf[0] = reg << 4;  	buf[1] = val; -	if (i2c_write(CFG_I2C_RTC_ADDR, 0, 0, buf, 2) != 0) +	if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 2) != 0)  		printf("Error writing to RTC\n");  } |