summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdoardo Tomelleri <e.tomell@gmail.com>2022-09-18 19:17:01 +0300
committerNeil Armstrong <neil.armstrong@linaro.org>2022-11-22 20:53:21 +0300
commit66006f86e85ad3af3393fdcd74b8373dbb7b6dc5 (patch)
treee319baf77a8b2bd73acbf061643bc8092b7fa871 /include
parent536c642ffef545b4b5b02d065a0c1de9785549d7 (diff)
downloadu-boot-66006f86e85ad3af3393fdcd74b8373dbb7b6dc5.tar.xz
arm: amlogic: add setbrg op to serial device
Implement setbrg in amlogic/meson serial device with driver model similar to how the meson_uart.c driver does it in Linux. Also configure (probe) the serial device with the new reg5 register. Signed-off-by: Edoardo Tomelleri <e.tomell@gmail.com> Link: https://lore.kernel.org/r/20220918161701.572814-1-e.tomell@gmail.com Acked-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/configs/meson64.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/meson64.h b/include/configs/meson64.h
index 0c41df2a95..726f33c26c 100644
--- a/include/configs/meson64.h
+++ b/include/configs/meson64.h
@@ -16,6 +16,13 @@
#define GICC_BASE 0xc4302000
#endif
+/* Serial drivers */
+/* The following table includes the supported baudrates */
+#define CONFIG_SYS_BAUDRATE_TABLE \
+ {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, \
+ 230400, 250000, 460800, 500000, 1000000, 2000000, 4000000, \
+ 8000000 }
+
/* For splashscreen */
#ifdef CONFIG_VIDEO
#define STDOUT_CFG "vidconsole,serial"