Hai Pham | 06d8f97 | 2023-01-26 21:06:07 +0100 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * R-Car Gen3 Clock Pulse Generator Library |
| 4 | * |
| 5 | * Copyright (C) 2015-2018 Glider bvba |
| 6 | * Copyright (C) 2019 Renesas Electronics Corp. |
| 7 | * |
| 8 | * Based on clk-rcar-gen3.c |
| 9 | * |
| 10 | * Copyright (C) 2015 Renesas Electronics Corp. |
| 11 | */ |
| 12 | |
| 13 | #ifndef __CLK_RENESAS_RCAR_CPG_LIB_H__ |
| 14 | #define __CLK_RENESAS_RCAR_CPG_LIB_H__ |
| 15 | |
| 16 | s64 rcar_clk_get_rate64_div_table(unsigned int parent, u64 parent_rate, |
| 17 | void __iomem *reg, const u32 mask, |
| 18 | const struct clk_div_table *table, char *name); |
| 19 | |
| 20 | int rcar_clk_set_rate64_div_table(unsigned int parent, u64 parent_rate, ulong rate, |
| 21 | void __iomem *reg, const u32 mask, |
| 22 | const struct clk_div_table *table, char *name); |
| 23 | |
| 24 | s64 rcar_clk_get_rate64_sdh(unsigned int parent, u64 parent_rate, void __iomem *reg); |
| 25 | s64 rcar_clk_get_rate64_sd(unsigned int parent, u64 parent_rate, void __iomem *reg); |
| 26 | s64 rcar_clk_get_rate64_rpc(unsigned int parent, u64 parent_rate, void __iomem *reg); |
| 27 | u64 rcar_clk_get_rate64_rpcd2(unsigned int parent, u64 parent_rate); |
| 28 | int rcar_clk_set_rate64_sdh(unsigned int parent, u64 parent_rate, ulong rate, |
| 29 | void __iomem *reg); |
| 30 | int rcar_clk_set_rate64_sd(unsigned int parent, u64 parent_rate, ulong rate, |
| 31 | void __iomem *reg); |
| 32 | |
| 33 | #endif |