u-boot/include/asm-arm
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
..
arch-arm720t s3c4510b: move specific code to soc directory 2009-03-29 23:01:36 +02:00
arch-arm925t Patches by Kshitij, 04 Jul 2003 2003-07-15 20:04:06 +00:00
arch-arm926ejs * Patch by George G. Davis, 19 Aug 2003: 2003-08-29 22:00:43 +00:00
arch-at91 at91: Introduction of at91sam9g10 SOC. 2009-07-12 17:56:11 +02:00
arch-at91rm9200 at91rm9200: move define from lowlevel_init to header 2009-01-06 21:41:59 +01:00
arch-davinci NAND: DaVinci: V2 Adding 4 BIT ECC support 2009-08-26 15:37:03 -05:00
arch-imx arm-imx: Fix register definitions 2008-03-02 21:15:06 +01:00
arch-ixp Big white-space cleanup. 2008-05-21 00:14:08 +02:00
arch-kirkwood arm: Kirkwood: add SYSRSTn Duration Counter Support 2009-09-01 22:34:03 +02:00
arch-ks8695 * Patch by Greg Ungerer, 19 May 2005: 2005-05-19 22:39:42 +00:00
arch-lpc2292 Eliminated arch-specific mmc header requirement 2009-02-16 18:07:41 -06:00
arch-mx27 imx27lite: add support for imx27lite board from LogicPD 2009-09-01 22:10:55 +02:00
arch-mx31 MX31: Add NAND SPL boot support to i.MX31 PDK board. 2009-07-06 21:53:18 +02:00
arch-nomadik arm nomadik: add gpio support 2009-07-29 09:57:46 +02:00
arch-omap Update omap5912osk board support 2006-05-10 10:55:16 +02:00
arch-omap3 omap3: Fixed a problem with hwecc 2009-08-18 13:51:30 +02:00
arch-omap24xx OMAP I2C Fix the sampling clock. 2009-07-28 08:52:33 +02:00
arch-pxa Monahans: avoid floating point calculations 2009-08-17 23:53:41 +02:00
arch-s3c24x0 Fix e-mail address of Gary Jennejohn. 2009-05-15 22:11:59 +02:00
arch-s3c44b0 * Patch by Andrea Scian, 17 Feb 2004: 2004-02-24 00:16:43 +00:00
arch-s3c64xx ARM: Add arm1176 core with S3C6400 SoC 2008-08-31 00:39:46 +02:00
arch-s3c4510b s3c4510b: move specific code to soc directory 2009-03-29 23:01:36 +02:00
arch-sa1100 Big white-space cleanup. 2008-05-21 00:14:08 +02:00
proc-armv Remove duplicate set_cr 2009-09-01 22:08:46 +02:00
atomic.h * Header file cleanup for ARM 2003-06-25 22:26:29 +00:00
bitops.h * Code cleanup: 2003-06-27 21:31:46 +00:00
byteorder.h * Code cleanup: 2003-06-27 21:31:46 +00:00
cache.h move L2 cache enable/disable function to cache.c in the omap3 SoC directory 2009-07-06 21:52:25 +02:00
config.h Add an architecture specific config.h for common defines 2009-02-10 00:43:54 +01:00
dma-mapping.h Fix @ -> <at> substitution 2008-05-10 00:30:22 +02:00
errno.h asm-generic: Consolidate errno.h to asm-generic/errno.h 2009-07-09 14:07:11 +02:00
global_data.h rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
hardware.h * Header file cleanup for ARM 2003-06-25 22:26:29 +00:00
io.h Introduce virt_to_phys() 2008-12-15 22:04:29 +01:00
mach-types.h ARM: Update mach-types 2009-07-06 21:52:47 +02:00
macro.h ARM: Add macros.h to be used in assembler file. 2009-06-21 16:18:12 +02:00
memory.h * Header file cleanup for ARM 2003-06-25 22:26:29 +00:00
posix_types.h Initial revision 2002-08-14 13:28:45 +00:00
processor.h * Header file cleanup for ARM 2003-06-25 22:26:29 +00:00
ptrace.h * Code cleanup: 2003-06-27 21:31:46 +00:00
setup.h * Code cleanup: 2003-06-27 21:31:46 +00:00
sizes.h * Header file cleanup for ARM 2003-06-25 22:26:29 +00:00
string.h * Patch by Daniel Engström, 18 Nov 2002: 2002-11-19 23:01:07 +00:00
system.h arm: update co-processor 15 access 2009-04-05 13:02:43 +02:00
types.h Introduce phys_size_t and move phys_addr_t into asm/types.h 2008-04-13 17:13:46 -07:00
u-boot-arm.h arch_misc_init support for ARM architectures 2009-06-12 20:45:46 +02:00
u-boot.h remove bi_enet*addr from global data for all arches 2009-03-20 22:39:12 +01:00
unaligned.h Add unaligned.h for arm 2009-07-19 11:56:34 +02:00