From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Tue, 16 Oct 2012 05:58:47 +0200 Subject: [U-Boot] [PATCH] i2c_probe: update for use in scripting In-Reply-To: <1348431176-19960-1-git-send-email-eric.nelson@boundarydevices.com> References: <505F5164.4020202@boundarydevices.com> <1348431176-19960-1-git-send-email-eric.nelson@boundarydevices.com> Message-ID: <507CDB77.3060704@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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