Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Copyright (c) 2019 BayLibre, SAS.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * Author: Jerome Brunet <jbrunet@baylibre.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #ifndef __MESON_CLK_MPLL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #define __MESON_CLK_MPLL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/clk-provider.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/spinlock.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include "parm.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct meson_clk_mpll_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	struct parm sdm;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	struct parm sdm_en;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	struct parm n2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	struct parm ssen;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	struct parm misc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	const struct reg_sequence *init_regs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	unsigned int init_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	spinlock_t *lock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	u8 flags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define CLK_MESON_MPLL_ROUND_CLOSEST	BIT(0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define CLK_MESON_MPLL_SPREAD_SPECTRUM	BIT(1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) extern const struct clk_ops meson_clk_mpll_ro_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) extern const struct clk_ops meson_clk_mpll_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #endif /* __MESON_CLK_MPLL_H */