From bd8880901a51bc14d843c9af4ab88cab494aec2d Mon Sep 17 00:00:00 2001 From: Sekhar Nori Date: Thu, 17 Dec 2009 18:29:33 +0530 Subject: [PATCH] --- yaml --- r: 183209 b: refs/heads/master c: 635344436385bbdca24b57ef14f2dde53e9af082 h: refs/heads/master i: 183207: 51ff45ae2065046d9c2d370c9e2caadde76453b0 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-davinci/board-da850-evm.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 15e59b7e1a15..49a5ed960c4b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 044ca01521d077a35b46a445b02b93f413109a4b +refs/heads/master: 635344436385bbdca24b57ef14f2dde53e9af082 diff --git a/trunk/arch/arm/mach-davinci/board-da850-evm.c b/trunk/arch/arm/mach-davinci/board-da850-evm.c index 76e4347c666f..411284d0b0fa 100644 --- a/trunk/arch/arm/mach-davinci/board-da850-evm.c +++ b/trunk/arch/arm/mach-davinci/board-da850-evm.c @@ -89,6 +89,18 @@ static struct platform_device da850_evm_norflash_device = { .resource = da850_evm_norflash_resource, }; +static struct davinci_pm_config da850_pm_pdata = { + .sleepcount = 128, +}; + +static struct platform_device da850_pm_device = { + .name = "pm-davinci", + .dev = { + .platform_data = &da850_pm_pdata, + }, + .id = -1, +}; + /* DA850/OMAP-L138 EVM includes a 512 MByte large-page NAND flash * (128K blocks). It may be used instead of the (default) SPI flash * to boot, using TI's tools to install the secondary boot loader @@ -709,6 +721,11 @@ static __init void da850_evm_init(void) if (ret) pr_warning("da850_evm_init: cpuidle registration failed: %d\n", ret); + + ret = da850_register_pm(&da850_pm_device); + if (ret) + pr_warning("da850_evm_init: suspend registration failed: %d\n", + ret); } #ifdef CONFIG_SERIAL_8250_CONSOLE