[lm-sensors] Adding driver for embedded sensors in an FPGA
john.mcgrath at xilinx.com
Thu Mar 19 01:17:11 CET 2009
I have two very much newbie questions regarding adding support/a driver
for temperature/voltage sensors in an FPGA.
The Xilinx Virtex-5 FPGAs support embedded linux, and also have an
in-built hardware module that can monitor temperature and 2 system
voltages, so lm_sensors seem like a perfect fit!
I would be very interested in adding support for these sensors to the
So my two questions are:
1) These sensors are internal to the FPGA, and can be accessed via
a system bus, which is not I2C or PCI, etc. How should this driver be
written to fit in with the other drivers that are supported by
a. My guess is to 'fake' being a PCI/I2C device, by simply calling
it PCI, while the actual HW access will not use these interfaces, but
the driver would take care of talking to the sensors via the system bus.
b. How would this affect the sensor detection scripts, any
suggestions for this?
2) Is there a guide somewhere that shows how to start writing a
driver? I've briefly looked at a few under the drivers/hwmon location,
but if there was a template/tutorial on what exactly was required, that
would be excellent!
Any advice at all is greatly appreciated!
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lm-sensors