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 <tony.han@microchip.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
  • Loading branch information
TonyHan11 committed Feb 4, 2024
1 parent c4982b2 commit 80b5ef2
Show file tree
Hide file tree
Showing 2 changed files with 529 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 80b5ef2

Please sign in to comment.