mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 18:34:42 +00:00

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>
18 lines
349 B
C
18 lines
349 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (c) 2014 Google, Inc
|
|
*/
|
|
|
|
#ifndef __serial_mxc_h
|
|
#define __serial_mxc_h
|
|
|
|
/* 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;
|
|
};
|
|
|
|
#endif
|