Commit de0f32b4 authored by Federico Vaga's avatar Federico Vaga

Merge branch '14-rename-sysfs-attribute-for-firmware-loading' into 'master'

Resolve "rename sysfs attribute for firmware loading"

Closes #14

See merge request be-cem-edl/fec/hardware-modules/svec!10
parents af32268c 0d5b7c41
......@@ -154,6 +154,13 @@ sub-devices and the following *sysfs* attributes.
``svec-vme-<vme-slot>/reset_app`` [R/W]
It puts in *reset* (1) or *unreset* (0) the user application.
``svec-vme-<vme-slot>/firmware_name`` [W]
It configure the FPGA with a bitstream which name is provided as input.
Remember that firmwares are installed in ``/lib/firmware`` and alternatively
you can provide your own path by setting it in
``/sys/module/firmware_class/parameters/path``.
.. _`FPGA manager`: https://www.kernel.org/doc/html/latest/driver-api/fpga/index.html
Attributes From *debugfs*
......@@ -168,12 +175,6 @@ focus only on those.
:ref:`SVEC base<svec_hdl_svec_base>` and, when it exists, the user
application one.
``vme-<vme-slot>/fpga_firmware`` [W]
It configure the FPGA with a bitstream which name is provided as input.
Remember that firmwares are installed in ``/lib/firmware`` and alternatively
you can provide your own path by setting it in
``/sys/module/firmware_class/parameters/path``.
``vme-<vme-slot>/svec-vme-<vme-slot>/csr_regs`` [R]
It dumps the Control/Status register for
the :ref:`SVEC base<svec_hdl_svec_base>`
......
......@@ -69,7 +69,7 @@ static int svec_fw_load(struct svec_dev *svec_dev, const char *name)
return err;
}
static ssize_t svec_fpga_firmware_store(struct device *dev,
static ssize_t firmware_name_store(struct device *dev,
struct device_attribute *attr,
const char *buf,
size_t count)
......@@ -101,10 +101,10 @@ static ssize_t svec_fpga_firmware_store(struct device *dev,
return err ? err : count;
}
static DEVICE_ATTR_WO(svec_fpga_firmware);
static DEVICE_ATTR_WO(firmware_name);
static struct attribute *svec_sys_dev_attrs[] = {
&dev_attr_svec_fpga_firmware.attr,
&dev_attr_firmware_name.attr,
NULL
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment