diff options
author | Harry Hong <hhong@nvidia.com> | 2014-03-17 15:05:45 +0900 |
---|---|---|
committer | Harry Hong <hhong@nvidia.com> | 2014-03-17 17:19:25 -0700 |
commit | b756b75e7b538fcfe211a5ab154fd47da360bf84 (patch) | |
tree | ff6749e13364dea19fc054aba0971ec8e9469b32 /arch | |
parent | ee3e39663a346892a3a12fa0e464418c0114fb97 (diff) |
ARM: tegra: tegratab: add p1988 skin_data
Bug 1439626
Change-Id: Iff23da5367b426ade1875f50cf5a3bdfa4441544
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/382407
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yong Goo Yi <yyi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/board-tegratab-sensors.c | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-tegratab-sensors.c b/arch/arm/mach-tegra/board-tegratab-sensors.c index 919126d4d616..a9a2f9346e9b 100644 --- a/arch/arm/mach-tegra/board-tegratab-sensors.c +++ b/arch/arm/mach-tegra/board-tegratab-sensors.c @@ -1,7 +1,7 @@ /* * arch/arm/mach-tegra/board-tegratab-sensors.c * - * Copyright (c) 2012-2013 NVIDIA CORPORATION, All rights reserved. + * Copyright (c) 2012-2014 NVIDIA CORPORATION, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -596,6 +596,29 @@ static struct therm_est_subdevice skin_devs_a02[] = { }, }; +static struct therm_est_subdevice skin_devs_p1988[] = { + { + .dev_data = "Tdiode", + .coeffs = { + 6, 1, 0, -2, + -1, -2, -3, -2, + -2, -2, -3, -2, + -3, -2, -3, -4, + -5, -5, -6, -12 + }, + }, + { + .dev_data = "Tboard", + .coeffs = { + 35, 11, 3, 4, + -2, 3, 6, -2, + 5, 8, 14, 12, + 16, 17, 15, 9, + -3, -23, -24, 36 + }, + }, +}; + static struct therm_est_data skin_data = { .num_trips = ARRAY_SIZE(skin_trips), .trips = skin_trips, @@ -643,7 +666,12 @@ static int __init tegratab_skin_init(void) { if (machine_is_tegratab()) { tegra_get_board_info(&board_info); - if (board_info.board_id == BOARD_E1569 || + if (board_info.board_id == BOARD_P1988) { + /* Use this for P1988. */ + skin_data.toffset = 1480; + skin_data.ndevs = ARRAY_SIZE(skin_devs_p1988); + skin_data.devs = skin_devs_p1988; + } else if (board_info.board_id == BOARD_E1569 || (board_info.board_id == BOARD_P1640 && (board_info.fab == BOARD_FAB_A00 || board_info.fab == BOARD_FAB_A01))) { |