u-boot/arch/arm/include/asm/arch-omap4
Lokesh Vutla 0b1b60c779 ARM: OMAP5: Fix warm reset with USB cable connected
Warm reset on OMAP5 freezes when USB cable is connected.
Fix requires PRM_RSTTIME.RSTTIME1 to be programmed
with the time for which reset should be held low for the
voltages and the oscillator to reach stable state.

There are 3 parameters to be considered for calculating
the time, which are mostly board and PMIC dependent.
-1- Time taken by the Oscillator to shut + restart
-2- PMIC OTP times
-3- Voltage rail ramp times, which inturn depends on the
PMIC slew rate and value of the voltage ramp needed.

In order to keep the code in u-boot simple, have a way
for boards to specify a pre computed time directly using
the 'CONFIG_OMAP_PLATFORM_RESET_TIME_MAX_USEC'
option. If boards fail to specify the time, use a default
as specified by 'CONFIG_DEFAULT_OMAP_RESET_TIME_MAX_USEC' instead.
Using the default value translates into some ~22ms and should work in
all cases.
However in order to avoid this large delay hiding other bugs,
its recommended that all boards look at their respective data
sheets and specify a pre computed and optimal value using
'CONFIG_OMAP_PLATFORM_RESET_TIME_MAX_USEC'

In order to help future board additions to compute this
config option value, add a README at doc/README.omap-reset-time
which explains how to compute the value. Also update the toplevel
README with the additional option and pointers to
doc/README.omap-reset-time.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
[rnayak@ti.com: Updated changelog and added the README]
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
2013-05-10 08:25:55 -04:00
..
clocks.h ARM: OMAP4+: Clean up the pmic code 2013-03-11 11:06:10 -04:00
cpu.h omap4 i2c: add support for i2c bus 4 2012-09-06 06:01:09 +02:00
ehci.h ehci-omap: Clean up added ehci-omap.c 2012-02-12 10:11:31 +01:00
gpio.h omap: fix gpio related build breaks 2011-09-04 11:33:36 +02:00
i2c.h omap4 i2c: add support for i2c bus 4 2012-09-06 06:01:09 +02:00
mmc_host_def.h omap: consolidate common mmc definitions 2013-03-08 16:41:12 -05:00
mux_omap4.h omap4+: Avoid using __attribute__ ((__packed__)) 2012-05-15 08:31:26 +02:00
omap.h arm: omap4: Fix SDRAM AUTO DETECTION 2013-04-08 11:29:34 -04:00
spl.h OMAP3/4/5/AM33xx: Correct logic for checking FAT or RAW MMC 2013-04-08 11:29:34 -04:00
sys_proto.h ARM: OMAP5: Fix warm reset with USB cable connected 2013-05-10 08:25:55 -04:00