Skip to content

Commit 86e122c

Browse files
bijudasgeertu
authored andcommitted
clk: renesas: rzg2l: Add CPG_PL1_DDIV macro
Core clock "I" is sourced from CPG_PL1_DDIV which controls CPU frequency. Define CPG_PL1_DDIV, so that we can register it as a clock divider in later patch. Signed-off-by: Biju Das <[email protected]> Reviewed-by: Lad Prabhakar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent e5f7e81 commit 86e122c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/clk/renesas/rzg2l-cpg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#ifndef __RENESAS_RZG2L_CPG_H__
1010
#define __RENESAS_RZG2L_CPG_H__
1111

12+
#define CPG_PL1_DDIV (0x200)
1213
#define CPG_PL2_DDIV (0x204)
1314
#define CPG_PL3A_DDIV (0x208)
1415
#define CPG_PL2SDHI_DSEL (0x218)
@@ -29,6 +30,7 @@
2930

3031
#define DDIV_PACK(offset, bitpos, size) \
3132
(((offset) << 20) | ((bitpos) << 12) | ((size) << 8))
33+
#define DIVPL1A DDIV_PACK(CPG_PL1_DDIV, 0, 2)
3234
#define DIVPL2A DDIV_PACK(CPG_PL2_DDIV, 0, 3)
3335
#define DIVPL3A DDIV_PACK(CPG_PL3A_DDIV, 0, 3)
3436
#define DIVPL3B DDIV_PACK(CPG_PL3A_DDIV, 4, 3)

0 commit comments

Comments
 (0)