Commit Graph

14 Commits

Author SHA1 Message Date
Xingxing Wang a3770e55bc thermal: add shutdown callback in sensor driver [1/1]
PD#SWPL-136383

Problem:
poweroff power current is high

Solution:
add shutdown callback in sensor driver

Verify:
TXHD2

Change-Id: Idd38c485b9458e3a9c7b27b959f48a17c59dc89b
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-08-22 22:14:11 -07:00
Xingxing Wang 387cacd56b thermal: t3x thermal bringup [1/1]
PD#SWPL-117221

Problem:
t3x thermal bringup

Solution:
configure in dts

Verify:
t3x bc309

Change-Id: I53173b70a23fb504965e07f50168baa73f47f34d
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-05-18 21:08:39 +08:00
Xingxing Wang b3fa479621 thermal: align T5M thermal params to T3 [1/1]
PD#SWPL-112969

Problem:
t5m thermal params update

Solution:
align to t3

Verify:
t5m

Change-Id: I1e592cbd8e1ad39aa09fbef397b50ef919e07722
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-03-08 19:17:15 -08:00
binbin.wang 38b22eced8 Thermal: Add reset logic for power optimization for K515 [1/1]
PD#SWPL-111294

Problem:
Need to reset the sensor in standby mode.

Solution:
Add reset logic

Verify:
T5M pass

Change-Id: I069fbfb608cdd9ca2b17d59d89e5f1c5a1da7bb9
Signed-off-by: binbin.wang <binbin.wang@amlogic.com>
2023-02-20 03:14:13 -08:00
Wanwei Jiang 87c507d22d porting: compatible with common14-5.15 [1/2]
PD#SWPL-109858

Problem:
compatible with common14-5.15

Solution:
compatible with common14-5.15

Verify:
sc2

Change-Id: I12e0e796e95cf54d37f76ad9f01a0ff9852e779e
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-02-13 19:41:56 -08:00
Hanjie Lin caa8b668c5 debug: gki optimize [2/4]
PD#SWPL-99365

Problem:
gki optimize

Solution:
1, code optimize
2, watchdog_hld to ko

Verify:
sc2_ah212

Change-Id: Ibb1b16bd61d794defb39d53f17ad86179ba4a661
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2022-12-27 04:32:55 -08:00
binbin.wang bb37a672c4 Thermal: Kernel panic when entering an illegal value [1/1]
PD#SWPL-102920

Problem:
Because of wrong logic when writing an invalid value,
the array is out of bounds

Solution:
Fix the wrong logic.

Verify:
T3

Change-Id: I01216d799201f49de42802d78a5297a0cb0e74d0
Signed-off-by: binbin.wang <binbin.wang@amlogic.com>
2022-12-12 20:15:08 -08:00
Liming Xue 61fff05790 Typo Check: dsp and thermal wrong words [1/1]
PD#SWPL-103829

Problem:
there are words spelling error

Solution:
correct spelling mistakes

Verify:
local scan

Change-Id: Ifc0bf977d64ceed2ae67a3235077fc9d4c734f0e
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2022-12-05 21:08:18 -07:00
Xingxing Wang 9aac288b6e thermal: amlogic cooling device id management [1/1]
PD#SWPL-96947

Problem:
kernel5.15 for SC2: break GKI--thermal crash

Solution:
manage amlogic cooling device id in driver itself
instead of lib idr related api

Verify:
SC2

Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
Change-Id: Ia8da226ae252af6d85e9f376f23f030d7a49fddd
2022-10-16 22:30:59 -07:00
pengzhao.liu b946ffb848 typo: clear typo problem [1/1]
PD#SWPL-89627

Problem:
clear typo problem

Solution:
clear typo problem

Verify:
s4d

Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
Change-Id: I9121c9d4b54df9b9a7c244182693e0fd616f5a9e
2022-09-07 20:06:45 +08:00
Xingxing Wang 0a692fe39e thermal: add ddr cooling device on C3 [1/1]
PD#SWPL-83862

Problem:
add ddr cooling device to C3

Solution:
add ddr cooling device to C3
echo 96000 > /sys/kernel/debug/tsensor0/tempwrite to test
ddr cooling device action when temperature rise to 96C.

Verify:
C3 AW419

Change-Id: I9ea242a656a4fcbf308b613cd3695c04e2ff2afc
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2022-07-17 19:44:44 -07:00
qinglin.li 7c6316bebd printk : printk optimization [2/2]
PD#SWPL-70486

Problem:
use common tag in driver when printf

Solution:
set common pr_fmt in driver

Verify:
s4d

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ieee271d289e4d2f81258875d36288046b996a5d2
2022-02-14 19:55:32 -07:00
wanwei.jiang c62adfbc9d thermal: cfi issue [1/1]
PD#SWPL-70496

Problem:
fix cfi issue

Solution:
correct function type

Verify:
s4d

Change-Id: I856492afc7c31512e7818396de0f520b7c66d729
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-17 20:13:35 +08:00
wanwei.jiang 82c658e68b thermal: porting thermal driver [1/1]
PD#SWPL-68630

Problem:
porting thermal driver

Solution:
1. porting thermal driver
2. modify the function type of the member of
struct thermal_cooling_device_ops
state2power
power2state
get_requested_power
3. modify the function(cpu_hotplug.c) interface
cpu_up() --> add_cpu()
cpu_down() --> remove_cpu()
4. modify config and move module_init from meson_cooldev.c to meson_tsensor.c
5. modify pr_info() --> pr_debug() when probe

Verify:
s4d

Change-Id: I5eead0120dbc826cbb4282d28d7531018c826025
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-14 18:39:57 +08:00