From c7484ce0913f17b146ce60d26ebeca79df6e9d6e Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Wed, 13 Apr 2022 21:34:14 +0200 Subject: Nokia RX-51: Convert to CONFIG_DM_SERIAL For CONFIG_DM_SERIAL it is required to increase CONFIG_SYS_MALLOC_F_LEN as default value is not enough for memory hungry CONFIG_DM_SERIAL code. Signed-off-by: Pali Rohár Tested-by: Merlijn Wajer --- board/nokia/rx51/rx51.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'board/nokia') diff --git a/board/nokia/rx51/rx51.c b/board/nokia/rx51/rx51.c index 621cff09561..460d248eaae 100644 --- a/board/nokia/rx51/rx51.c +++ b/board/nokia/rx51/rx51.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -788,3 +789,14 @@ U_BOOT_DRVINFOS(rx51_video) = { U_BOOT_DRVINFOS(rx51_kp) = { { "rx51_kp" }, }; + +static const struct ns16550_plat rx51_serial = { + .base = CONFIG_SYS_NS16550_COM3, + .reg_shift = 2, + .clock = CONFIG_SYS_NS16550_CLK, + .fcr = UART_FCR_DEFVAL, +}; + +U_BOOT_DRVINFOS(rx51_uart) = { + { "omap_serial", &rx51_serial }, +}; -- cgit v1.2.3