diff options
author | Camelia Groza <camelia.groza@nxp.com> | 2023-07-11 15:49:20 +0300 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2023-07-13 16:54:29 +0800 |
commit | a325e7e8bd4e1715e2b701ba1fe534840391dfbf (patch) | |
tree | 15f9b6ce11df3b053fe1c1761932e378803a50ac /include/configs | |
parent | baa807f815236de21a7cdb18c3f1bf76653b51cc (diff) | |
download | u-boot-a325e7e8bd4e1715e2b701ba1fe534840391dfbf.tar.gz u-boot-a325e7e8bd4e1715e2b701ba1fe534840391dfbf.tar.bz2 u-boot-a325e7e8bd4e1715e2b701ba1fe534840391dfbf.zip |
board: freescale: t4240rdb: 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')
-rw-r--r-- | include/configs/T4240RDB.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/configs/T4240RDB.h b/include/configs/T4240RDB.h index 506f1b7e26..78e136224e 100644 --- a/include/configs/T4240RDB.h +++ b/include/configs/T4240RDB.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright 2014 Freescale Semiconductor, Inc. - * Copyright 2020-2021 NXP + * Copyright 2020-2023 NXP */ /* @@ -77,7 +77,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} |