summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clocksource.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-09-09 21:02:09 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-23 21:15:13 +0200
commit33a8fa16c68139c50e839f647cc0b34250c75193 (patch)
tree4140c0614fa631ebd872a446dd7d5863c2ffbe0b /arch/arm/mach-imx/clocksource.c
parent01bd66c9a2cc606d23a540e1da7e261e85a6cc54 (diff)
downloadbarebox-33a8fa16c68139c50e839f647cc0b34250c75193.tar.gz
barebox-33a8fa16c68139c50e839f647cc0b34250c75193.tar.xz
ARM i.MX: Add devicetree support for clocksource driver
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/clocksource.c')
-rw-r--r--arch/arm/mach-imx/clocksource.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/clocksource.c b/arch/arm/mach-imx/clocksource.c
index 746ecc8a92..c725f8c23a 100644
--- a/arch/arm/mach-imx/clocksource.c
+++ b/arch/arm/mach-imx/clocksource.c
@@ -134,6 +134,18 @@ static int imx_gpt_probe(struct device_d *dev)
return 0;
}
+static __maybe_unused struct of_device_id imx_gpt_dt_ids[] = {
+ {
+ .compatible = "fsl,imx1-gpt",
+ .data = (unsigned long)&regs_imx1,
+ }, {
+ .compatible = "fsl,imx31-gpt",
+ .data = (unsigned long)&regs_imx31,
+ }, {
+ /* sentinel */
+ }
+};
+
static struct platform_device_id imx_gpt_ids[] = {
{
.name = "imx1-gpt",
@@ -149,6 +161,7 @@ static struct platform_device_id imx_gpt_ids[] = {
static struct driver_d imx_gpt_driver = {
.name = "imx-gpt",
.probe = imx_gpt_probe,
+ .of_compatible = DRV_OF_COMPAT(imx_gpt_dt_ids),
.id_table = imx_gpt_ids,
};