Skip to content

Commit

Permalink
[WIP] Refer to clock parents by .fw_name
Browse files Browse the repository at this point in the history
  • Loading branch information
neuschaefer committed Sep 23, 2023
1 parent 7a8ee96 commit 42ddebf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/clk/nuvoton/clk-wpcm450.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ struct wpcm450_pll_data {
};

static const struct wpcm450_pll_data pll_data[] = {
{ "pll0", { .name = "ref" }, REG_PLLCON0, 0 },
{ "pll1", { .name = "ref" }, REG_PLLCON1, 0 },
{ "pll0", { .fw_name = "ref" }, REG_PLLCON0, 0 },
{ "pll1", { .fw_name = "ref" }, REG_PLLCON1, 0 },
};

struct wpcm450_clksel_data {
Expand All @@ -149,13 +149,13 @@ struct wpcm450_clksel_data {
static const u32 parent_table[] = { 0, 1, 2 };

static const struct clk_parent_data default_parents[] = {
{ .name = "pll0" },
{ .name = "pll0" }, // TODO: eliminate this use of .name as well, by passing the hw object on
{ .name = "pll1" },
{ .name = "ref" },
};

static const struct clk_parent_data huart_parents[] = {
{ .name = "ref" },
{ .fw_name = "ref" },
{ .name = "refdiv2" },
};

Expand Down

0 comments on commit 42ddebf

Please sign in to comment.