Zephyr API Documentation
4.2.0-rc3
A Scalable Open Source RTOS
4.2.0-rc3
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Zephyr API Documentation
Introduction
Deprecated List
Topics
Data Structures
Files
File List
doc
kernel
lib
modules
subsys
zephyr
acpi
app_memory
arch
audio
bluetooth
canbus
console
crypto
data
debug
devicetree
dfu
display
drivers
dsp
dt-bindings
acpi
adc
battery
clock
silabs
adi_max32_clock.h
ast10x0_clock.h
atmel_sam_pmc.h
bflb_bl60x_clock.h
bflb_clock_common.h
ch32v00x-clocks.h
ch32v20x_30x-clocks.h
esp32_clock.h
esp32c2_clock.h
esp32c3_clock.h
esp32c6_clock.h
esp32s2_clock.h
esp32s3_clock.h
gd32-clocks-common.h
gd32a50x-clocks.h
gd32e10x-clocks.h
gd32e50x-clocks.h
gd32f3x0-clocks.h
gd32f403-clocks.h
gd32f4xx-clocks.h
gd32l23x-clocks.h
gd32vf103-clocks.h
imx8ulp_clock.h
imx943_clock.h
imx95_clock.h
imx_ccm.h
imx_ccm_rev2.h
intel_socfpga_clock.h
ite-it51xxx-clock.h
kinetis_mcg.h
kinetis_pcc.h
kinetis_scg.h
kinetis_sim.h
lpc11u6x_clock.h
mchp_xec_pcr.h
mcux_lpc_syscon_clock.h
microchip_sam_pmc.h
mspm0_clock.h
npcm_clock.h
npcx_clock.h
nrf-auxpll.h
nrfs-audiopll.h
numaker_m2l31x_clock.h
numaker_m46x_clock.h
numaker_m55m1x_clock.h
nxp_s32k146_clock.h
nxp_s32k148_clock.h
nxp_s32k344_clock.h
nxp_s32z2_clock.h
r8a7795_cpg_mssr.h
r8a779f0_cpg_mssr.h
ra_clock.h
renesas_cpg_mssr.h
renesas_rza2m_clock.h
renesas_rzg_clock.h
rpi_pico_clock_common.h
rpi_pico_rp2040_clock.h
rpi_pico_rp2350_clock.h
rts5912_clock.h
rx_clock.h
scg_k4.h
stm32_clock.h
stm32_common_clocks.h
stm32c0_clock.h
stm32f0_clock.h
stm32f10x_clock.h
stm32f1_clock.h
stm32f3_clock.h
stm32f410_clock.h
stm32f427_clock.h
stm32f4_clock.h
stm32f7_clock.h
stm32g0_b1x_c1x_clock.h
stm32g0_clock.h
stm32g4_clock.h
stm32h5_clock.h
stm32h7_clock.h
stm32h7rs_clock.h
stm32l0_clock.h
stm32l1_clock.h
stm32l4_clock.h
stm32mp13_clock.h
stm32mp2_clock.h
stm32n6_clock.h
stm32u0_clock.h
stm32u3_clock.h
stm32u5_clock.h
stm32wb0_clock.h
stm32wb_clock.h
stm32wba_clock.h
stm32wl_clock.h
comparator
dac
dai
display
dma
espi
ethernet
flash_controller
gnss
gpio
i2c
input
inputmux
interrupt-controller
ipc_service
led
lora
lvgl
memory-attr
memory-controller
mfd
mipi_dbi
mipi_dsi
misc
pcie
pinctrl
power
pwm
qspi
rdc
regulator
reserved-memory
reset
sensor
sent
spi
timer
usb
usb-c
video
dt-util.h
fs
input
internal
ipc
kernel
linker
llext
logging
lorawan
math
mem_mgmt
mgmt
misc
modbus
modem
multi_heap
net
platform
pm
pmci
portability
posix
psa
random
retention
rtio
sd
sensing
settings
shell
sip_svc
stats
storage
sys
task_wdt
timing
toolchain
tracing
usb
usb_c
xen
zbus
zvfs
bindesc.h
cache.h
device.h
devicetree.h
fatal.h
fatal_types.h
init.h
irq.h
irq_multilevel.h
irq_nextlevel.h
irq_offload.h
kernel.h
kernel_includes.h
kernel_structs.h
kernel_version.h
net_buf.h
shared_irq.h
smf.h
spinlock.h
sw_isr_table.h
sys_clock.h
syscall.h
toolchain.h
types.h
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
renesas_rzg_clock.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 Renesas Electronics Corporation
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_RENESAS_RZG_CLOCK_H_
8
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_RENESAS_RZG_CLOCK_H_
9
11
#define RZ_IP_MASK 0xFF000000UL
12
#define RZ_IP_SHIFT 24UL
13
#define RZ_IP_CH_MASK 0xFF0000UL
14
#define RZ_IP_CH_SHIFT 16UL
15
#define RZ_CLOCK_MASK 0xFF00UL
16
#define RZ_CLOCK_SHIFT 8UL
17
#define RZ_CLOCK_DIV_MASK 0xFFUL
18
#define RZ_CLOCK_DIV_SHIFT 0UL
19
20
#define RZ_IP_GTM 0UL
/* General Timer */
21
#define RZ_IP_GPT 1UL
/* General PWM Timer */
22
#define RZ_IP_SCIF 2UL
/* Serial Communications Interface with FIFO */
23
#define RZ_IP_RIIC 3UL
/* I2C Bus Interface */
24
#define RZ_IP_RSPI 4UL
/* Renesas Serial Peripheral Interface */
25
#define RZ_IP_MHU 5UL
/* Message Handling Unit */
26
#define RZ_IP_DMAC 6UL
/* Direct Memory Access Controller */
27
#define RZ_IP_CANFD 7UL
/* CANFD Interface (RS-CANFD) */
28
#define RZ_IP_ADC 8UL
/* A/D Converter */
29
30
#define RZ_CLOCK_ICLK 0UL
/* Cortex-A55 Clock */
31
#define RZ_CLOCK_I2CLK 1UL
/* Cortex-M33 Clock */
32
#define RZ_CLOCK_I3CLK 2UL
/* Cortex-M33 FPU Clock */
33
#define RZ_CLOCK_S0CLK 3UL
/* DDR-PHY Clock */
34
#define RZ_CLOCK_OC0CLK 4UL
/* OCTA0 Clock */
35
#define RZ_CLOCK_OC1CLK 5UL
/* OCTA1 Clock */
36
#define RZ_CLOCK_SPI0CLK 6UL
/* SPI0 Clock */
37
#define RZ_CLOCK_SPI1CLK 7UL
/* SPI1 Clock */
38
#define RZ_CLOCK_SD0CLK 8UL
/* SDH0 Clock */
39
#define RZ_CLOCK_SD1CLK 9UL
/* SDH1 Clock */
40
#define RZ_CLOCK_SD2CLK 10UL
/* SDH2 Clock */
41
#define RZ_CLOCK_M0CLK 11UL
/* VCP LCDC Clock */
42
#define RZ_CLOCK_HPCLK 12UL
/* Ethernet Clock */
43
#define RZ_CLOCK_TSUCLK 13UL
/* TSU Clock */
44
#define RZ_CLOCK_ZTCLK 14UL
/* JAUTH Clock */
45
#define RZ_CLOCK_P0CLK 15UL
/* APB-BUS Clock */
46
#define RZ_CLOCK_P1CLK 16UL
/* AXI-BUS Clock */
47
#define RZ_CLOCK_P2CLK 17UL
/* P2CLK */
48
#define RZ_CLOCK_P3CLK 18UL
/* P3CLK */
49
#define RZ_CLOCK_P4CLK 19UL
/* P4CLK */
50
#define RZ_CLOCK_P5CLK 20UL
/* P5CLK */
51
#define RZ_CLOCK_ATCLK 21UL
/* ATCLK */
52
#define RZ_CLOCK_OSCCLK 22UL
/* OSC Clock */
53
#define RZ_CLOCK_OSCCLK2 23UL
/* OSC2 Clock */
54
55
#define RZ_CLOCK(IP, ch, clk, div) \
56
((RZ_IP_##IP << RZ_IP_SHIFT) | ((ch) << RZ_IP_CH_SHIFT) | ((clk) << RZ_CLOCK_SHIFT) | \
57
((div) << RZ_CLOCK_DIV_SHIFT))
55
#define RZ_CLOCK(IP, ch, clk, div) \
…
58
65
66
/* SCIF */
67
#define RZ_CLOCK_SCIF(ch) RZ_CLOCK(SCIF, ch, RZ_CLOCK_P0CLK, 1)
68
69
/* GPT */
70
#define RZ_CLOCK_GPT(ch) RZ_CLOCK(GPT, ch, RZ_CLOCK_P0CLK, 1)
71
72
/* MHU */
73
#define RZ_CLOCK_MHU(ch) RZ_CLOCK(MHU, ch, RZ_CLOCK_P1CLK, 2)
74
75
/* ADC */
76
#define RZ_CLOCK_ADC(ch) RZ_CLOCK(ADC, ch, RZ_CLOCK_TSUCLK, 1)
77
78
/* RIIC */
79
#define RZ_CLOCK_RIIC(ch) RZ_CLOCK(RIIC, ch, RZ_CLOCK_P0CLK, 1)
80
81
/* GTM */
82
#define RZ_CLOCK_GTM(ch) RZ_CLOCK(GTM, ch, RZ_CLOCK_P0CLK, 1)
83
84
/* CAN */
85
#define RZ_CLOCK_CANFD(ch) RZ_CLOCK(CANFD, ch, RZ_CLOCK_P4CLK, 2)
86
87
/* RSPI */
88
#define RZ_CLOCK_RSPI(ch) RZ_CLOCK(RSPI, ch, RZ_CLOCK_P0CLK, 1)
89
90
/* DMAC */
91
#define RZ_CLOCK_DMAC(ch) RZ_CLOCK(DMAC, ch, RZ_CLOCK_P3CLK, 1)
92
93
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_RENESAS_RZG_CLOCK_H_ */
zephyr
dt-bindings
clock
renesas_rzg_clock.h
Generated on
for Zephyr API Documentation by
1.14.0