uboot/common
Nikita Kiryanov aa9e604410 cmd: eeprom: add support for layout aware commands
Introduce the (optional) eeprom print and eeprom update commands.

These commands are eeprom layout aware:
* The eeprom print command prints the contents of the eeprom in a human
  readable way (eeprom layout fields, and data formatted to be fit for human
  consumption).
* The eeprom update command allows user to update eeprom fields by specifying
  the field name, and providing the new data in a human readable format (same
  format as displayed by the eeprom print command).
* Both commands can either auto detect the layout, or be told which layout to
  use.

New CONFIG options:
CONFIG_CMD_EEPROM_LAYOUT - enables commands.
CONFIG_EEPROM_LAYOUT_HELP_STRING - tells user what layout names are supported

Feature API:
__weak int parse_layout_version(char *str)
	- override to provide your own layout name parsing
__weak void __eeprom_layout_assign(struct eeprom_layout *layout, int layout_version);
	- override to setup the layout metadata based on the version
__weak int eeprom_layout_detect(unsigned char *data)
	- override to provide your own algorithm for detecting layout version
eeprom_field.c
	- contains various printing and updating functions for common types of
	  eeprom fields. Can be used for defining custom layouts.

Cc: Heiko Schocher <hs@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Tom Rini <trini@konsulko.com>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
2016-05-20 17:02:07 -04:00
..
eeprom cmd: eeprom: add support for layout aware commands 2016-05-20 17:02:07 -04:00
init
spl Merge git://git.denx.de/u-boot-dm 2016-05-17 13:58:27 -04:00
Kconfig
Makefile cmd: eeprom: add support for layout aware commands 2016-05-20 17:02:07 -04:00
autoboot.c
bedbug.c
board_f.c x86: Allow use of serial soon after relocation 2016-03-17 10:27:24 +08:00
board_info.c
board_r.c dm: scsi: Rename CONFIG_CMD_SCSI to CONFIG_SCSI 2016-05-17 09:54:43 -06:00
bootm.c fdt: Allow libfdt to be used in SPL 2016-03-14 19:18:26 -04:00
bootm_os.c
bootretry.c
bootstage.c
bouncebuf.c
cli.c common: cli: Fix typo CONFIG_CMDINE -> CONFIG_CMDLINE 2016-04-04 13:13:07 -04:00
cli_hush.c
cli_readline.c
cli_simple.c
command.c Drop command-processing code when CONFIG_CMDLINE is disabled 2016-04-01 17:17:40 -04:00
console.c debug_uart: Remove duplicated carriage return handling 2016-03-27 09:12:26 -04:00
cros_ec.c
ddr_spd.c
dlmalloc.c common/dlmalloc.c: Delete content that was moved to malloc.h 2016-04-25 15:10:36 -04:00
dlmalloc.src
edid.c
env_attr.c
env_callback.c
env_common.c
env_dataflash.c
env_eeprom.c env_eeprom invalidates gd->env_addr by setting it to an offset value 2016-04-11 12:44:37 -04:00
env_embedded.c
env_ext4.c
env_fat.c dm: block: Rename device number member dev to devnum 2016-03-14 15:34:50 -06:00
env_flags.c
env_flash.c
env_mmc.c dm: mmc: Use the new select_hwpart() API 2016-05-17 09:54:43 -06:00
env_nand.c
env_nowhere.c
env_nvram.c
env_onenand.c
env_remote.c
env_sata.c common: env: support sata device 2016-04-18 12:29:14 -04:00
env_sf.c common: env_sf: Add exclamation mark 2016-04-01 17:17:43 -04:00
env_ubi.c
exports.c
fb_mmc.c dm: block: Adjust device calls to go through helpers function 2016-03-14 15:34:50 -06:00
fb_nand.c
fdt_support.c fdt: fix setting MAC addresses for multiple interfaces 2016-05-03 17:52:10 -05:00
flash.c
hash.c
hwconfig.c
ide.c dm: ide: Add support for driver-model block devices 2016-05-17 09:54:43 -06:00
image-android.c
image-fdt.c efi_loader: Call fdt preparation functions 2016-03-15 21:30:14 -04:00
image-fit.c common: image-fit: Fix load and entry addresses in FIT image 2016-03-14 19:18:41 -04:00
image-sig.c
image-sparse.c fastboot: sparse: remove unnecessary logging 2016-04-11 20:48:29 -04:00
image.c image: Add functions to obtain short names 2016-03-14 19:18:28 -04:00
iomux.c
iotrace.c
kallsyms.c
kgdb.c Fix spelling of "occurred". 2016-05-02 18:37:09 -04:00
kgdb_stubs.c
lcd.c lcd: Fix compile warning in 64bit mode 2016-03-27 09:12:17 -04:00
lcd_console.c
lcd_console_rotation.c
lcd_simplefb.c
lynxkdi.c
main.c Panic when no command line processing can be performed 2016-03-22 12:16:10 -04:00
malloc_simple.c malloc_simple: Add a little more debugging 2016-03-17 10:27:23 +08:00
memsize.c
menu.c Fix typo choosen in comments and printf logs 2016-03-27 09:12:23 -04:00
miiphyutil.c
s_record.c
sata.c dm: sata: Add support for driver-model block devices 2016-05-17 09:54:43 -06:00
scsi.c dm: scsi: Add support for driver-model block devices 2016-05-17 09:54:43 -06:00
splash.c
splash_source.c
stdio.c
system_map.c
update.c
usb.c usb: Assure Get Descriptor request is in separate microframe 2016-05-06 20:06:56 +02:00
usb_hub.c usb: hub: Don't continue on get_port_status failure 2016-05-06 20:06:56 +02:00
usb_kbd.c usb: kbd: Do not deregister usbkbd twice when using dm 2016-04-10 17:18:42 +02:00
usb_storage.c dm: blk: Add a easier way to create a named block device 2016-05-17 09:54:43 -06:00
xyzModem.c lib/crc16.c: Rename cyg_crc16() to crc16_ccitt() and add crc start value 2016-03-14 19:18:42 -04:00