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
11
12#ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_RENESAS_RCAR_GENERIC_H_
13#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_RENESAS_RCAR_GENERIC_H_
14
15/* Gen 5 boards deal with clocks through SCMI. */
16#ifdef CONFIG_CLOCK_CONTROL_ARM_SCMI
17
19
26#define RCAR_DT_INST_CLOCKS_CELL_BY_IDX(inst, idx) \
27{ \
28 .subsys = (clock_control_subsys_t)DT_INST_CLOCKS_CELL_BY_IDX(inst, idx, name) \
29}
30
36#define RCAR_CLOCK_SUBSYS(clk) (clk).subsys
37
39struct rcar_generic_clk {
41};
42
44typedef struct rcar_generic_clk rcar_generic_clk_t;
45
46/* Gen 3 and gen 4 boards directly access the clock controller module. */
47#else
48
50
57#define RCAR_DT_INST_CLOCKS_CELL_BY_IDX(inst, idx) \
58{ \
59 .module = DT_INST_CLOCKS_CELL_BY_IDX(inst, idx, module), \
60 .domain = DT_INST_CLOCKS_CELL_BY_IDX(inst, idx, domain) \
61}
62
68#define RCAR_CLOCK_SUBSYS(clk) (clock_control_subsys_t)&(clk)
69
72
73#endif /* CONFIG_CLOCK_CONTROL_ARM_SCMI */
74
75#endif /* ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_RENESAS_RCAR_GENERIC_H_ */
Main header file for clock control driver API.
void * clock_control_subsys_t
clock_control_subsys_t is a type to identify a clock controller sub-system.
Definition clock_control.h:59
struct rcar_cpg_clk rcar_generic_clk_t
Abstract the clock type used by the implementation.
Definition renesas_rcar_generic.h:71
Definition renesas_cpg_mssr.h:15