mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 03:58:17 +00:00 
			
		
		
		
	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>
		
			
				
	
	
		
			24 lines
		
	
	
		
			413 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			413 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0+ */
 | |
| /*
 | |
|  * Copyright 2014 Freescale Semiconductor, Inc.
 | |
|  *
 | |
|  */
 | |
| 
 | |
| #ifndef __ASM_ARCH_LS102XA_CLOCK_H_
 | |
| #define __ASM_ARCH_LS102XA_CLOCK_H_
 | |
| 
 | |
| #include <common.h>
 | |
| 
 | |
| enum mxc_clock {
 | |
| 	MXC_ARM_CLK = 0,
 | |
| 	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_LS102XA_CLOCK_H_ */
 |