Linux bluetooth development
 help / color / mirror / Atom feed
From: Emeltchenko Andrei <Andrei.Emeltchenko.news@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCHv1 2/5] Bluetooth: rm581: pm constraints support
Date: Fri,  1 Oct 2010 15:47:07 +0300	[thread overview]
Message-ID: <1285937230-547-3-git-send-email-Andrei.Emeltchenko.news@gmail.com> (raw)
In-Reply-To: <1285937230-547-1-git-send-email-Andrei.Emeltchenko.news@gmail.com>

From: Andrei Emeltchenko <andrei.emeltchenko@nokia.com>

Add pm_limits callback

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@nokia.com>
---
 arch/arm/mach-omap2/board-rm581-peripherals.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-rm581-peripherals.c b/arch/arm/mach-omap2/board-rm581-peripherals.c
index 4e98c6b..673f270 100644
--- a/arch/arm/mach-omap2/board-rm581-peripherals.c
+++ b/arch/arm/mach-omap2/board-rm581-peripherals.c
@@ -45,6 +45,7 @@
 #include <plat/mmc.h>
 #include <plat/board-nokia.h>
 #include <plat/ssi.h>
+#include <plat/omap-pm.h>
 
 #include "hsmmc.h"
 
@@ -1124,6 +1125,12 @@ static int __init rm581_i2c_init(void)
 	return 0;
 }
 
+/* Use wakeup latency only for now */
+static void rm581_bt_set_pm_limits(struct device *dev, bool set)
+{
+	omap_pm_set_max_mpu_wakeup_lat(dev, set ? 10 : -1);
+}
+
 static struct omap_bluetooth_config rm581_bt_config = {
 	.chip_type		= BT_CHIP_TI,
 	.bt_wakeup_gpio		= 37,
@@ -1131,6 +1138,7 @@ static struct omap_bluetooth_config rm581_bt_config = {
 	.reset_gpio		= 26,
 	.bt_uart		= 2,
 	.bt_sysclk		= BT_SYSCLK_38_4,
+	.set_pm_limits		= rm581_bt_set_pm_limits,
 };
 
 static struct omap_ssi_board_config __initdata rm581_ssi_config = {
-- 
1.7.0.4


  parent reply	other threads:[~2010-10-01 12:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01 12:47 [PATCHv1 0/5] Bluetooth: experimental support for pm_limits Emeltchenko Andrei
2010-10-01 12:47 ` [PATCHv1 1/5] Bluetooth: board " Emeltchenko Andrei
2010-10-01 12:47 ` Emeltchenko Andrei [this message]
2010-10-01 12:47 ` [PATCHv1 3/5] Bluetooth: rm680: pm constraints support Emeltchenko Andrei
2010-10-01 12:47 ` [PATCHv1 4/5] Bluetooth: rm696: " Emeltchenko Andrei
2010-10-01 12:47 ` [PATCHv1 5/5] Bluetooth: pm constraints in bt transfer mode Emeltchenko Andrei
2010-10-01 12:50 ` [PATCHv1 0/5] Bluetooth: experimental support for pm_limits Andrei Emeltchenko
2010-10-05  7:49 ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1285937230-547-3-git-send-email-Andrei.Emeltchenko.news@gmail.com \
    --to=andrei.emeltchenko.news@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox