diff options
| -rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index 76e4347c666f..411284d0b0fa 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c | |||
| @@ -89,6 +89,18 @@ static struct platform_device da850_evm_norflash_device = { | |||
| 89 | .resource = da850_evm_norflash_resource, | 89 | .resource = da850_evm_norflash_resource, |
| 90 | }; | 90 | }; |
| 91 | 91 | ||
| 92 | static struct davinci_pm_config da850_pm_pdata = { | ||
| 93 | .sleepcount = 128, | ||
| 94 | }; | ||
| 95 | |||
| 96 | static struct platform_device da850_pm_device = { | ||
| 97 | .name = "pm-davinci", | ||
| 98 | .dev = { | ||
| 99 | .platform_data = &da850_pm_pdata, | ||
| 100 | }, | ||
| 101 | .id = -1, | ||
| 102 | }; | ||
| 103 | |||
| 92 | /* DA850/OMAP-L138 EVM includes a 512 MByte large-page NAND flash | 104 | /* DA850/OMAP-L138 EVM includes a 512 MByte large-page NAND flash |
| 93 | * (128K blocks). It may be used instead of the (default) SPI flash | 105 | * (128K blocks). It may be used instead of the (default) SPI flash |
| 94 | * to boot, using TI's tools to install the secondary boot loader | 106 | * to boot, using TI's tools to install the secondary boot loader |
| @@ -709,6 +721,11 @@ static __init void da850_evm_init(void) | |||
| 709 | if (ret) | 721 | if (ret) |
| 710 | pr_warning("da850_evm_init: cpuidle registration failed: %d\n", | 722 | pr_warning("da850_evm_init: cpuidle registration failed: %d\n", |
| 711 | ret); | 723 | ret); |
| 724 | |||
| 725 | ret = da850_register_pm(&da850_pm_device); | ||
| 726 | if (ret) | ||
| 727 | pr_warning("da850_evm_init: suspend registration failed: %d\n", | ||
| 728 | ret); | ||
| 712 | } | 729 | } |
| 713 | 730 | ||
| 714 | #ifdef CONFIG_SERIAL_8250_CONSOLE | 731 | #ifdef CONFIG_SERIAL_8250_CONSOLE |
