Skip to content

Commit

Permalink
drivers: clk: sam: add PLL clock driver for sama7g5
Browse files Browse the repository at this point in the history
As PLL is compatible for sama7g5 and sam9x60, add sam9x60 PLL functions for
configuring sama7g5 PLL.

Signed-off-by: Tony Han <[email protected]>
  • Loading branch information
TonyHan11 committed Jan 30, 2024
1 parent 8b9d7dc commit 3a57dd3
Show file tree
Hide file tree
Showing 2 changed files with 519 additions and 0 deletions.
17 changes: 17 additions & 0 deletions core/drivers/clk/sam/at91_clk.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,23 @@ struct clk *
at91_clk_register_plldiv(struct pmc_data *pmc, const char *name,
struct clk *parent);

struct clk *sam9x60_clk_register_frac_pll(struct pmc_data *pmc,
const char *name,
struct clk *parent,
uint8_t id,
const struct clk_pll_charac *charac,
const struct clk_pll_layout *layout,
uint32_t flags);

struct clk *sam9x60_clk_register_div_pll(struct pmc_data *pmc,
const char *name,
struct clk *parent,
uint8_t id,
const struct clk_pll_charac *charac,
const struct clk_pll_layout *layout,
uint32_t flags,
uint32_t safe_div);

/* UTMI */
struct clk *
at91_clk_register_utmi(struct pmc_data *pmc, const char *name,
Expand Down
Loading

0 comments on commit 3a57dd3

Please sign in to comment.