Skip to content

Howto create a new DFL driver

Russ Weight edited this page Mar 14, 2023 · 2 revisions

The page describes the steps required to create a new DFL driver for a new hardware component.

  1. Reserve a new feature id by submitting a merge request to https://github.com/OFS/dfl-feature-id/blob/main/dfl-feature-ids.rst
  2. Add a DFH with reserved feature id to the DFL in hardware. The DFH needs to be aligned to a 4k page boundary.
  3. Determine location of the driver in the linux kernel tree based on its functionality (e.g. drivers/hwmon, drivers/i2c/busses).
  4. Create new C file based on https://github.com/OPAE/linux-dfl/commit/8c19cc03f0a4595c04e65b4a6582e156d8d77cae
  5. Update Kconfig and Makefile in directory containing new driver.
  6. Fill in template C file based on the needs of the new hardware.

Clone this wiki locally