arm/armv8-r: fix build break if disable CONFIG_UART_PL011

Common code should support the if PL011 is not enabled

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an
2024-02-27 17:35:43 +08:00
committed by Xiang Xiao
parent 547342ca50
commit b413a1f4f7
+11
View File
@@ -56,7 +56,9 @@ void arm_earlyserialinit(void)
* when they are first opened. * when they are first opened.
*/ */
#ifdef CONFIG_UART_PL011
pl011_earlyserialinit(); pl011_earlyserialinit();
#endif
} }
/*************************************************************************** /***************************************************************************
@@ -69,7 +71,16 @@ void arm_earlyserialinit(void)
void arm_serialinit(void) void arm_serialinit(void)
{ {
#ifdef CONFIG_UART_PL011
pl011_serialinit(); pl011_serialinit();
#endif
}
#else /* USE_SERIALDRIVER */
int up_putc(int ch)
{
return 0;
} }
#endif /* USE_SERIALDRIVER */ #endif /* USE_SERIALDRIVER */