]> git.sur5r.net Git - u-boot/commit
env_mmc: configure environment offsets via device tree
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 15 May 2017 22:16:31 +0000 (00:16 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 29 May 2017 08:28:52 +0000 (17:28 +0900)
commitf8b8a554633f61c3a3e8dde3236917372edc977f
treee9f94875e99da37ec111d2f2f3d88d7033cc22f0
parent6183b29559107650cb38f905e069a93ff9da1d7d
env_mmc: configure environment offsets via device tree

This introduces the ability to override the environment offets from the
device tree by setting the following nodes in '/config':
'u-boot,mmc-env-offset' - overrides CONFIG_ENV_OFFSET
'u-boot,mmc-env-offset-redundant'
- overrides CONFIG_ENV_OFFSET_REDUND

To keep with the previous logic, the CONFIG_* defines still need to
be available and the statically defined values become the defaults,
when the corresponding properties are not set in the device-tree.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Simon Glass <sjg@chromium.org>
common/env_mmc.c