diff options
author | Pali Rohár | 2022-04-13 21:34:14 +0200 |
---|---|---|
committer | Tom Rini | 2022-05-09 13:40:24 -0400 |
commit | c7484ce0913f17b146ce60d26ebeca79df6e9d6e (patch) | |
tree | 5ad4dba63404b6f33e27d2c70da646e9e0d5872e /board/nokia | |
parent | f017c817a8ecfa19df0b72bca8054627d43e5c70 (diff) |
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 <pali@kernel.org>
Tested-by: Merlijn Wajer <merlijn@wizzup.org>
Diffstat (limited to 'board/nokia')
-rw-r--r-- | board/nokia/rx51/rx51.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 <i2c.h> #include <video.h> #include <keyboard.h> +#include <ns16550.h> #include <asm/global_data.h> #include <asm/io.h> #include <asm/setup.h> @@ -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 }, +}; |