Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
renesas_rcar_generic.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 BayLibre, SAS
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_RENESAS_RCAR_GENERIC_H_
14#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_RENESAS_RCAR_GENERIC_H_
15
21
22/* Gen 5 boards deal with clocks through SCMI. */
23#ifdef CONFIG_CLOCK_CONTROL_ARM_SCMI
24
26
33#define RCAR_DT_INST_CLOCKS_CELL_BY_IDX(inst, idx) \
34{ \
35 .subsys = (clock_control_subsys_t)DT_INST_CLOCKS_CELL_BY_IDX(inst, idx, name) \
36}
37
43#define RCAR_CLOCK_SUBSYS(clk) (clk).subsys
44
46struct rcar_generic_clk {
48};
49
51typedef struct rcar_generic_clk rcar_generic_clk_t;
52
53/* Gen 3 and gen 4 boards directly access the clock controller module. */
54#else
55
57
64#define RCAR_DT_INST_CLOCKS_CELL_BY_IDX(inst, idx) \
65{ \
66 .module = DT_INST_CLOCKS_CELL_BY_IDX(inst, idx, module), \
67 .domain = DT_INST_CLOCKS_CELL_BY_IDX(inst, idx, domain) \
68}
69
75#define RCAR_CLOCK_SUBSYS(clk) (clock_control_subsys_t)&(clk)
76
79
80#endif /* CONFIG_CLOCK_CONTROL_ARM_SCMI */
81
83
84#endif /* ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_RENESAS_RCAR_GENERIC_H_ */
Main header file for clock control driver API.
Clock control definitions for the Renesas R-Car CPG/MSSR controller.
void * clock_control_subsys_t
Opaque handle identifying a clock controller subsystem.
Definition clock_control.h:65
struct rcar_cpg_clk rcar_generic_clk_t
Abstract the clock type used by the implementation.
Definition renesas_rcar_generic.h:78
R-Car CPG/MSSR clock subsystem selector.
Definition renesas_cpg_mssr.h:29