Skip to content

Commit

Permalink
plat-sam: add sama7g5's PDMC gclk clocks to the SCMI clock list
Browse files Browse the repository at this point in the history
Add PDMC gclk clocks to the SCMI clock list so that they could be
used outside OP-TEE OS.

Signed-off-by: Tony Han <[email protected]>
  • Loading branch information
TonyHan11 committed Jan 23, 2025
1 parent f7034e0 commit 7c74e0b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/arch/arm/plat-sam/scmi_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,16 @@ static struct sam_pmc_clk pmc_clks[] = {
.pmc_type = PMC_TYPE_PERIPHERAL,
.pmc_id = ID_PDMC1
},
{
.scmi_id = AT91_SCMI_CLK_GCK_PDMC0_GCLK,
.pmc_type = PMC_TYPE_GCK,
.pmc_id = ID_PDMC0
},
{
.scmi_id = AT91_SCMI_CLK_GCK_PDMC1_GCLK,
.pmc_type = PMC_TYPE_GCK,
.pmc_id = ID_PDMC1
},
{
.scmi_id = AT91_SCMI_CLK_PERIPH_SECURAM_CLK,
.pmc_type = PMC_TYPE_PERIPHERAL,
Expand Down
2 changes: 2 additions & 0 deletions core/include/dt-bindings/clock/at91.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@
#define AT91_SCMI_CLK_PERIPH_CSI2DC_CLK 94
#define AT91_SCMI_CLK_PERIPH_ASRC_CLK 95
#define AT91_SCMI_CLK_GCK_ASRC_GCLK 96
#define AT91_SCMI_CLK_GCK_PDMC0_GCLK 102
#define AT91_SCMI_CLK_GCK_PDMC1_GCLK 103
#endif

#endif

0 comments on commit 7c74e0b

Please sign in to comment.