mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 07:57:21 +00:00
d3eb317ea5
Although layerscape platforms reuse mxc_get_clock() of i.MX platforms, eSDHC clock getting do not have to use it. It uses global data gd->arch.sdhc_clk directly in fsl_esdhc driver. Even there are more than one eSDHC controllers on SoC, they use same reference clock. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
25 lines
485 B
C
25 lines
485 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2015 Freescale Semiconductor, Inc.
|
|
* Copyright 2019 NXP Semiconductors
|
|
*
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_FSL_LAYERSCAPE_CLOCK_H_
|
|
#define __ASM_ARCH_FSL_LAYERSCAPE_CLOCK_H_
|
|
|
|
#include <common.h>
|
|
|
|
enum mxc_clock {
|
|
MXC_ARM_CLK = 0,
|
|
MXC_BUS_CLK,
|
|
MXC_UART_CLK,
|
|
MXC_I2C_CLK,
|
|
MXC_DSPI_CLK,
|
|
};
|
|
|
|
unsigned int mxc_get_clock(enum mxc_clock clk);
|
|
ulong get_ddr_freq(ulong);
|
|
uint get_svr(void);
|
|
|
|
#endif /* __ASM_ARCH_FSL_LAYERSCAPE_CLOCK_H_ */
|