diff options
| author | Simon Glass <sjg@chromium.org> | 2019-12-28 10:44:58 -0700 |
|---|---|---|
| committer | Jagan Teki <jagan@amarulasolutions.com> | 2020-01-24 23:06:48 +0530 |
| commit | b63ff2ae54a74e68fb67ea7f150e9f01174eb535 (patch) | |
| tree | eef87384b3c4f0169c0dae2678b382c174b80479 /include | |
| parent | 39fdefa6cf302ad2dbc30c905f03e5480b380ec3 (diff) | |
| download | u-boot-b63ff2ae54a74e68fb67ea7f150e9f01174eb535.tar.gz u-boot-b63ff2ae54a74e68fb67ea7f150e9f01174eb535.tar.xz u-boot-b63ff2ae54a74e68fb67ea7f150e9f01174eb535.zip | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/clock_legacy.h | 14 | ||||
| -rw-r--r-- | include/common.h | 5 |
2 files changed, 14 insertions, 5 deletions
diff --git a/include/clock_legacy.h b/include/clock_legacy.h new file mode 100644 index 0000000000..b0a8333ea6 --- /dev/null +++ b/include/clock_legacy.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * (C) Copyright 2000-2009 + * Wolfgang Denk, DENX Software Engineering, wd@denx.de. + */ + +#ifndef __CLOCK_LEGACY_H +#define __CLOCK_LEGACY_H + +int get_clocks(void); +unsigned long get_bus_freq(unsigned long dummy); +int get_serial_clock(void); + +#endif diff --git a/include/common.h b/include/common.h index 1f87070d49..cc3d212a3d 100644 --- a/include/common.h +++ b/include/common.h @@ -78,11 +78,6 @@ ulong get_tbclk (void); void reset_misc (void); void reset_cpu (ulong addr); -/* $(CPU)/speed.c */ -int get_clocks (void); -ulong get_bus_freq (ulong); -int get_serial_clock(void); - /* lib/uuid.c */ #include <uuid.h> |
