This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 2114981067b28f49c4e2f5476260d29972340799 Author: Justin Hammond <[email protected]> AuthorDate: Sun Aug 16 19:37:32 2026 +0800 boards/risc-v/eic7700x: Report the clock tree at startup. The architecture registers the clock tree before the board runs, and every driver the board brings up afterwards depends on it. Report what registered, so a tree that came up short is visible without a debug build. eic7700x_clk_count() supplies the numbers; /proc/clk has the tree itself. Assisted-by: Claude:claude-opus-5 Signed-off-by: Justin Hammond <[email protected]> --- boards/risc-v/eic7700x/common/src/eic7700x_boot.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/boards/risc-v/eic7700x/common/src/eic7700x_boot.c b/boards/risc-v/eic7700x/common/src/eic7700x_boot.c index 9788924113b..2dda13e33e4 100644 --- a/boards/risc-v/eic7700x/common/src/eic7700x_boot.c +++ b/boards/risc-v/eic7700x/common/src/eic7700x_boot.c @@ -37,6 +37,8 @@ #include <sys/boardctl.h> #include <arch/board/board_memorymap.h> +#include "eic7700x_clk.h" + #include "board_config.h" /**************************************************************************** @@ -94,6 +96,24 @@ static int mount_ramdisk(void) * Public Functions ****************************************************************************/ +/**************************************************************************** + * Name: report_clocks + * + * Description: + * Report the clock tree the architecture registered before this board + * ran. Its own function so that nothing it needs stays on the stack for + * the bring up that follows. + * + ****************************************************************************/ + +static void report_clocks(void) +{ + unsigned int nfail; + unsigned int nclk = eic7700x_clk_count(&nfail); + + syslog(LOG_INFO, "clk: registered %u clocks, %u failed\n", nclk, nfail); +} + /**************************************************************************** * Name: board_late_initialize * @@ -122,6 +142,8 @@ void board_late_initialize(void) mount(NULL, "/proc", "procfs", 0, NULL); + report_clocks(); + /* Devices whose presence or order is this board's business */ eic7700x_bringup();
