From 06bd1d7f9543db71851d8bac026c321ee6cd3b86 Mon Sep 17 00:00:00 2001 From: Alexey Brodkin Date: Fri, 21 Apr 2017 11:04:19 +0300 Subject: boards: axs10x, nsim, tb100: Enable cmdline history Enable shell commands history on ARC boards for more convenience of users. Signed-off-by: Alexey Brodkin --- include/configs/axs10x.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/configs/axs10x.h') diff --git a/include/configs/axs10x.h b/include/configs/axs10x.h index 66e8cd5e9a..e78a7a140a 100644 --- a/include/configs/axs10x.h +++ b/include/configs/axs10x.h @@ -96,6 +96,7 @@ #define CONFIG_AUTO_COMPLETE #define CONFIG_SYS_MAXARGS 16 +#define CONFIG_CMDLINE_EDITING /* * Environment settings -- cgit From c2a7ee226d38e943a5643b244f4190458e67b064 Mon Sep 17 00:00:00 2001 From: Alexey Brodkin Date: Thu, 1 Jun 2017 16:27:27 +0300 Subject: axs10x: Get rid of both I2C and EEPROM who used to use I2C With eb5ba3aefdf0 "i2c: Drop use of CONFIG_I2C_HARD" in place we cannot use I2C EEPROM any longer so we're dropping all references to both EEPROM and I2C which was only used for EEPROM. Signed-off-by: Alexey Brodkin Cc: Simon Glass --- include/configs/axs10x.h | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'include/configs/axs10x.h') diff --git a/include/configs/axs10x.h b/include/configs/axs10x.h index e78a7a140a..5ecdc764ac 100644 --- a/include/configs/axs10x.h +++ b/include/configs/axs10x.h @@ -51,32 +51,6 @@ #define CONFIG_SYS_NS16550_CLK 33333333 #define CONFIG_SYS_NS16550_MEM32 -/* - * I2C configuration - */ -#define CONFIG_SYS_I2C -#define CONFIG_I2C_ENV_EEPROM_BUS 2 -#define CONFIG_SYS_I2C_SPEED 100000 -#define CONFIG_SYS_I2C_SPEED1 100000 -#define CONFIG_SYS_I2C_SPEED2 100000 -#define CONFIG_SYS_I2C_SLAVE 0 -#define CONFIG_SYS_I2C_SLAVE1 0 -#define CONFIG_SYS_I2C_SLAVE2 0 -#define CONFIG_SYS_I2C_BASE 0xE001D000 -#define CONFIG_SYS_I2C_BASE1 0xE001E000 -#define CONFIG_SYS_I2C_BASE2 0xE001F000 -#define CONFIG_SYS_I2C_BUS_MAX 3 -#define IC_CLK 50 - -/* - * EEPROM configuration - */ -#define CONFIG_SYS_I2C_EEPROM_ADDR (0xA8 >> 1) -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 -#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW 1 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 -#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 64 - /* * Ethernet PHY configuration */ -- cgit From ef41e9d33e1ba524ef4bb0919959e2db92a2547c Mon Sep 17 00:00:00 2001 From: Alexey Brodkin Date: Thu, 1 Jun 2017 17:09:38 +0300 Subject: axs10x: Move environment from I2C EEPROM to SD-card With deprecation of I2C EEPROM we we left without a permamnent storage for U-Boot environment, but luckily we may simply use SD-card with FAT partition for that. Having environment on SD-card is much more convenient as it allows us to preserve all the settings when moving from one board to another. Moreover instead of 256 bytes of EEPROM we're now virtually unlimited in stuff being placed in environment like complicated scripts etc which are usually required in case of full-scale distros. Signed-off-by: Alexey Brodkin --- include/configs/axs10x.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/configs/axs10x.h') diff --git a/include/configs/axs10x.h b/include/configs/axs10x.h index 5ecdc764ac..908b018800 100644 --- a/include/configs/axs10x.h +++ b/include/configs/axs10x.h @@ -75,9 +75,12 @@ /* * Environment settings */ -#define CONFIG_ENV_IS_NOWHERE -#define CONFIG_ENV_SIZE SZ_512 -#define CONFIG_ENV_OFFSET 0 +#define CONFIG_ENV_IS_IN_FAT +#define CONFIG_ENV_SIZE SZ_16K +#define FAT_ENV_INTERFACE "mmc" +#define FAT_ENV_DEVICE_AND_PART "0:1" +#define FAT_ENV_FILE "uboot.env" +#define CONFIG_FAT_WRITE /* * Environment configuration -- cgit