blob: fd16a89cb20313788b75609a61dcdd9f4608ecae [file] [log] [blame]
Sean Anderson019ef9a2020-06-24 06:41:09 -04001/* 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 Anderson019ef9a2020-06-24 06:41:09 -04008#include <test/export.h>
Sean Anderson019ef9a2020-06-24 06:41:09 -04009
Sean Anderson019ef9a2020-06-24 06:41:09 -040010struct k210_pll_config {
11 u8 r;
12 u8 f;
13 u8 od;
14};
15
16#ifdef CONFIG_UNIT_TEST
17TEST_STATIC int k210_pll_calc_config(u32 rate, u32 rate_in,
18 struct k210_pll_config *best);
Heinrich Schuchardt183f1e22020-07-28 17:52:23 +020019#ifndef nop
Sean Anderson019ef9a2020-06-24 06:41:09 -040020#define nop()
21#endif
22
Heinrich Schuchardt183f1e22020-07-28 17:52:23 +020023#endif
Sean Anderson019ef9a2020-06-24 06:41:09 -040024#endif /* K210_PLL_H */