Adding driver for embedded sensors in an FPGA

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

 



Hi All,

 

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
embedded linux.

 

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
lm_sensors?

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!

 

Cheers,

John

 



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...
URL: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20090319/f8f4a76f/attachment.html 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux