mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

The KEBA CP500 system FPGA is a PCIe device, which consists of multiple IP cores. Every IP core has its own auxiliary driver. The cp500 driver registers an auxiliary device for each device and the corresponding drivers are loaded by the Linux driver infrastructure. Currently 3 variants of this device exists. Every variant has its own PCI device ID, which is used to determine the list of available IP cores. In this first version only the auxiliary device for the I2C controller is registered. Besides the auxiliary device registration some other basic functions of the FPGA are implemented; e.g, FPGA version sysfs file, keep FPGA configuration on reset sysfs file, error message for errors on the internal AXI bus of the FPGA. Signed-off-by: Gerhard Engleder <eg@keba.com> Link: https://lore.kernel.org/r/20240630194740.7137-2-gerhard@engleder-embedded.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
25 lines
985 B
Text
25 lines
985 B
Text
What: /sys/devices/pciXXXX:XX/0000:XX:XX.X/0000:XX:XX.X/version
|
|
Date: June 2024
|
|
KernelVersion: 6.11
|
|
Contact: Gerhard Engleder <eg@keba.com>
|
|
Description: Version of the FPGA configuration bitstream as printable string.
|
|
This file is read only.
|
|
Users: KEBA
|
|
|
|
What: /sys/devices/pciXXXX:XX/0000:XX:XX.X/0000:XX:XX.X/keep_cfg
|
|
Date: June 2024
|
|
KernelVersion: 6.11
|
|
Contact: Gerhard Engleder <eg@keba.com>
|
|
Description: Flag which signals if FPGA shall keep or reload configuration
|
|
bitstream on reset. Normal FPGA behavior and default is to keep
|
|
configuration bitstream and to only reset the configured logic.
|
|
|
|
Reloading configuration on reset enables an update of the
|
|
configuration bitstream with a simple reboot. Otherwise it is
|
|
necessary to power cycle the device to reload the new
|
|
configuration bitstream.
|
|
|
|
This file is read/write. The values are as follows:
|
|
1 = keep configuration bitstream on reset, default
|
|
0 = reload configuration bitstream on reset
|
|
Users: KEBA
|