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/rs5c372.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/rs5c372.c')
| -rw-r--r-- | drivers/rtc/rs5c372.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/drivers/rtc/rs5c372.c b/drivers/rtc/rs5c372.c index 82dd9694e..d6cd7c825 100644 --- a/drivers/rtc/rs5c372.c +++ b/drivers/rtc/rs5c372.c @@ -50,8 +50,8 @@ static unsigned int rtc_debug = DEBUG;  #define rtc_debug 0	/* gcc will remove all the debug code for us */  #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  #define RS5C372_RAM_SIZE 0x10 @@ -77,7 +77,7 @@ rs5c372_readram(unsigned char *buf, int len)  {  	int ret; -	ret = i2c_read(CFG_I2C_RTC_ADDR, 0, 0, buf, len); +	ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, len);  	if (ret != 0) {  		printf("%s: failed to read\n", __FUNCTION__);  		return ret; @@ -117,7 +117,7 @@ rs5c372_enable(void)  	buf[14] = 0; /* reg. 13 */  	buf[15] = 0; /* reg. 14 */  	buf[16] = USE_24HOUR_MODE; /* reg. 15 */ -	ret = i2c_write(CFG_I2C_RTC_ADDR, 0, 0, buf, RS5C372_RAM_SIZE+1); +	ret = i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, RS5C372_RAM_SIZE+1);  	if (ret != 0) {  		printf("%s: failed\n", __FUNCTION__);  		return; @@ -218,7 +218,7 @@ int rtc_set (struct rtc_time *tmp)  	memset(buf, 0, sizeof(buf));  	/* only read register 15 */ -	ret = i2c_read(CFG_I2C_RTC_ADDR, 0, 0, buf, 1); +	ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 1);  	if (ret == 0) {  		/* need to save register 15 */ @@ -247,7 +247,7 @@ int rtc_set (struct rtc_time *tmp)  			printf("WARNING: year should be between 1970 and 2069!\n");  		buf[7] = bin2bcd(tmp->tm_year % 100); -		ret = i2c_write(CFG_I2C_RTC_ADDR, 0, 0, buf, 8); +		ret = i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 8);  		if (ret != 0) {  			printf("rs5c372_set_datetime(), i2c_master_send() returned %d\n",ret);  			return -1; |