u-boot-brain/cpu
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
..
74xx_7xx 74xx_7xx: Fix rounding problem in CPU frequency calculation 2009-05-15 22:22:01 +02:00
arm_cortexa8 ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
arm_intcm ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
arm720t ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
arm920t ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
arm925t ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
arm926ejs arm: Kirkwood: add SYSRSTn Duration Counter Support 2009-09-01 22:34:03 +02:00
arm946es ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
arm1136 ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
arm1176 ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
at32ap Add AVR32 LCD support 2009-07-26 13:12:02 +02:00
blackfin Blackfin: split cpu COBJS into multilines 2009-07-18 21:15:54 -04:00
i386 Dual-license IBM code contributions 2009-08-09 23:15:33 +02:00
ixp ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
leon2 Update U-Boot's build timestamp on every compile 2008-12-06 23:36:43 +01:00
leon3 Update U-Boot's build timestamp on every compile 2008-12-06 23:36:43 +01:00
lh7a40x ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
mcf52x2 ColdFire: Add M5208EVB and MCF520x CPU support 2009-07-14 09:27:17 -05:00
mcf523x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf532x ColdFire: Fix compile warning messages 2009-08-26 03:44:31 -05:00
mcf547x_8x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf5227x ColdFire: Fix compile warning messages 2009-08-26 03:44:31 -05:00
mcf5445x Minor coding style cleanup. 2009-08-10 10:38:34 +02:00
microblaze microblaze: Use cache functions (especially cache status) 2009-01-23 10:40:00 +01:00
mips MIPS: Implement ethernet halt for au1x00 2009-05-16 09:20:03 +09:00
mpc5xx Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
mpc5xxx Add support for USB on PSC3 for the mpc5200 2009-08-25 12:57:55 +02:00
mpc8xx stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
mpc8xxx 85xx: Added single core members of FSL P1xx/P2xx processors series 2009-08-28 17:12:41 -05:00
mpc83xx Update Freescale copyrights to remove "All Rights Reserved" 2009-07-29 09:59:22 +02:00
mpc85xx 85xx: Improve MPIC initialization 2009-08-28 17:12:43 -05:00
mpc86xx 8xxx: Removed CONFIG_NUM_CPUS from 85xx/86xx 2009-08-28 17:12:38 -05:00
mpc512x Update Freescale copyrights to remove "All Rights Reserved" 2009-07-29 09:59:22 +02:00
mpc824x Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
mpc8220 Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
mpc8260 i2c: Create common default i2c_[set|get]_bus_speed() functions 2009-06-12 20:39:45 +02:00
nios General help message cleanup 2009-06-12 20:47:16 +02:00
nios2 General help message cleanup 2009-06-12 20:47:16 +02:00
ppc4xx Dual-license IBM code contributions 2009-08-09 23:15:33 +02:00
pxa ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
s3c44b0 ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
sa1100 ARM: compiler options cleanup - improve tool chain support 2009-08-21 23:11:53 +02:00
sh2 sh: unify linker script 2009-07-08 11:43:15 +09:00
sh3 sh: unify linker script 2009-07-08 11:43:15 +09:00
sh4 sh: unify linker script 2009-07-08 11:43:15 +09:00