Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/arch



Module Name:    src
Committed By:   mrg
Date:           Fri Apr 26 08:28:11 UTC 2019

Modified Files:
        src/sys/arch/arm/rockchip: files.rockchip rk3399_cru.c
        src/sys/arch/evbarm/conf: GENERIC64
Added Files:
        src/sys/arch/arm/rockchip: rk_tsadc.c

Log Message:
implement TSADC driver for rockchip RK3328 and RK3399.  so far, only
tested on RK3399 but the RK3328 looks mostly the same and has a good
chance of working too.

add clock entries for "clk_tsadc" and "pclk_tsadc" to cru.

exports "CPU" and "GPU" temp sensors.  these currently limited to 5
degC resolution but can be reduced to sub 1 degC resolution with some
interpolation.

todo list:

- handle setting various temp values
- add interpolation between the 5degC intervals in sample data
- handle DT trips/temp value defaults
- interrupts aren't triggered (test by lowering warn/crit values),
  and once they work, make the interrupt do something
- test on RK3328, and port to other rockchips (will require moving
  some part into per-chipset sections, such as code<->temp tables)

thanks to jmcneill for help.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/arm/rockchip/files.rockchip
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/arm/rockchip/rk3399_cru.c
cvs rdiff -u -r0 -r1.1 src/sys/arch/arm/rockchip/rk_tsadc.c
cvs rdiff -u -r1.90 -r1.91 src/sys/arch/evbarm/conf/GENERIC64

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index