]> git.sur5r.net Git - u-boot/commit
mvebu: axp: refactor board_sat_r_get() and caller
authorPhil Sutter <phil@nwl.cc>
Fri, 25 Dec 2015 13:41:21 +0000 (14:41 +0100)
committerStefan Roese <sr@denx.de>
Thu, 14 Jan 2016 13:08:59 +0000 (14:08 +0100)
commitbeadff1731bf607eee36467a3d3c12102a178c45
tree3ac287b85c392901de0149bbf25a4b475fc5b876
parent9a04527840dbb2c7b8bc5bd5145fa9bd26c597b4
mvebu: axp: refactor board_sat_r_get() and caller

Instead of calling board_sat_r_get() only for those boards providing the
satr11 value via I2C, call it for all boards and return static values
for those not using I2C.

In addition to that, make this a weak function to allow for board code
to override it.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Stefan Roese <sr@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-mvebu/serdes/axp/high_speed_env_lib.c