serial: mxc: Support bulk enabling clocks
authorAdam Ford <aford173@gmail.com>
Tue, 18 Mar 2025 23:38:33 +0000 (18:38 -0500)
committerFabio Estevam <festevam@gmail.com>
Wed, 19 Mar 2025 16:17:21 +0000 (13:17 -0300)
commitdda454e933c636b225eef325f5f2b815ed01ac2e
treef6f41684af5697f938fec318e62bbe203c12fcc4
parent8999b76f2385cf3b6c01b9be2d7ea84047f4832b
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 <aford173@gmail.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/serial/serial_mxc.c
include/dm/platform_data/serial_mxc.h