rockchip: rk3399: add tsadc driver

Hardware / Coreboot - Shunqian Zheng [rock-chips.com] - 18 May 2016 13:19 UTC

This patch configures clock for tsadc and then makes it in automatic mode to generate TSHUT when CPU temperature is higer than 120 degree Celsius.

BRANCH=none BUG=chrome-os-partner:52382,chrome-os-partner:51537 TEST=Set a lower tshut threshold(45C), run coreboot and check that coreboot reboot again and again.

Change-Id: I0b070a059d2941f12d31fc3002e78ea083e70b13

f4181ce rockchip: rk3399: add tsadc driver
src/soc/rockchip/rk3399/Makefile.inc | 1 +
src/soc/rockchip/rk3399/clock.c | 22 +++++
src/soc/rockchip/rk3399/include/soc/clock.h | 1 +
src/soc/rockchip/rk3399/include/soc/tsadc.h | 26 +++++
src/soc/rockchip/rk3399/romstage.c | 2 +
src/soc/rockchip/rk3399/tsadc.c | 139 +++++++++++++++++++++++++++
6 files changed, 191 insertions(+)

Upstream: review.coreboot.org


  • Share