Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360588
b: refs/heads/master
c: 15920d1
h: refs/heads/master
v: v3
  • Loading branch information
Gabor Juhos authored and Wim Van Sebroeck committed Mar 1, 2013
1 parent eb8d611 commit a5808bf
Show file tree
Hide file tree
Showing 3 changed files with 25 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: 09f5100a592d11dad06b218f41d560ff1f87f666
refs/heads/master: 15920d12998a408efe4b1b25a28c21dfc48f6e69
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
* Qualcomm Atheros AR7130 Watchdog Timer (WDT) Controller

Required properties:
- compatible: must be "qca,ar7130-wdt"
- reg: physical base address of the controller and length of memory mapped
region.

Example:

wdt@18060008 {
compatible = "qca,ar9330-wdt", "qca,ar7130-wdt";
reg = <0x18060008 0x8>;
};
11 changes: 11 additions & 0 deletions trunk/drivers/watchdog/ath79_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include <linux/watchdog.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/of.h>
#include <linux/of_platform.h>

#define DRIVER_NAME "ath79-wdt"

Expand Down Expand Up @@ -308,13 +310,22 @@ static void ath97_wdt_shutdown(struct platform_device *pdev)
ath79_wdt_disable();
}

#ifdef CONFIG_OF
static const struct of_device_id ath79_wdt_match[] = {
{ .compatible = "qca,ar7130-wdt" },
{},
};
MODULE_DEVICE_TABLE(of, ath79_wdt_match);
#endif

static struct platform_driver ath79_wdt_driver = {
.probe = ath79_wdt_probe,
.remove = ath79_wdt_remove,
.shutdown = ath97_wdt_shutdown,
.driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(ath79_wdt_match),
},
};

Expand Down

0 comments on commit a5808bf

Please sign in to comment.