mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 10:26:10 +01:00 
			
		
		
		
	To make it easy to add new clk driver for i.MX8, split the code into common part and SoC specific part. Make the get/set/enable non static and introduce a num_clks for soc_clk_dump, because the arrays are moved to clk-imx8qxp.c. Signed-off-by: Peng Fan <peng.fan@nxp.com>
		
			
				
	
	
		
			20 lines
		
	
	
		
			413 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			413 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0+ */
 | |
| /*
 | |
|  * Copyright 2018 NXP
 | |
|  * Peng Fan <peng.fan@nxp.com>
 | |
|  */
 | |
| 
 | |
| struct imx8_clks {
 | |
| 	ulong id;
 | |
| 	const char *name;
 | |
| };
 | |
| 
 | |
| #if CONFIG_IS_ENABLED(CMD_CLK)
 | |
| extern struct imx8_clks imx8_clk_names[];
 | |
| extern int num_clks;
 | |
| #endif
 | |
| 
 | |
| ulong imx8_clk_get_rate(struct clk *clk);
 | |
| ulong imx8_clk_set_rate(struct clk *clk, unsigned long rate);
 | |
| int __imx8_clk_enable(struct clk *clk, bool enable);
 |