global: Move remaining CONFIG_SYS_* to CFG_SYS_*
The rest of the unmigrated CONFIG symbols in the CONFIG_SYS namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -83,7 +83,7 @@ config BOOTCOUNT_I2C
|
||||
bool "Boot counter on I2C device"
|
||||
help
|
||||
Enable support for the bootcounter on an i2c (like RTC) device.
|
||||
CONFIG_SYS_I2C_RTC_ADDR = i2c chip address
|
||||
CFG_SYS_I2C_RTC_ADDR = i2c chip address
|
||||
CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for
|
||||
the bootcounter.
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ void bootcount_store(ulong a)
|
||||
|
||||
buf[0] = BC_MAGIC;
|
||||
buf[1] = (a & 0xff);
|
||||
ret = i2c_write(CONFIG_SYS_I2C_RTC_ADDR, CONFIG_SYS_BOOTCOUNT_ADDR,
|
||||
ret = i2c_write(CFG_SYS_I2C_RTC_ADDR, CONFIG_SYS_BOOTCOUNT_ADDR,
|
||||
CONFIG_BOOTCOUNT_ALEN, buf, 2);
|
||||
if (ret != 0)
|
||||
puts("Error writing bootcount\n");
|
||||
@@ -28,7 +28,7 @@ ulong bootcount_load(void)
|
||||
unsigned char buf[3];
|
||||
int ret;
|
||||
|
||||
ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, CONFIG_SYS_BOOTCOUNT_ADDR,
|
||||
ret = i2c_read(CFG_SYS_I2C_RTC_ADDR, CONFIG_SYS_BOOTCOUNT_ADDR,
|
||||
CONFIG_BOOTCOUNT_ALEN, buf, 2);
|
||||
if (ret != 0) {
|
||||
puts("Error loading bootcount\n");
|
||||
|
||||
Reference in New Issue
Block a user