Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261095
b: refs/heads/master
c: f5a427e
h: refs/heads/master
i:
  261093: ab7734b
  261091: ec1c169
  261087: d34b6dd
v: v3
  • Loading branch information
Shawn Guo authored and Wim Van Sebroeck committed Jul 26, 2011
1 parent 7883f17 commit 800bc01
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9487a9cc7140ef88d532c989570ee77436ede1e0
refs/heads/master: f5a427eedeead2be82561497a12788bd1f0c07d3
14 changes: 14 additions & 0 deletions trunk/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
* Freescale i.MX Watchdog Timer (WDT) Controller

Required properties:
- compatible : Should be "fsl,<soc>-wdt"
- reg : Should contain WDT registers location and length
- interrupts : Should contain WDT interrupt

Examples:

wdt@73f98000 {
compatible = "fsl,imx51-wdt", "fsl,imx21-wdt";
reg = <0x73f98000 0x4000>;
interrupts = <58>;
};
6 changes: 6 additions & 0 deletions trunk/drivers/watchdog/imx2_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,18 @@ static void imx2_wdt_shutdown(struct platform_device *pdev)
}
}

static const struct of_device_id imx2_wdt_dt_ids[] = {
{ .compatible = "fsl,imx21-wdt", },
{ /* sentinel */ }
};

static struct platform_driver imx2_wdt_driver = {
.remove = __exit_p(imx2_wdt_remove),
.shutdown = imx2_wdt_shutdown,
.driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = imx2_wdt_dt_ids,
},
};

Expand Down

0 comments on commit 800bc01

Please sign in to comment.