clocksource: orion: add DT support
This adds device tree support to orion timer and also converts clk_get to clk_lookup to find TCLK without device name reference. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
6e40610d51
commit
dce879a14e
|
@ -64,9 +64,15 @@ static int orion_timer_probe(struct device_d *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static struct of_device_id orion_timer_dt_ids[] = {
|
||||||
|
{ .compatible = "marvell,orion-timer", },
|
||||||
|
{ }
|
||||||
|
};
|
||||||
|
|
||||||
static struct driver_d orion_timer_driver = {
|
static struct driver_d orion_timer_driver = {
|
||||||
.name = "orion-timer",
|
.name = "orion-timer",
|
||||||
.probe = orion_timer_probe,
|
.probe = orion_timer_probe,
|
||||||
|
.of_compatible = DRV_OF_COMPAT(orion_timer_dt_ids),
|
||||||
};
|
};
|
||||||
|
|
||||||
static int orion_timer_init(void)
|
static int orion_timer_init(void)
|
||||||
|
|
Loading…
Reference in New Issue