aboutsummaryrefslogtreecommitdiff
path: root/include/configs/T104xRDB.h
diff options
context:
space:
mode:
authorCamelia Groza <camelia.groza@nxp.com>2023-07-11 15:49:25 +0300
committerPeng Fan <peng.fan@nxp.com>2023-07-13 16:54:38 +0800
commit3a359c50002d18ab14ca750e8113cc5e63e2badd (patch)
tree401dfeea73c207c93c2fb003ab1d8a7e13bbd690 /include/configs/T104xRDB.h
parent4e69a447fab3eace7a092f5695d397ffa9170177 (diff)
downloadu-boot-3a359c50002d18ab14ca750e8113cc5e63e2badd.zip
u-boot-3a359c50002d18ab14ca750e8113cc5e63e2badd.tar.gz
u-boot-3a359c50002d18ab14ca750e8113cc5e63e2badd.tar.bz2
board: freescale: t104xrdb: 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 <camelia.groza@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include/configs/T104xRDB.h')
-rw-r--r--include/configs/T104xRDB.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/configs/T104xRDB.h b/include/configs/T104xRDB.h
index f196bd7..01db298 100644
--- a/include/configs/T104xRDB.h
+++ b/include/configs/T104xRDB.h
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright 2014 Freescale Semiconductor, Inc.
- * Copyright 2020-2021 NXP
+ * Copyright 2020-2023 NXP
*/
#ifndef __CONFIG_H
@@ -238,7 +238,9 @@
* open - index 2
* shorted - index 1
*/
+#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}