[U-Boot] [PATCH] i2c_probe: update for use in scripting
Heiko Schocher
hs at denx.de
Tue Oct 16 05:58:47 CEST 2012
Hello Eric Nelson,
On 23.09.2012 22:12, Eric Nelson wrote:
> Allow the use of an I2C address to test and return success
> if one or more devices is found.
>
> This allows device presence to alter the flow of a script.
> e.g.
> if i2c probe 0x04 ; then
> echo found Hannstar touch ;
> fi
>
> Signed-off-by: Eric Nelson<eric.nelson at boundarydevices.com>
> ---
> common/cmd_i2c.c | 20 ++++++++++++++++----
> 1 files changed, 16 insertions(+), 4 deletions(-)
Applied to u-boot-i2c master
Thanks!
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
More information about the U-Boot
mailing list