diff options
author | Timo Alho <talho@nvidia.com> | 2014-05-07 11:04:47 +0300 |
---|---|---|
committer | Mandar Padmawar <mpadmawar@nvidia.com> | 2014-05-08 22:45:47 -0700 |
commit | 5e9e0e798b8285f4119de6cd316ba0924f9db88f (patch) | |
tree | e4053b21a56c25ccec8a4c5bd4bb6c64c84045e4 /arch/arm/mach-tegra/board-ardbeg-power.c | |
parent | 584b60200b8bdcc895c8edacb94f48db5929f70a (diff) |
sysedp: tn8: enable SW feedback for battery OC throttling
* Enable battery OC hardware throttling on E1971 platform
* Enable SW feedback loop on battery OC throttling on all TN8
platforms
Bug 1511092
Change-Id: Iedf95e6b139661d5577519728a0fa781b525a341
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/406349
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-ardbeg-power.c')
-rw-r--r-- | arch/arm/mach-tegra/board-ardbeg-power.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-ardbeg-power.c b/arch/arm/mach-tegra/board-ardbeg-power.c index 08ed22817cf2..e692bf5375ae 100644 --- a/arch/arm/mach-tegra/board-ardbeg-power.c +++ b/arch/arm/mach-tegra/board-ardbeg-power.c @@ -677,7 +677,10 @@ static struct soctherm_platform_data t132ref_v1_soctherm_data = { static struct soctherm_throttle battery_oc_throttle = { .throt_mode = BRIEF, .polarity = SOCTHERM_ACTIVE_LOW, - .priority = 100, + .priority = 50, + .intr = true, + .alarm_cnt_threshold = 15, + .alarm_filter = 5100000, .devs = { [THROTTLE_DEV_CPU] = { .enable = true, @@ -804,7 +807,12 @@ int __init ardbeg_soctherm_init(void) pmu_board_info.board_id); /* Enable soc_therm OC throttling on selected platforms */ - switch (pmu_board_info.board_id) { + switch (board_info.board_id) { + case BOARD_E1971: + memcpy(&ardbeg_soctherm_data.throttle[THROTTLE_OC4], + &battery_oc_throttle, + sizeof(battery_oc_throttle)); + break; case BOARD_P1761: memcpy(&ardbeg_soctherm_data.throttle[THROTTLE_OC4], &battery_oc_throttle, |