Sean Anderson | 6e887ee | 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 | 6e887ee | 2020-06-24 06:41:09 -0400 | [diff] [blame] | 8 | #include <test/export.h> |
Sean Anderson | 6e887ee | 2020-06-24 06:41:09 -0400 | [diff] [blame] | 9 | |
Sean Anderson | 6e887ee | 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); |
Sean Anderson | 6e887ee | 2020-06-24 06:41:09 -0400 | [diff] [blame] | 19 | |
Heinrich Schuchardt | e6761f2 | 2020-07-28 17:52:23 +0200 | [diff] [blame] | 20 | #endif |
Sean Anderson | 6e887ee | 2020-06-24 06:41:09 -0400 | [diff] [blame] | 21 | #endif /* K210_PLL_H */ |