ARM: OMAP2+: hwmod: add enable_preprogram hook
authorPaul Walmsley <paul@pwsan.com>
Sun, 10 Feb 2013 18:22:22 +0000 (11:22 -0700)
committerPaul Walmsley <paul@pwsan.com>
Sun, 10 Feb 2013 18:22:22 +0000 (11:22 -0700)
commit6d266f63a11bce427504d203834df3c0bb9be9a5
tree8b1a059ab5d9bc35586ba7982d1e3acec20d8932
parent88b62b915b0b7e25870eb0604ed9a92ba4bfc9f7
ARM: OMAP2+: hwmod: add enable_preprogram hook

After setup/enable, some IP blocks need some additional setting to
indicate the PRCM that they are inactive until they are configured.
Some examples on OMAP4 include the AESS and FSUSB IP blocks.

To fix this cleanly, this patch adds another optional function
pointer, enable_preprogram, to the IP block's hwmod data.  The function
that is pointed to is called by the hwmod code immediately after the
IP block is reset.

This version of the patch includes a patch description fix from Felipe.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
Cc: Benoît Cousson <b-cousson@ti.com>
Cc: Péter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/omap_hwmod.h