Skip to content

Commit a25ab51

Browse files
tlebbebarino
authored andcommitted
clk: eyeq: add EyeQ5 children auxiliary device for generic PHYs
Grow our clk-eyeq family; it knows how to spawn reset provider and pin controller children. Expand with a generic PHY driver on EyeQ5. Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 79a1886 commit a25ab51

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/clk/clk-eyeq.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ struct eqc_match_data {
110110

111111
const char *reset_auxdev_name;
112112
const char *pinctrl_auxdev_name;
113+
const char *eth_phy_auxdev_name;
113114

114115
unsigned int early_clk_count;
115116
};
@@ -360,6 +361,7 @@ static int eqc_probe(struct platform_device *pdev)
360361
/* Init optional auxiliary devices. */
361362
eqc_auxdev_create_optional(dev, base, data->reset_auxdev_name);
362363
eqc_auxdev_create_optional(dev, base, data->pinctrl_auxdev_name);
364+
eqc_auxdev_create_optional(dev, base, data->eth_phy_auxdev_name);
363365

364366
if (data->pll_count + data->div_count + data->fixed_factor_count == 0)
365367
return 0; /* Zero clocks, we are done. */
@@ -520,6 +522,7 @@ static const struct eqc_match_data eqc_eyeq5_match_data = {
520522

521523
.reset_auxdev_name = "reset",
522524
.pinctrl_auxdev_name = "pinctrl",
525+
.eth_phy_auxdev_name = "phy",
523526

524527
.early_clk_count = ARRAY_SIZE(eqc_eyeq5_early_plls) +
525528
ARRAY_SIZE(eqc_eyeq5_early_fixed_factors),

0 commit comments

Comments
 (0)