diff --git a/nshlib/Kconfig b/nshlib/Kconfig index 1bdd597d1..f149055b0 100644 --- a/nshlib/Kconfig +++ b/nshlib/Kconfig @@ -798,9 +798,10 @@ endmenu # USB Device Trace Support config NSH_ARCHINIT bool "Have architecture-specific initialization" default n + select LIB_BOARDCTL ---help--- Set if your board provides architecture specific initialization - via the board-specific function nsh_archinitialize(). This + via the board-interface function boardctl(). The boardctl() function will be called early in NSH initialization to allow board logic to do such things as configure MMC/SD slots. diff --git a/nshlib/README.txt b/nshlib/README.txt index 970d6e250..9da35acff 100644 --- a/nshlib/README.txt +++ b/nshlib/README.txt @@ -1258,9 +1258,9 @@ NSH-Specific Configuration Settings * CONFIG_NSH_ARCHINIT Set if your board provides architecture specific initialization - via the board-specific function nsh_archinitialize(). This - function will be called early in NSH initialization to allow - board logic to do such things as configure MMC/SD slots. + via the board-interface function boardctl(). This function will + be called early in NSH initialization to allow board logic to + do such things as configure MMC/SD slots. If Telnet is selected for the NSH console, then we must configure the resources used by the Telnet daemon and by the Telnet clients. diff --git a/nshlib/nsh.h b/nshlib/nsh.h index eccf5c23d..f9f5e1468 100644 --- a/nshlib/nsh.h +++ b/nshlib/nsh.h @@ -773,9 +773,9 @@ int nsh_loginscript(FAR struct nsh_vtbl_s *vtbl); /* Architecture-specific initialization */ #ifdef CONFIG_NSH_ARCHINIT -int nsh_archinitialize(void); +int board_app_initialize(void); #else -# define nsh_archinitialize() (-ENOSYS) +# define board_app_initialize() (-ENOSYS) #endif #ifdef CONFIG_NSH_ARCHMAC diff --git a/nshlib/nsh_init.c b/nshlib/nsh_init.c index c9b6a8578..ac1863f11 100644 --- a/nshlib/nsh_init.c +++ b/nshlib/nsh_init.c @@ -95,7 +95,7 @@ void nsh_initialize(void) /* Perform architecture-specific initialization (if available) */ - (void)nsh_archinitialize(); + (void)board_app_initialize(); /* Bring up the network */