Sean Anderson | 019ef9a | 2020-06-24 06:41:09 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com> |
| 4 | */ |
| 5 | #ifndef K210_PLL_H |
| 6 | #define K210_PLL_H |
| 7 | |
Sean Anderson | 019ef9a | 2020-06-24 06:41:09 -0400 | [diff] [blame] | 8 | #include <test/export.h> |
Sean Anderson | 019ef9a | 2020-06-24 06:41:09 -0400 | [diff] [blame] | 9 | |
Sean Anderson | 019ef9a | 2020-06-24 06:41:09 -0400 | [diff] [blame] | 10 | struct k210_pll_config { |
| 11 | u8 r; |
| 12 | u8 f; |
| 13 | u8 od; |
| 14 | }; |
| 15 | |
| 16 | #ifdef CONFIG_UNIT_TEST |
| 17 | TEST_STATIC int k210_pll_calc_config(u32 rate, u32 rate_in, |
| 18 | struct k210_pll_config *best); |
Heinrich Schuchardt | 183f1e2 | 2020-07-28 17:52:23 +0200 | [diff] [blame] | 19 | #ifndef nop |
Sean Anderson | 019ef9a | 2020-06-24 06:41:09 -0400 | [diff] [blame] | 20 | #define nop() |
| 21 | #endif |
| 22 | |
Heinrich Schuchardt | 183f1e2 | 2020-07-28 17:52:23 +0200 | [diff] [blame] | 23 | #endif |
Sean Anderson | 019ef9a | 2020-06-24 06:41:09 -0400 | [diff] [blame] | 24 | #endif /* K210_PLL_H */ |