1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
12 struct clk **children; /* Clocks to reparent */
13 struct clk **saved_parents; /* Parents saved over en-/dis-able */
14 struct clk *bypassee; /* Clock to bypass */
15 const struct clk_ops *bypassee_ops; /* Ops of the bypass clock */
16 struct clk *alt; /* Clock to set children to when bypassing */
20 #define to_k210_bypass(_clk) container_of(_clk, struct k210_bypass, clk)
22 int k210_bypass_set_children(struct clk *clk, struct clk **children,
24 struct clk *k210_register_bypass_struct(const char *name,
25 const char *parent_name,
26 struct k210_bypass *bypass);
27 struct clk *k210_register_bypass(const char *name, const char *parent_name,
29 const struct clk_ops *bypassee_ops,
31 #endif /* K210_BYPASS_H */