[PATCH v2 03/10] clocksource: orion: add DT support
Sebastian Hesselbarth
sebastian.hesselbarth at gmail.com
Tue Jul 2 14:30:42 EDT 2013
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 at gmail.com>
---
Changelog:
v1->v2:
- do not use clk_lookup (Suggested by Sascha Hauer)
Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Cc: barebox at lists.infradead.org
---
drivers/clocksource/orion.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/drivers/clocksource/orion.c b/drivers/clocksource/orion.c
index 8817dfe..46932f1 100644
--- a/drivers/clocksource/orion.c
+++ b/drivers/clocksource/orion.c
@@ -64,9 +64,15 @@ static int orion_timer_probe(struct device_d *dev)
return 0;
}
+static struct of_device_id orion_timer_dt_ids[] = {
+ { .compatible = "marvell,orion-timer", },
+ { }
+};
+
static struct driver_d orion_timer_driver = {
.name = "orion-timer",
.probe = orion_timer_probe,
+ .of_compatible = DRV_OF_COMPAT(orion_timer_dt_ids),
};
static int orion_timer_init(void)
--
1.7.2.5
More information about the barebox
mailing list