u-boot-brain/arch/arm/include/asm/arch-omap5
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: OMAP5: Fix warm reset with USB cable connected 2013-05-10 08:25:55 -04:00
cpu.h OMAP5: I2C: Add I2C4 and I2C5 bases 2013-05-10 08:25:55 -04:00
gpio.h omap5: Add minimal support for omap5430. 2011-11-15 22:25:50 +01:00
i2c.h OMAP5: I2C: Set I2C_BUS_MAX to 5 to enable I2C4 and I2C5 2013-05-10 08:25:55 -04:00
mmc_host_def.h omap: consolidate common mmc definitions 2013-03-08 16:41:12 -05:00
mux_dra7xx.h arm: dra7xx: Add board files for DRA7XX socs 2013-03-11 11:39:30 -04:00
mux_omap5.h arm: dra7xx: Add board files for DRA7XX socs 2013-03-11 11:39:30 -04: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