arch: Rename up_[early]serialinit to [arm64|riscv|x86_64][early]serialinit

The naming standard at:
https://cwiki.apache.org/confluence/display/NUTTX/Naming+of+Architecture%2C+MCU%2C+and+Board+Interfaces
requires that all MCU-private function begin with the name of the architecture, not up_.

follow the change from: https://github.com/apache/nuttx/pull/930

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-03-09 18:42:03 +08:00
committed by Petro Karashchenko
parent 6c6a54b0c9
commit bc3e6c84e1
15 changed files with 46 additions and 95 deletions
-5
View File
@@ -73,11 +73,6 @@ config RPMSG_UART
select SERIAL_REMOVABLE
select SERIAL_IFLOWCONTROL
config RPMSG_SERIALINIT
bool "Add dummy up_serialinit for UART rpmsg"
default y if !16550_UART && !MCU_SERIAL
depends on RPMSG_UART
#
# Standard serial driver configuration
#
+5 -5
View File
@@ -1276,7 +1276,7 @@ static void u16550_putc(FAR struct u16550_s *priv, int ch)
****************************************************************************/
/****************************************************************************
* Name: up_earlyserialinit
* Name: u16550_earlyserialinit
*
* Description:
* Performs the low level UART initialization early in debug so that the
@@ -1288,7 +1288,7 @@ static void u16550_putc(FAR struct u16550_s *priv, int ch)
*
****************************************************************************/
void up_earlyserialinit(void)
void u16550_earlyserialinit(void)
{
/* Configuration whichever one is the console */
@@ -1301,15 +1301,15 @@ void up_earlyserialinit(void)
}
/****************************************************************************
* Name: up_serialinit
* Name: u16550_serialinit
*
* Description:
* Register serial console and serial ports. This assumes that
* up_earlyserialinit was called previously.
* u16550_earlyserialinit was called previously.
*
****************************************************************************/
void up_serialinit(void)
void u16550_serialinit(void)
{
#ifdef CONSOLE_DEV
uart_register("/dev/console", &CONSOLE_DEV);
-12
View File
@@ -469,15 +469,3 @@ fail:
return ret;
}
#ifdef CONFIG_RPMSG_SERIALINIT
/* Dummy function to make linker happy */
void up_earlyserialinit(void)
{
}
void up_serialinit(void)
{
}
#endif /* CONFIG_RPMSG_SERIALINIT */