ARM: tegra: cardhu: Adjust cpu-suspend timers on some boards.
Diwakar Tundlam [Sat, 16 Apr 2011 00:25:52 +0000 (17:25 -0700)]
Fix for bug 816031: We need to have appropriate delays to make
DVS work on all boards we support.

Original-Change-Id: I60db0832f2591dcbf2a3904474440996f032bc28
Reviewed-on: http://git-master/r/27966
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>
Original-Change-Id: I2421b73909edb469f1caaaf74a7213902d02c080

Rebase-Id: Re0c6e643c20f7427b60abe3cd43d01150bc27c1d

arch/arm/mach-tegra/board-cardhu-power.c

index 35cbb92..1b2088c 100644 (file)
@@ -741,6 +741,23 @@ static struct tegra_suspend_platform_data cardhu_suspend_data = {
 
 int __init cardhu_suspend_init(void)
 {
+       struct board_info board_info;
+
+       tegra_get_board_info(&board_info);
+       switch (board_info.board_id) {
+       case BOARD_E1291:
+       case BOARD_E1198:
+               break;
+       case BOARD_PM269:
+       case BOARD_E1187:
+       case BOARD_E1186:
+               cardhu_suspend_data.cpu_timer = 5000;
+               cardhu_suspend_data.cpu_off_timer = 5000;
+               break;
+       default:
+               break;
+       }
+
        tegra_init_suspend(&cardhu_suspend_data);
        return 0;
 }