Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c0e4eb2d8a8a094db5295a42d84aef08dea8aea4
Commit:     c0e4eb2d8a8a094db5295a42d84aef08dea8aea4
Parent:     da1bb3a0e1f7f9cabe70fb2c41b47fa57c42fdfd
Author:     Anton Vorontsov <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 2 17:47:43 2007 +0400
Committer:  Kumar Gala <[EMAIL PROTECTED]>
CommitDate: Thu Oct 4 15:47:25 2007 -0500

    [POWERPC] MPC8568E-MDS: add support for ds1374 rtc
    
    MPC8568E-MDS have DS1374 chip on the I2C bus, thus let's use it.
    This patch also adds #address-cells and #size-cells to the I2C
    controllers nodes.
    
    p.s. DS1374 rtc class driver is in the -mm tree, its name is
    rtc-rtc-class-driver-for-the-ds1374.patch.
    
    Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]>
    Signed-off-by: Kumar Gala <[EMAIL PROTECTED]>
---
 arch/powerpc/boot/dts/mpc8568mds.dts |    9 +++++++++
 arch/powerpc/sysdev/fsl_soc.c        |    1 +
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8568mds.dts 
b/arch/powerpc/boot/dts/mpc8568mds.dts
index c472a4b..76d23ee 100644
--- a/arch/powerpc/boot/dts/mpc8568mds.dts
+++ b/arch/powerpc/boot/dts/mpc8568mds.dts
@@ -72,15 +72,24 @@
                };
 
                [EMAIL PROTECTED] {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                        device_type = "i2c";
                        compatible = "fsl-i2c";
                        reg = <3000 100>;
                        interrupts = <2b 2>;
                        interrupt-parent = <&mpic>;
                        dfsrr;
+
+                       [EMAIL PROTECTED] {
+                               compatible = "dallas,ds1374";
+                               reg = <68>;
+                       };
                };
 
                [EMAIL PROTECTED] {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                        device_type = "i2c";
                        compatible = "fsl-i2c";
                        reg = <3100 100>;
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c
index 91987e0..c765d7a 100644
--- a/arch/powerpc/sysdev/fsl_soc.c
+++ b/arch/powerpc/sysdev/fsl_soc.c
@@ -337,6 +337,7 @@ static struct i2c_driver_device i2c_devices[] __initdata = {
        {"dallas,ds1339",  "rtc-ds1307",  "ds1339",},
        {"dallas,ds1340",  "rtc-ds1307",  "ds1340",},
        {"stm,m41t00",     "rtc-ds1307",  "m41t00"},
+       {"dallas,ds1374",  "rtc-ds1374",  "rtc-ds1374",},
 };
 
 static int __init of_find_i2c_driver(struct device_node *node,
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to