rtc: ds1337: drop "SYS" from config variables
PATCH 1/1 rtc: ds1337: drop "SYS" from config variables
There is some inconsistency between uses of CONFIG_RTC_DS13xx and CONFIG_SYS_RTC_DS13xx. Address this by dropping the "SYS" from these variables.
Signed-off-by Chris Packham <[email protected]>
--- README | 2 +- drivers/rtc/ds1337.c | 16 ++++++++-------- include/configs/UCP1020.h | 2 +- include/configs/tqma6_wru4.h | 2 +- scripts/config_whitelist.txt | 8 +++----- 5 files changed, 14 insertions(+), 16 deletions(-)
README +1 -1
@@ -1019,7 +1019,7 @@ The following options need to be configured: CONFIG_RTC_DS164x - use Dallas DS164x RTC CONFIG_RTC_ISL1208 - use Intersil ISL1208 RTC CONFIG_RTC_MAX6900 - use Maxim, Inc. MAX6900 RTC - CONFIG_SYS_RTC_DS1337_NOOSC - Turn off the OSC output for DS1337 + CONFIG_RTC_DS1337_NOOSC - Turn off the OSC output for DS1337 CONFIG_SYS_RV3029_TCR - enable trickle charger on RV3029 RTC.
drivers/rtc/ds1337.c +8 -8
@@ -150,11 +150,11 @@ int rtc_set (struct rtc_time *tmp)* SQW/INTB* pin and program it for 32,768 Hz output. Note that * according to the datasheet, turning on the square wave output * increases the current drain on the backup battery from about -* 600 nA to 2uA. Define CONFIG_SYS_RTC_DS1337_NOOSC if you wish to turn +* 600 nA to 2uA. Define CONFIG_RTC_DS1337_NOOSC if you wish to turn * off the OSC output. */ -#ifdef CONFIG_SYS_RTC_DS1337_NOOSC +#ifdef CONFIG_RTC_DS1337_NOOSC #define RTC_DS1337_RESET_VAL \ (RTC_CTL_BIT_INTCN | RTC_CTL_BIT_RS1 | RTC_CTL_BIT_RS2)#else
@@ -162,16 +162,16 @@ int rtc_set (struct rtc_time *tmp)#endif void rtc_reset (void ) { -#ifdef CONFIG_SYS_RTC_DS1337 +#ifdef CONFIG_RTC_DS1337 rtc_write (RTC_CTL_REG_ADDR ,RTC_DS1337_RESET_VAL ); -#elif definedCONFIG_SYS_RTC_DS1388 +#elif definedCONFIG_RTC_DS1388 rtc_write (RTC_CTL_REG_ADDR ,0x0 );/* hw default */ #endif -#ifdef CONFIG_SYS_DS1339_TCR_VAL -rtc_write (RTC_TC_REG_ADDR ,CONFIG_SYS_DS1339_TCR_VAL ); +#ifdef CONFIG_RTC_DS1339_TCR_VAL +rtc_write (RTC_TC_REG_ADDR ,CONFIG_RTC_DS1339_TCR_VAL );#endif -#ifdef CONFIG_SYS_DS1388_TCR_VAL -rtc_write (RTC_TC_REG_ADDR ,CONFIG_SYS_DS1388_TCR_VAL ); +#ifdef CONFIG_RTC_DS1388_TCR_VAL +rtc_write (RTC_TC_REG_ADDR ,CONFIG_RTC_DS1388_TCR_VAL );#endif }
include/configs/UCP1020.h +1 -1
@@ -311,7 +311,7 @@#define CONFIG_SYS_SPD_BUS_NUM 1/* For rom_loc and flash bank */ #define CONFIG_RTC_DS1337 -#define CONFIG_SYS_RTC_DS1337_NOOSC +#define CONFIG_RTC_DS1337_NOOSC #define CONFIG_SYS_I2C_RTC_ADDR 0x68#define CONFIG_SYS_I2C_PCA9557_ADDR 0x18#define CONFIG_SYS_I2C_NCT72_ADDR 0x4C
include/configs/tqma6_wru4.h +1 -1
@@ -29,7 +29,7 @@#define CONFIG_SYS_RTC_BUS_NUM 2#define CONFIG_SYS_I2C_RTC_ADDR 0x68/* Turn off RTC square-wave output to save battery */ -#define CONFIG_SYS_RTC_DS1337_NOOSC +#define CONFIG_RTC_DS1337_NOOSC /* LED */
scripts/config_whitelist.txt +3 -5
@@ -2269,9 +2269,12 @@ CONFIG_RSK7264 CONFIG_RSK7269 CONFIG_RTC_DS1307 CONFIG_RTC_DS1337 +CONFIG_RTC_DS1337_NOOSC CONFIG_RTC_DS1338 +CONFIG_RTC_DS1339_TCR_VAL CONFIG_RTC_DS1374 CONFIG_RTC_DS1388 +CONFIG_RTC_DS1388_TCR_VAL CONFIG_RTC_DS1556 CONFIG_RTC_DS174x CONFIG_RTC_DS3231
@@ -3383,8 +3386,6 @@ CONFIG_SYS_DRAMSZ1 CONFIG_SYS_DRAM_BASE CONFIG_SYS_DRAM_SIZE CONFIG_SYS_DRAM_TEST -CONFIG_SYS_DS1339_TCR_VAL -CONFIG_SYS_DS1388_TCR_VAL CONFIG_SYS_DSPIC_TEST_ADDR CONFIG_SYS_DSPIC_TEST_MASK CONFIG_SYS_DSPI_CS0
@@ -5515,9 +5516,6 @@ CONFIG_SYS_RSTC_RMR_VAL CONFIG_SYS_RTCSC CONFIG_SYS_RTC_BUS_NUM CONFIG_SYS_RTC_CNT -CONFIG_SYS_RTC_DS1337 -CONFIG_SYS_RTC_DS1337_NOOSC -CONFIG_SYS_RTC_DS1388 CONFIG_SYS_RTC_OSCILLATOR CONFIG_SYS_RTC_PL031_BASE CONFIG_SYS_RTC_REG_BASE_ADDR
Signature · 1 line
2.13.0
PATCH 1/1 rtc: ds1337: drop "SYS" from config variables
Quoted 4 lines · Chris Packham
There is some inconsistency between uses of
CONFIG_RTC_DS13xxandCONFIG_SYS_RTC_DS13xx. Address this by dropping the "SYS" from these variables.
Quoted 8 lines
Signed-off-by Chris Packham <[email protected]>--- README | 2 +- drivers/rtc/ds1337.c | 16 ++++++++-------- include/configs/UCP1020.h | 2 +- include/configs/tqma6_wru4.h | 2 +- scripts/config_whitelist.txt | 8 +++----- 5 files changed, 14 insertions(+), 16 deletions(-)
Reviewed-by Simon Glass <[email protected]>
Quoted 6 lines · Chris Packham
There is some inconsistency between uses of
CONFIG_RTC_DS13xxandCONFIG_SYS_RTC_DS13xx. Address this by dropping the "SYS" from these variables.Signed-off-by Chris Packham <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170610/1d9c0ee3/attachment.sig>