[U-Boot] [PATCH] i2c: add i2c reset command.
Wolfgang Denk
wd at denx.de
Mon Sep 29 10:45:24 CEST 2008
Dear Heiko Schocher,
In message <48E0894D.2010101 at denx.de> you wrote:
> Signed-off-by: Heiko Schocher <hs at denx.de>
> ---
> common/cmd_i2c.c | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c
> index ef3928e..414c888 100644
> --- a/common/cmd_i2c.c
> +++ b/common/cmd_i2c.c
> @@ -1182,6 +1182,12 @@ int do_sdram (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
> #endif
>
> #if defined(CONFIG_I2C_CMD_TREE)
> +int do_i2c_res(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
> +{
> + i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
> + return 0;
> +}
What does "res" mean? "Resource"? "resync"? "rescale"? "rescan"?
If you mean reset, then please write reset.
Also, in which way is this supposed to reset the I2C controller?
In short: which problem is this supposed to fix?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
One of the advantages of being a captain is being able to ask for ad-
vice without necessarily having to take it.
-- Kirk, "Dagger of the Mind", stardate 2715.2
More information about the U-Boot
mailing list