Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
renesas_rzv_clock.h File Reference

Go to the source code of this file.

Macros

#define RZ_IP_MASK   0xFF000000UL
 
#define RZ_IP_SHIFT   24UL
 
#define RZ_IP_CH_MASK   0xFF0000UL
 
#define RZ_IP_CH_SHIFT   16UL
 
#define RZ_CLOCK_MASK   0xFF00UL
 
#define RZ_CLOCK_SHIFT   8UL
 
#define RZ_CLOCK_DIV_MASK   0xFFUL
 
#define RZ_CLOCK_DIV_SHIFT   0UL
 
#define RZ_IP_GTM   0UL /* General Timer */
 
#define RZ_IP_GPT   1UL /* General PWM Timer */
 
#define RZ_IP_SCI   2UL /* Serial Communications Interface */
 
#define RZ_IP_SCIF   3UL /* Serial Communications Interface with FIFO */
 
#define RZ_IP_RIIC   4UL /* I2C Bus Interface */
 
#define RZ_IP_RSPI   5UL /* Renesas Serial Peripheral Interface */
 
#define RZ_IP_MHU   6UL /* Message Handling Unit */
 
#define RZ_IP_DMAC   7UL /* Direct Memory Access Controller */
 
#define RZ_IP_CANFD   8UL /* CANFD Interface (RS-CANFD) */
 
#define RZ_IP_ADC   10UL /* A/D Converter */
 
#define RZ_IP_WDT   11UL /* Watchdog Timer */
 
#define RZ_CLOCK_ICLK   0UL /* Cortex-A55 Clock */
 
#define RZ_CLOCK_I2CLK   1UL /* Cortex-M33 Clock */
 
#define RZ_CLOCK_GCLK   2UL /* GPU Clock */
 
#define RZ_CLOCK_S0CLK   3UL /* DDR-PHY Clock */
 
#define RZ_CLOCK_SPI0CLK   4UL /* SPI0 Clock */
 
#define RZ_CLOCK_SPI1CLK   5UL /* SPI1 Clock */
 
#define RZ_CLOCK_SD0CLK   6UL /* SDH0 Clock */
 
#define RZ_CLOCK_SD1CLK   7UL /* SDH1 Clock */
 
#define RZ_CLOCK_M0CLK   8UL /* VCP, LCDC Clock */
 
#define RZ_CLOCK_M1CLK   9UL /* MIPI-DSI, MIPI-CSI Clock */
 
#define RZ_CLOCK_M2CLK   10UL /* CRU, MIPI-DSI Clock */
 
#define RZ_CLOCK_M3CLK   11UL /* MIPI-DSI, LCDC Clock */
 
#define RZ_CLOCK_M4CLK   12UL /* MIPI-DSI Clock */
 
#define RZ_CLOCK_HPCLK   13UL /* Ethernet Clock */
 
#define RZ_CLOCK_TSUCLK   14UL /* TSU Clock */
 
#define RZ_CLOCK_ZTCLK   15UL /* JAUTH Clock */
 
#define RZ_CLOCK_P0CLK   16UL /* APB-BUS Clock */
 
#define RZ_CLOCK_P1CLK   17UL /* AXI-BUS Clock */
 
#define RZ_CLOCK_P2CLK   18UL /* P2CLK */
 
#define RZ_CLOCK_ATCLK   19UL /* ATCLK */
 
#define RZ_CLOCK_OSCCLK   20UL /* OSC Clock */
 
#define RZ_CLOCK(IP, ch, clk, div)
 
#define RZ_CLOCK_GTM(ch)   RZ_CLOCK(GTM, ch, RZ_CLOCK_P0CLK, 1)
 Pack clock configurations in a 32-bit value as expected for the Device Tree clocks property on Renesas RZ/V.
 
#define RZ_CLOCK_GPT(ch)   RZ_CLOCK(GPT, ch, RZ_CLOCK_P0CLK, 1)
 
#define RZ_CLOCK_SCI(ch)   RZ_CLOCK(SCI, ch, RZ_CLOCK_P0CLK, 1)
 
#define RZ_CLOCK_SCIF(ch)   RZ_CLOCK(SCIF, ch, RZ_CLOCK_P0CLK, 1)
 
#define RZ_CLOCK_RIIC(ch)   RZ_CLOCK(RIIC, ch, RZ_CLOCK_P0CLK, 1)
 
#define RZ_CLOCK_RSPI(ch)   RZ_CLOCK(RSPI, ch, RZ_CLOCK_P0CLK, 1)
 
#define RZ_CLOCK_MHU(ch)   RZ_CLOCK(MHU, ch, RZ_CLOCK_P1CLK, 2)
 
#define RZ_CLOCK_DMAC(ch)   RZ_CLOCK(DMAC, ch, RZ_CLOCK_P1CLK, 1)
 
#define RZ_CLOCK_CANFD(ch)   RZ_CLOCK(CANFD, ch, RZ_CLOCK_P0CLK, 1)
 

Macro Definition Documentation

◆ RZ_CLOCK

#define RZ_CLOCK (   IP,
  ch,
  clk,
  div 
)
Value:
((RZ_IP_##IP << RZ_IP_SHIFT) | ((ch) << RZ_IP_CH_SHIFT) | ((clk) << RZ_CLOCK_SHIFT) | \
((div) << RZ_CLOCK_DIV_SHIFT))
#define RZ_IP_SHIFT
Definition renesas_rzv_clock.h:12
#define RZ_CLOCK_SHIFT
Definition renesas_rzv_clock.h:16
#define RZ_CLOCK_DIV_SHIFT
Definition renesas_rzv_clock.h:18
#define RZ_IP_CH_SHIFT
Definition renesas_rzv_clock.h:14

◆ RZ_CLOCK_ATCLK

#define RZ_CLOCK_ATCLK   19UL /* ATCLK */

◆ RZ_CLOCK_CANFD

#define RZ_CLOCK_CANFD (   ch)    RZ_CLOCK(CANFD, ch, RZ_CLOCK_P0CLK, 1)

◆ RZ_CLOCK_DIV_MASK

#define RZ_CLOCK_DIV_MASK   0xFFUL

◆ RZ_CLOCK_DIV_SHIFT

#define RZ_CLOCK_DIV_SHIFT   0UL

◆ RZ_CLOCK_DMAC

#define RZ_CLOCK_DMAC (   ch)    RZ_CLOCK(DMAC, ch, RZ_CLOCK_P1CLK, 1)

◆ RZ_CLOCK_GCLK

#define RZ_CLOCK_GCLK   2UL /* GPU Clock */

◆ RZ_CLOCK_GPT

#define RZ_CLOCK_GPT (   ch)    RZ_CLOCK(GPT, ch, RZ_CLOCK_P0CLK, 1)

◆ RZ_CLOCK_GTM

#define RZ_CLOCK_GTM (   ch)    RZ_CLOCK(GTM, ch, RZ_CLOCK_P0CLK, 1)

Pack clock configurations in a 32-bit value as expected for the Device Tree clocks property on Renesas RZ/V.

Parameters
chPeripheral channel/unit

◆ RZ_CLOCK_HPCLK

#define RZ_CLOCK_HPCLK   13UL /* Ethernet Clock */

◆ RZ_CLOCK_I2CLK

#define RZ_CLOCK_I2CLK   1UL /* Cortex-M33 Clock */

◆ RZ_CLOCK_ICLK

#define RZ_CLOCK_ICLK   0UL /* Cortex-A55 Clock */

◆ RZ_CLOCK_M0CLK

#define RZ_CLOCK_M0CLK   8UL /* VCP, LCDC Clock */

◆ RZ_CLOCK_M1CLK

#define RZ_CLOCK_M1CLK   9UL /* MIPI-DSI, MIPI-CSI Clock */

◆ RZ_CLOCK_M2CLK

#define RZ_CLOCK_M2CLK   10UL /* CRU, MIPI-DSI Clock */

◆ RZ_CLOCK_M3CLK

#define RZ_CLOCK_M3CLK   11UL /* MIPI-DSI, LCDC Clock */

◆ RZ_CLOCK_M4CLK

#define RZ_CLOCK_M4CLK   12UL /* MIPI-DSI Clock */

◆ RZ_CLOCK_MASK

#define RZ_CLOCK_MASK   0xFF00UL

◆ RZ_CLOCK_MHU

#define RZ_CLOCK_MHU (   ch)    RZ_CLOCK(MHU, ch, RZ_CLOCK_P1CLK, 2)

◆ RZ_CLOCK_OSCCLK

#define RZ_CLOCK_OSCCLK   20UL /* OSC Clock */

◆ RZ_CLOCK_P0CLK

#define RZ_CLOCK_P0CLK   16UL /* APB-BUS Clock */

◆ RZ_CLOCK_P1CLK

#define RZ_CLOCK_P1CLK   17UL /* AXI-BUS Clock */

◆ RZ_CLOCK_P2CLK

#define RZ_CLOCK_P2CLK   18UL /* P2CLK */

◆ RZ_CLOCK_RIIC

#define RZ_CLOCK_RIIC (   ch)    RZ_CLOCK(RIIC, ch, RZ_CLOCK_P0CLK, 1)

◆ RZ_CLOCK_RSPI

#define RZ_CLOCK_RSPI (   ch)    RZ_CLOCK(RSPI, ch, RZ_CLOCK_P0CLK, 1)

◆ RZ_CLOCK_S0CLK

#define RZ_CLOCK_S0CLK   3UL /* DDR-PHY Clock */

◆ RZ_CLOCK_SCI

#define RZ_CLOCK_SCI (   ch)    RZ_CLOCK(SCI, ch, RZ_CLOCK_P0CLK, 1)

◆ RZ_CLOCK_SCIF

#define RZ_CLOCK_SCIF (   ch)    RZ_CLOCK(SCIF, ch, RZ_CLOCK_P0CLK, 1)

◆ RZ_CLOCK_SD0CLK

#define RZ_CLOCK_SD0CLK   6UL /* SDH0 Clock */

◆ RZ_CLOCK_SD1CLK

#define RZ_CLOCK_SD1CLK   7UL /* SDH1 Clock */

◆ RZ_CLOCK_SHIFT

#define RZ_CLOCK_SHIFT   8UL

◆ RZ_CLOCK_SPI0CLK

#define RZ_CLOCK_SPI0CLK   4UL /* SPI0 Clock */

◆ RZ_CLOCK_SPI1CLK

#define RZ_CLOCK_SPI1CLK   5UL /* SPI1 Clock */

◆ RZ_CLOCK_TSUCLK

#define RZ_CLOCK_TSUCLK   14UL /* TSU Clock */

◆ RZ_CLOCK_ZTCLK

#define RZ_CLOCK_ZTCLK   15UL /* JAUTH Clock */

◆ RZ_IP_ADC

#define RZ_IP_ADC   10UL /* A/D Converter */

◆ RZ_IP_CANFD

#define RZ_IP_CANFD   8UL /* CANFD Interface (RS-CANFD) */

◆ RZ_IP_CH_MASK

#define RZ_IP_CH_MASK   0xFF0000UL

◆ RZ_IP_CH_SHIFT

#define RZ_IP_CH_SHIFT   16UL

◆ RZ_IP_DMAC

#define RZ_IP_DMAC   7UL /* Direct Memory Access Controller */

◆ RZ_IP_GPT

#define RZ_IP_GPT   1UL /* General PWM Timer */

◆ RZ_IP_GTM

#define RZ_IP_GTM   0UL /* General Timer */

◆ RZ_IP_MASK

#define RZ_IP_MASK   0xFF000000UL

◆ RZ_IP_MHU

#define RZ_IP_MHU   6UL /* Message Handling Unit */

◆ RZ_IP_RIIC

#define RZ_IP_RIIC   4UL /* I2C Bus Interface */

◆ RZ_IP_RSPI

#define RZ_IP_RSPI   5UL /* Renesas Serial Peripheral Interface */

◆ RZ_IP_SCI

#define RZ_IP_SCI   2UL /* Serial Communications Interface */

◆ RZ_IP_SCIF

#define RZ_IP_SCIF   3UL /* Serial Communications Interface with FIFO */

◆ RZ_IP_SHIFT

#define RZ_IP_SHIFT   24UL

◆ RZ_IP_WDT

#define RZ_IP_WDT   11UL /* Watchdog Timer */