OMAP4: clock data: Keep GPMC clocks always enabled and hardware managed
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Sun, 10 Jul 2011 02:42:59 +0000 (20:42 -0600)
committerPaul Walmsley <paul@pwsan.com>
Sun, 10 Jul 2011 02:42:59 +0000 (20:42 -0600)
commit93cac2ad0f9459422d0af79b6937d6e83ed3aec9
tree6262ce42cb04da02d034996a774887a5bbc0d7fa
parent2c53b436a30867eb6b47dd7bab23ba638d1fb0d2
OMAP4: clock data: Keep GPMC clocks always enabled and hardware managed

On OMAP4, CPU accesses on unmapped addresses are redirected to GPMC by
L3 interconnect. Because of CPU speculative nature, such accesses are
possible which can lead to indirect access to GPMC and if it's clock is
not running, it can result in hang/abort on the platform.

Above makes access to GPMC unpredictable during the execution, so it's
module mode needs to be kept under hardware control instead of software
control.
Since the auto gating is supported for GPMC, there isn't any power impact
because of this change.

The issue was un-covered with security middleware running along with HLOS.
In this case GPMC had a valid MMU descriptor on secure side where as HLOS
didn't map the GMPC because it isn't being used.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
[b-cousson@ti.com: Update subject and fix typos in the changelog]
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Kevin Hilman <khilman@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/clock44xx_data.c