summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCamelia Groza <[email protected]>2023-07-11 15:49:15 +0300
committerPeng Fan <[email protected]>2023-07-13 16:54:14 +0800
commitb14f37c73f4906d659706662627fd3d5c5732f92 (patch)
treebc2e8798459fb19a198178e314e3aabc2bc6bab8 /include
parenta85b8c75390ce03f923deabe1992db58e0052239 (diff)
board: freescale: t2080rdb: implement get_serial_clock
The serial clock is provided by the get_serial_clock() callback on PPC under DM_SERIAL. Use the same method to compute the clock as for non-DM_SERIAL use cases. Signed-off-by: Camelia Groza <[email protected]> Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/configs/T208xRDB.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/configs/T208xRDB.h b/include/configs/T208xRDB.h
index f213d2de770..0b9dde3e0e5 100644
--- a/include/configs/T208xRDB.h
+++ b/include/configs/T208xRDB.h
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright 2014 Freescale Semiconductor, Inc.
- * Copyright 2020-2021 NXP
+ * Copyright 2020-2023 NXP
*/
/*
@@ -215,7 +215,9 @@
/*
* Serial Port
*/
+#if !CONFIG_IS_ENABLED(DM_SERIAL)
#define CFG_SYS_NS16550_CLK (get_bus_freq(0)/2)
+#endif
#define CFG_SYS_BAUDRATE_TABLE \
{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
#define CFG_SYS_NS16550_COM1 (CFG_SYS_CCSRBAR+0x11C500)