Skip to content

Commit

Permalink
drivers: clk: sam: update to support slow clock for sama7g5
Browse files Browse the repository at this point in the history
Add CLK_DT_DECLARE for sama7g5's slow clock.

Signed-off-by: Tony Han <tony.han@microchip.com>
  • Loading branch information
TonyHan11 committed Feb 8, 2024
1 parent 2eac840 commit 0c938de
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion core/drivers/clk/sam/at91_sckc.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,15 @@ static TEE_Result sckc_pmc_setup(const void *fdt __unused, int offs,
return TEE_SUCCESS;
}

CLK_DT_DECLARE(at91_sckc, "atmel,sama5d4-sckc", sckc_pmc_setup);
static const struct dt_device_match at91_sckc_match_table[] = {
{ .compatible = "atmel,sama5d4-sckc" },
{ .compatible = "microchip,sama7g5-sckc" },
{ }
};

DEFINE_DT_DRIVER(at91_sckc_dt_driver) = {
.name = "at91_sckc",
.type = DT_DRIVER_CLK,
.match_table = at91_sckc_match_table,
.probe = sckc_pmc_setup,
};

0 comments on commit 0c938de

Please sign in to comment.