summaryrefslogtreecommitdiffstats
path: root/fs/char_dev.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-07-16 16:41:52 +0200
committerEduardo Valentin <edubezval@gmail.com>2018-07-27 23:43:09 +0200
commitf7c2068a1728c1b2aed9416b071a3e2f8f887786 (patch)
tree86e19f09a1ed92eba480633ea9701f2d63c4493b /fs/char_dev.c
parentthermal: armada: use the resource managed registration helper alternative (diff)
downloadlinux-f7c2068a1728c1b2aed9416b071a3e2f8f887786.tar.xz
linux-f7c2068a1728c1b2aed9416b071a3e2f8f887786.zip
thermal: armada: add multi-channel sensors support
MVEBU thermal IP supports multiple channels. Each channel may have several sensors but for now each channel is wired to only one thermal sensor. The first channel always points to the so called internal sensor, within the thermal IP. There is usually one more channel (with one sensor each time) per CPU. The code has been written to support possible evolutions of the ap806 IP that would embed more CPUs and thus more channels to select. Each channel should be referenced in the device tree as an independent thermal zone. Add the possibility to read each of these sensors through sysfs by registering all the sensors (translated in "thermal_zone"). Also add a mutex on these accesses to avoid read conflicts (only one channel/sensor may be selected and read at a time). Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'fs/char_dev.c')
0 files changed, 0 insertions, 0 deletions