Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313231
b: refs/heads/master
c: dd8d20a
h: refs/heads/master
i:
  313229: 4674365
  313227: ff8bb94
  313223: 9fb7921
  313215: a012f3e
v: v3
  • Loading branch information
Marek Vasut authored and Shawn Guo committed Jul 3, 2012
1 parent 49b26ac commit 6f18427
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: e1d4f23ec0688f58b7d60265f38e1cbe8c3a4432
refs/heads/master: dd8d20a3f32a7ba37526f5b4dfd4d35a93e5342f
16 changes: 16 additions & 0 deletions trunk/Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
* STMP3xxx/i.MX28 Time Clock controller

Required properties:
- compatible: should be one of the following.
* "fsl,stmp3xxx-rtc"
- reg: physical base address of the controller and length of memory mapped
region.
- interrupts: rtc alarm interrupt

Example:

rtc@80056000 {
compatible = "fsl,imx28-rtc", "fsl,stmp3xxx-rtc";
reg = <0x80056000 2000>;
interrupts = <29>;
};
8 changes: 8 additions & 0 deletions trunk/drivers/rtc/rtc-stmp3xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <linux/interrupt.h>
#include <linux/rtc.h>
#include <linux/slab.h>
#include <linux/of_device.h>

#include <mach/common.h>

Expand Down Expand Up @@ -265,6 +266,12 @@ static int stmp3xxx_rtc_resume(struct platform_device *dev)
#define stmp3xxx_rtc_resume NULL
#endif

static const struct of_device_id rtc_dt_ids[] = {
{ .compatible = "fsl,stmp3xxx-rtc", },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, rtc_dt_ids);

static struct platform_driver stmp3xxx_rtcdrv = {
.probe = stmp3xxx_rtc_probe,
.remove = stmp3xxx_rtc_remove,
Expand All @@ -273,6 +280,7 @@ static struct platform_driver stmp3xxx_rtcdrv = {
.driver = {
.name = "stmp3xxx-rtc",
.owner = THIS_MODULE,
.of_match_table = rtc_dt_ids,
},
};

Expand Down

0 comments on commit 6f18427

Please sign in to comment.