]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
OMAP2+: hwmod: add API to handle autoidle mode
authorKishon Vijay Abraham I <kishon@ti.com>
Thu, 10 Mar 2011 10:50:08 +0000 (03:50 -0700)
committerPaul Walmsley <paul@pwsan.com>
Thu, 10 Mar 2011 10:50:08 +0000 (03:50 -0700)
commit9599217a06da5f5a95794ca9192c14317d441187
tree0fb6dac21ff0175b5674cc7259990a1d53c12d3c
parent43b01643355672a266b95c4719f47cd1abac4680
OMAP2+: hwmod: add API to handle autoidle mode

Create a new API that forms a wrapper to _set_module_autoidle()
to modify the AUTOIDLE bit.

This API is intended to be used by drivers that requires direct
manipulation of the AUTOIDLE bits in SYSCONFIG register.
McBSP driver requires autoidle bit to be enabled/disabled while
using sidetone feature.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Benoit Cousson <b-cousson@ti.com>
[paul@pwsan.com: restrict the hwmod states that the autoidle bit can be changed
 in; changed function name; dropped "int" from "unsigned int long"]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/plat-omap/include/plat/omap_hwmod.h