common: env: support sata device
authorPeng Fan <van.freenix@gmail.com>
Sun, 3 Apr 2016 13:52:13 +0000 (21:52 +0800)
committerTom Rini <trini@konsulko.com>
Mon, 18 Apr 2016 16:29:14 +0000 (12:29 -0400)
commit125d193c4f3895f772a3463996cc8a2554d0b36e
tree8c30898efcd7555953198a348f1afb5632937260
parent108f8418597350bd98357f25acaa8ab8a0435779
common: env: support sata device

Introduce env support for sata device.
1. Implement write_env/read_env/env_relocate_spec/saveenv/sata_get_env_dev
2. If want to enable this feature, define CONFIG_ENV_IS_IN_SATA, and
   define CONFIG_SYS_SATA_ENV_DEV or implement your own sata_get_ev_dev.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Stuart Longland <stuartl@vrt.com.au>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
cmd/nvedit.c
common/Makefile
common/env_sata.c [new file with mode: 0644]