u-boot/cpu/arm926ejs
Prafulla Wadaskar 49d2cb4d61 arm: Kirkwood: add SYSRSTn Duration Counter Support
This feature can be used to trigger special command "sysrstcmd" using
reset key long press event and environment variable "sysrstdelay" is set
(useful for reset to factory or manufacturing mode execution)

Kirkwood SoC implements a hardware-based SYSRSTn duration counter.
When SYSRSTn is asserted low, a SYSRSTn duration counter is running.
The counter value is stored in the SYSRSTn Length Counter Register
The counter is based on the 25-MHz reference clock (40ns)
It is a 29-bit counter, yielding a maximum counting duration of
2^29/25 MHz (21.4 seconds). When the counter reach its maximum value,
it remains at this value until counter reset is triggered by setting
bit 31 of KW_REG_SYSRST_CNT

Implementation:
Upon long reset assertion (> ${sysrstdelay} in secs) sysrstcmd will be
executed if pre-defined in environment variables.
This feature will be disabled if "sysrstdelay" variable is unset.

for-ex.
setenv sysrst_cmd "echo starting factory reset;
		   nand erase 0xa0000 0x20000;
		   echo finish ed sysrst command;"
will erase particular nand sector if triggered by this event

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
2009-09-01 22:34:03 +02:00
..
at91 Add support for the Calao SBC35-A9G20 board 2009-09-01 22:13:37 +02:00
davinci ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
kirkwood arm: Kirkwood: add SYSRSTn Duration Counter Support 2009-09-01 22:34:03 +02:00
mx27 imx27lite: add support for imx27lite board from LogicPD 2009-09-01 22:10:55 +02:00
nomadik arm nomadik: add gpio support 2009-07-29 09:57:46 +02:00
omap arm920/926/926: remove non needed header 2009-06-12 20:39:49 +02:00
versatile arm920/926/926: remove non needed header 2009-06-12 20:39:49 +02:00
config.mk ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
cpu.c arm: remove cpu_init 2009-06-12 20:39:52 +02:00
Makefile arm: timer and interrupt init rework 2009-06-12 20:39:48 +02:00
start.S Make include/common.h usable by assembler code 2009-07-27 00:12:32 +02:00
u-boot.lds arm: unify linker script 2009-06-12 20:39:52 +02:00