Browse Source
Add conditional compilation check for swj_connector_init call in soc_early_init_hook to prevent link errors when swj_port is disabled in device tree. The code is now wrapped with DT_NODE_HAS_STATUS_OKAY(SWJ_NODE) to ensure the function is only included when the corresponding device tree node is enabled. This fixes the undefined reference link error that occurs when compiling with swj_port disabled in the device tree configuration. Signed-off-by: Jhan BoChao <jhan_bo_chao@realtek.com>pull/86408/head
3 changed files with 12 additions and 1 deletions
Loading…
Reference in new issue