]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP1: ams-delta: update the modem to use regulator API
authorJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Mon, 5 Mar 2012 16:05:11 +0000 (17:05 +0100)
committerTony Lindgren <tony@atomide.com>
Mon, 5 Mar 2012 19:24:30 +0000 (11:24 -0800)
commit7ae8ffa34ccf712ab612400eec7281338f794ab2
treeeda335fb96d06f686d87bc61d7e79d41b2fa8645
parent992034f50511191a77645968e085409b540d4a1f
ARM: OMAP1: ams-delta: update the modem to use regulator API

After the CX20442 codec driver already takes care of enabling the codec
power for itself (commit 6ceffcf4c624f8e48af530a801ffc5c6b177f858,
"ASoC: cx20442: add bias control over a platform provided regulator"),
but before dropping the old bias control method from the Amstrad Delta
ASoC sound card file, which in fact keeps the modem power always on,
even on the ASoC device close for now, extend the modem setup with a
power management callback which toggles the regulator up to the modem's
needs, reusing the previously set up regulator consumer for this. Also,
drop the MODEM_NRESET pin setup from the modem initialization procedure,
as this operation was already ineffective since patch 1/3, and not
needed because the regulator is set up as initially enabled.

Depends on patch 1/3 "ARM: OMAP1: ams-delta: set up regulator over modem
reset GPIO pin" to apply cleanly.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-ams-delta.c