mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
clk: aspeed: add AST2700 PECI clock
Register the SoC1 PECI clock as a mux selected by SCU1_CLK_SEL2 bit 16, choosing between the 25MHz CLKIN and HPLL/4. Add the HPLL/4 fixed factor clock to serve as the second mux parent. Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com> Signed-off-by: Brian Masney <bmasney@redhat.com>
This commit is contained in:
parent
51be18310c
commit
5ffa9d308c
|
|
@ -273,6 +273,13 @@ static const unsigned int sdclk_parent_ids[] = {
|
|||
|
||||
static const struct clk_hw *sdclk_parent_hws[ARRAY_SIZE(sdclk_parent_ids)];
|
||||
|
||||
static const unsigned int peciclk_parent_ids[] = {
|
||||
SCU1_CLKIN,
|
||||
SCU1_CLK_HPLL_DIV4
|
||||
};
|
||||
|
||||
static const struct clk_hw *peciclk_parent_hws[ARRAY_SIZE(peciclk_parent_ids)];
|
||||
|
||||
#define FIXED_CLK(_id, _name, _rate) \
|
||||
{ \
|
||||
.id = _id, \
|
||||
|
|
@ -458,6 +465,7 @@ static const struct ast2700_clk_info ast2700_scu1_clk_info[] __initconst = {
|
|||
PLL_CLK(SCU1_CLK_HPLL, CLK_PLL, "soc1-hpll", SCU1_CLKIN, SCU1_HPLL_PARAM),
|
||||
PLL_CLK(SCU1_CLK_APLL, CLK_PLL, "soc1-apll", SCU1_CLKIN, SCU1_APLL_PARAM),
|
||||
PLL_CLK(SCU1_CLK_DPLL, CLK_PLL, "soc1-dpll", SCU1_CLKIN, SCU1_DPLL_PARAM),
|
||||
FIXED_FACTOR_CLK(SCU1_CLK_HPLL_DIV4, "soc1-hpll_div4", SCU1_CLK_HPLL, 1, 4),
|
||||
FIXED_FACTOR_CLK(SCU1_CLK_APLL_DIV2, "soc1-apll_div2", SCU1_CLK_APLL, 1, 2),
|
||||
FIXED_FACTOR_CLK(SCU1_CLK_APLL_DIV4, "soc1-apll_div4", SCU1_CLK_APLL, 1, 4),
|
||||
FIXED_FACTOR_CLK(SCU1_CLK_CAN, "canclk", SCU1_CLK_APLL, 1, 10),
|
||||
|
|
@ -481,6 +489,8 @@ static const struct ast2700_clk_info ast2700_scu1_clk_info[] __initconst = {
|
|||
uxclk_parent_hws, SCU1_CLK_SEL2, 0, 2),
|
||||
MUX_CLK(SCU1_CLK_HUXCLK, "huxclk", uxclk_parent_ids, ARRAY_SIZE(uxclk_parent_ids),
|
||||
uxclk_parent_hws, SCU1_CLK_SEL2, 3, 2),
|
||||
MUX_CLK(SCU1_CLK_PECI, "peciclk", peciclk_parent_ids, ARRAY_SIZE(peciclk_parent_ids),
|
||||
peciclk_parent_hws, SCU1_CLK_SEL2, 16, 1),
|
||||
DIVIDER_CLK(SCU1_CLK_SDCLK, "sdclk", SCU1_CLK_SDMUX,
|
||||
SCU1_CLK_SEL1, 14, 3, ast2700_clk_div_table),
|
||||
PLL_CLK(SCU1_CLK_UARTX, CLK_UART_PLL, "uartxclk", SCU1_CLK_UXCLK, SCU1_UXCLK_CTRL),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user