From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> Add pm_limits callback Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html