mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-29 22:43:10 +00:00
af9f997436
Now that there no separate PLL driver, we can no longer make the PLL functions static. By moving the PLL driver in with the rest of the clock code, we can make these functions static again. We still keep the pll header for unit testing, but it is pretty reduced. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
24 lines
411 B
C
24 lines
411 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com>
|
|
*/
|
|
#ifndef K210_PLL_H
|
|
#define K210_PLL_H
|
|
|
|
#include <test/export.h>
|
|
|
|
struct k210_pll_config {
|
|
u8 r;
|
|
u8 f;
|
|
u8 od;
|
|
};
|
|
|
|
#ifdef CONFIG_UNIT_TEST
|
|
TEST_STATIC int k210_pll_calc_config(u32 rate, u32 rate_in,
|
|
struct k210_pll_config *best);
|
|
#ifndef nop
|
|
#define nop()
|
|
#endif
|
|
|
|
#endif
|
|
#endif /* K210_PLL_H */
|