Repository navigation
Feat/efex param - #203
Merged
Merged
Feat/efex param#203
Conversation
added 2 commits
September 26, 2026 15:10
Link a 4 KiB key/value parameter area into every eFEX image. The eGON
head describes it at +0x30 ("SKEP", addr, size, version) and ret_addr
points to it, so a host can patch the image or FEL-write the area before
exec and read results back afterwards.
- efex_param_load() validates the table once and applies UART, PMU TWI
(bus, clocks, pins), PMU rail voltages, DRAM/PSRAM parameters and
application values to the structures an app passes in.
- Apps report DRAM/PSRAM parameters, size and status; the eFEX entry
calls efex_param_finish() with main()'s return value.
- A rejected table keeps every default and reports status BADP.
- Replace syterkit_efex_result and its DRAM result helpers.
- Add tools/efex-param.py, docs/efex-param.md and the efex_param host
test.
Tested: all soc/*/configs eFEX defconfigs build warning-free (ARM
arm-none-eabi, sun252iw2 rv32 with Xuantie V3.2.0); make -C test host
passes. Not yet run on hardware.
Format all first-party C sources with clang-format 20 and the existing .clang-format. Add .clang-format-ignore so formatting skips: - third-party code kept in upstream form (kconfig, libfdt, FatFs, ELF headers, dt2c/dtc); - dts/include/dt-bindings, whose headers dt2c preprocesses for board.dts and which must not use continued #define lines; - headers included from assembly sources. No functional change: all 35 defconfigs build and every image is byte-identical to the unformatted tree; make -C test host passes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.