nuttx/arch/risc-v
Justin Hammond a763b873b4 arch/risc-v/eic7700x: Name the reset lines through procfs.
Implements get_line, so /proc/reset names all 324 lines and gives the
register and bit each lives in.  The framework asks status() for the
asserted state.

The names do not survive compilation: they live in the enumeration, so
without a table a listing gives only numbers, and working back from one
to a peripheral means counting through the header.  The table costs
about 8 KiB and is built only when the procfs entry is.

The ids are sparse, 324 lines across a space of 1952, so the table is
sorted by id and searched rather than indexed, and an id naming no line
returns -ENODEV.  The framework skips those, which is what leaves the
listing dense.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Justin Hammond <justin@dynam.ac>
2026-09-21 16:29:12 +08:00
..
include arch/risc-v/eic7700x: Add the CRG reset controller. 2026-09-21 16:29:12 +08:00
src arch/risc-v/eic7700x: Name the reset lines through procfs. 2026-09-21 16:29:12 +08:00
CMakeLists.txt arch/risk-v: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
Kconfig arch/risc-v: Add CLIC interrupt threshold support 2026-09-13 08:31:16 -03:00