Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: misc: intel_sysid: Add sysid from arch to drivers
Add new sysid driver. The Altera(Intel) Sysid component is generally part of an FPGA design. The component can be hotplugged when the FPGA is reconfigured. This driver support the component being hotplugged. The sysid driver stores unique 32-bit id value which is similar to a check-sum value; different components, different configuration options, or both, can be configured to produce different id values. Timestamp field is the unique 32-bit value that is based on the system generation time. There are two basic ways to use the system ID core: - Verify the system ID before downloading new software to a system. This method can be used by software development tools, before downloading a program to a target hardware system, if the program is compiled for different hardware. - Check system ID after reset. If a program is running on hardware other than the expected Platform Designer system, the program may fail to function altogether. If the program does not crash, it can behave erroneously in subtle ways that are difficult to debug. To protect against this case, a program can compare the expected system ID against the system ID core, and report an error if they do not match. Usage: cat /sys/bus/platform/devices/soc:base_fpga_region/ soc:base_fpga_region:fpga_pr_region0/[addr.sysid]/sysid/id cat /sys/bus/platform/devices/soc:base_fpga_region/ soc:base_fpga_region:fpga_pr_region0/[addr.sysid]/sysid/buildtime Based on an initial contribution from Ley Foon Tan at Altera Signed-off-by: Kah Jing Lee <kah.jing.lee@intel.com> Reviewed-by: Zhou, Furong <furong.zhou@intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
- Loading branch information