[U-Boot] [PATCH] arm: Kirkwood: add SYSRSTn Duration Counter Support

Wolfgang Denk wd at denx.de
Thu Aug 6 16:23:17 CEST 2009


Dear Prafulla Wadaskar,

In message <1249583526-22532-1-git-send-email-prafulla at marvell.com> you wrote:
> This feature can be used to trigger special command "sysrst_cmd" using
> reset key long press event
> (useful for reset to factory or manufacturing mode execution)

Cool.

> Implementation: upon long reset assertion (> 5secs)
> sysrst_cmd will be executed if pre-defined in environment variables

I like the feature, but I don't like the hardwired timeout value.

> +#ifndef CONFIG_SYS_RST_THRESHOLD_TIME
> +#define CONFIG_SYS_RST_THRESHOLD_TIME	5
> +#endif /* CONFIG_SYS_RST_THRESHOLD_TIME */

Could you please use an environment variable for this, i. e.
"sysrstcmd" and "sysrstdelay" (note that I omitted the underscore,
too, because it looks ugly to me). This goes more in line with
existing definitions like "bootcmd" and "bootdelay".

Thanks.

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
Your csh still thinks true is false. Write to your vendor  today  and
tell them that next year Configure ought to "rm /bin/csh" unless they
fix  their blasted shell. :-)
                 - Larry Wall in Configure from the perl distribution


More information about the U-Boot mailing list