OSDN Git Service

ARM: OMAP4: TWL: mux sys_drm_msecure as output for PMIC
authorKevin Hilman <khilman@ti.com>
Thu, 8 Nov 2012 19:08:50 +0000 (11:08 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 12 Nov 2012 22:11:47 +0000 (14:11 -0800)
commit1ef43369c681bf30a980a4ba42df20514b15fdda
tree0e0ed0d2064a58bcc33a4bb97f8970b2687659c2
parentcbf6bae1044286a89955d7c4b3a8d6d84a9916b3
ARM: OMAP4: TWL: mux sys_drm_msecure as output for PMIC

On OMAP4 boards using the TWL6030 PMIC, the sys_drm_msecure is
connected to the MSECURE input of the TWL6030 PMIC.  This signal
controls the secure-mode operation of the PMIC.  If its not mux'd
correctly, some functionality of the PMIC will not be accessible since
the PMIC will be in secure mode.

For example, if the TWL RTC is in secure mode, most of its registers
are read-only, meaning (re)programming the RTC (e.g. for wakeup from
suspend) will fail.

To fix, ensure the signal is properly mux'd as output when TWL is
intialized.

This fix is required when using recent versions of u-boot (>= v2012.04.01)
since u-boot is no longer setting the default mux for this pin.

Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/twl-common.c