-
Notifications
You must be signed in to change notification settings - Fork 22
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.
- Reserve a new feature id by submitting a merge request to https://github.com/OFS/dfl-feature-id/blob/main/dfl-feature-ids.rst
- Add a DFH with reserved feature id to the DFL in hardware. The DFH needs to be aligned to a 4k page boundary.
- Determine location of the driver in the linux kernel tree based on its functionality (e.g. drivers/hwmon, drivers/i2c/busses).
- Create new C file based on https://github.com/OPAE/linux-dfl/commit/8c19cc03f0a4595c04e65b4a6582e156d8d77cae
- Update Kconfig and Makefile in directory containing new driver.
- Fill in template C file based on the needs of the new hardware.