ARM: OMAP2+: hwmod: add softreset delay field and OMAP4 data
authorFernando Guzman Lugo <fernando.lugo@ti.com>
Fri, 13 Apr 2012 11:08:03 +0000 (05:08 -0600)
committerPaul Walmsley <paul@pwsan.com>
Fri, 13 Apr 2012 11:08:03 +0000 (05:08 -0600)
commitd99de7f552fac43e24fd4fb8048d8f21abaea691
tree29437f2fd6b5f8516ce1cfe773b93b7bdab9c290
parent0034102808e0dbbf3a2394b82b1bb40b5778de9e
ARM: OMAP2+: hwmod: add softreset delay field and OMAP4 data

Due to HW limitation, some IPs should not be accessed just after a
softreset. Since the current hwmod sequence is accessing the sysconfig
register just after the reset, it might lead to OCP bus error in
that case.

Add a new field in the sysconfig structure to specify a delay in usecs
needed after doing a softreset.

In the case of the ISS and FDIF modules, the L3 OCP port will be
disconnected upon a SW reset. That issue was confirmed with HW simulation
and an errata should be available soon. The HW recommendation to avoid
that is to wait for 100 OCP clk cycles, before accessing the IP.

Considering the worse case (OPP50), the L3 bus will run at 100 MHz,
so a 1 usec delay is needed. Add an x2 margin to be safe.

Acked-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Fernando Guzman Lugo <fernando.lugo@ti.com>
[paul@pwsan.com: dropped FDIF change for now since the hwmod data is not
 yet upstream; the FDIF change will need to be added later once the FDIF
 data is merged]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/omap_hwmod_44xx_data.c
arch/arm/plat-omap/include/plat/omap_hwmod.h