summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorAdam Ford <[email protected]>2025-03-18 18:38:33 -0500
committerFabio Estevam <[email protected]>2025-03-19 13:17:21 -0300
commitdda454e933c636b225eef325f5f2b815ed01ac2e (patch)
treef6f41684af5697f938fec318e62bbe203c12fcc4 /include/dm
parent8999b76f2385cf3b6c01b9be2d7ea84047f4832b (diff)
serial: mxc: Support bulk enabling clocks
Depending on the platform, there may be multiple clock sources required to enable a UART. Use the bulk functions to get and enable the clocks when the UART probes. This can facilitate the removal of functions to manually enable the clock. This is made dependent on CLK_CCF which is used on imx6q, imx8m[mnqp], several imxrt, imx9. If/when the UART clock registration is done for older boards, this limitation could be updated. Signed-off-by: Adam Ford <[email protected]> Reviewed-by: Peng Fan <[email protected]>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/platform_data/serial_mxc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dm/platform_data/serial_mxc.h b/include/dm/platform_data/serial_mxc.h
index cc59eeb1dd1..52657aa3deb 100644
--- a/include/dm/platform_data/serial_mxc.h
+++ b/include/dm/platform_data/serial_mxc.h
@@ -9,6 +9,9 @@
/* Information about a serial port */
struct mxc_serial_plat {
struct mxc_uart *reg; /* address of registers in physical memory */
+#if CONFIG_IS_ENABLED(CLK_CCF)
+ struct clk_bulk clks;
+#endif
bool use_dte;
};