common: Move clock functions into a new file

These three clock functions don't use driver model and should be migrated.
In the meantime, create a new file to hold them.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2019-12-28 10:44:58 -07:00
committed by Tom Rini
parent 6d1fdb1efb
commit d96c26040e
71 changed files with 86 additions and 11 deletions

View File

@@ -8,6 +8,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env.h>
#include <env_internal.h>

View File

@@ -8,6 +8,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <spl.h>
#include <asm/io.h>
#include <asm/gpio.h>

View File

@@ -3,6 +3,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env.h>
#include <env_internal.h>

View File

@@ -3,6 +3,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env_internal.h>
#include <init.h>

View File

@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <fdt_support.h>
#include <init.h>
#include <asm/arch/immap_ls102xa.h>

View File

@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>

View File

@@ -2,6 +2,7 @@
/* Copyright 2016-2019 NXP Semiconductors
*/
#include <common.h>
#include <clock_legacy.h>
#include <fdt_support.h>
#include <init.h>
#include <asm/arch-ls102xa/ls102xa_soc.h>

View File

@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>

View File

@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <dm.h>
#include <dm/platform_data/serial_pl01x.h>
#include <i2c.h>

View File

@@ -6,6 +6,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <fdt_support.h>
#include <init.h>
#if defined(CONFIG_OF_LIBFDT)

View File

@@ -8,6 +8,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <command.h>
#include <asm/io.h>
#include <fsl_diu_fb.h>

View File

@@ -3,6 +3,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env.h>
#include <env_internal.h>

View File

@@ -7,6 +7,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <command.h>
#include <linux/ctype.h>
#include <asm/io.h>

View File

@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env.h>
#include <env_internal.h>

View File

@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env.h>
#include <env_internal.h>

View File

@@ -323,7 +323,7 @@ void get_sys_info(sys_info_t *sys_info)
sys_info->freq_processor[0] = freq;
}
int get_clocks (void)
int get_clocks(void)
{
sys_info_t sys_info;
@@ -350,7 +350,7 @@ unsigned long get_tbclk (void)
* get_bus_freq
* return system bus freq in Hz
*********************************************/
ulong get_bus_freq (ulong dummy)
ulong get_bus_freq(ulong dummy)
{
sys_info_t sys_info;
get_sys_info(&sys_info);

View File

@@ -3,6 +3,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env_internal.h>
#include <init.h>

View File

@@ -3,6 +3,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env_internal.h>
#include <init.h>

View File

@@ -5,6 +5,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <command.h>
#include <linux/ctype.h>
#include <asm/io.h>

View File

@@ -4,6 +4,7 @@
* Author: Priyanka Jain <Priyanka.Jain@freescale.com>
*/
#include <clock_legacy.h>
#include <asm/io.h>
#include <common.h>
#include <command.h>

View File

@@ -3,6 +3,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env_internal.h>
#include <init.h>

View File

@@ -3,6 +3,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env_internal.h>
#include <init.h>

View File

@@ -3,6 +3,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env_internal.h>
#include <init.h>

View File

@@ -3,6 +3,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env_internal.h>
#include <init.h>

View File

@@ -6,6 +6,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <console.h>
#include <env_internal.h>
#include <init.h>

View File

@@ -7,6 +7,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <command.h>
#include <linux/ctype.h>
#include <asm/io.h>

View File

@@ -6,6 +6,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <init.h>
#include <asm/io.h>
#include <asm/arch/clock.h>

View File

@@ -11,6 +11,7 @@
*/
#include <common.h>
#include <clock_legacy.h>
#include <env.h>
#include <pci.h>
#include <asm/processor.h>