]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] mv64x60: Fix FDT compatible names: mv64x60 => mv64360
authorMark A. Greer <mgreer@mvista.com>
Mon, 7 Apr 2008 22:09:03 +0000 (08:09 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 15 Apr 2008 11:21:24 +0000 (21:21 +1000)
Compatible names should refer to a specific version of the hardware,
without wildcards.  Change each instance of mv64x60 to mv64360, which
is the oldest version we currently support.

Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/dts/prpmc2800.dts
arch/powerpc/boot/serial.c
arch/powerpc/platforms/embedded6xx/prpmc2800.c
arch/powerpc/sysdev/mv64x60_dev.c
arch/powerpc/sysdev/mv64x60_pci.c
arch/powerpc/sysdev/mv64x60_pic.c
arch/powerpc/sysdev/mv64x60_udbg.c

index 822aac7e5bbd38ba8e9cc8106d4d44dba82cf29e..cb26b007980bafa9fe35eba6feb869d41c36110c 100644 (file)
@@ -46,7 +46,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                model = "mv64360";                      /* Default */
-               compatible = "marvell,mv64x60";
+               compatible = "marvell,mv64360";
                clock-frequency = <133333333>;
                reg = <0xf1000000 0x10000>;
                virtual-reg = <0xf1000000>;
@@ -74,7 +74,7 @@
                        #address-cells = <1>;
                        #size-cells = <0>;
                        device_type = "mdio";
-                       compatible = "marvell,mv64x60-mdio";
+                       compatible = "marvell,mv64360-mdio";
                        PHY0: ethernet-phy@1 {
                                device_type = "ethernet-phy";
                                compatible = "broadcom,bcm5421";
@@ -95,7 +95,7 @@
                        reg = <0x2000 0x2000>;
                        eth0 {
                                device_type = "network";
-                               compatible = "marvell,mv64x60-eth";
+                               compatible = "marvell,mv64360-eth";
                                block-index = <0>;
                                interrupts = <32>;
                                interrupt-parent = <&PIC>;
                        };
                        eth1 {
                                device_type = "network";
-                               compatible = "marvell,mv64x60-eth";
+                               compatible = "marvell,mv64360-eth";
                                block-index = <1>;
                                interrupts = <33>;
                                interrupt-parent = <&PIC>;
 
                SDMA0: sdma@4000 {
                        device_type = "dma";
-                       compatible = "marvell,mv64x60-sdma";
+                       compatible = "marvell,mv64360-sdma";
                        reg = <0x4000 0xc18>;
                        virtual-reg = <0xf1004000>;
                        interrupt-base = <0>;
 
                SDMA1: sdma@6000 {
                        device_type = "dma";
-                       compatible = "marvell,mv64x60-sdma";
+                       compatible = "marvell,mv64360-sdma";
                        reg = <0x6000 0xc18>;
                        virtual-reg = <0xf1006000>;
                        interrupt-base = <0>;
                };
 
                BRG0: brg@b200 {
-                       compatible = "marvell,mv64x60-brg";
+                       compatible = "marvell,mv64360-brg";
                        reg = <0xb200 0x8>;
                        clock-src = <8>;
                        clock-frequency = <133333333>;
                };
 
                BRG1: brg@b208 {
-                       compatible = "marvell,mv64x60-brg";
+                       compatible = "marvell,mv64360-brg";
                        reg = <0xb208 0x8>;
                        clock-src = <8>;
                        clock-frequency = <133333333>;
 
                MPSC0: mpsc@8000 {
                        device_type = "serial";
-                       compatible = "marvell,mpsc";
+                       compatible = "marvell,mv64360-mpsc";
                        reg = <0x8000 0x38>;
                        virtual-reg = <0xf1008000>;
                        sdma = <&SDMA0>;
 
                MPSC1: mpsc@9000 {
                        device_type = "serial";
-                       compatible = "marvell,mpsc";
+                       compatible = "marvell,mv64360-mpsc";
                        reg = <0x9000 0x38>;
                        virtual-reg = <0xf1009000>;
                        sdma = <&SDMA1>;
                };
 
                wdt@b410 {                      /* watchdog timer */
-                       compatible = "marvell,mv64x60-wdt";
+                       compatible = "marvell,mv64360-wdt";
                        reg = <0xb410 0x8>;
                        timeout = <10>;         /* wdt timeout in seconds */
                };
 
                i2c@c000 {
                        device_type = "i2c";
-                       compatible = "marvell,mv64x60-i2c";
+                       compatible = "marvell,mv64360-i2c";
                        reg = <0xc000 0x20>;
                        virtual-reg = <0xf100c000>;
                        freq_m = <8>;
                PIC: pic {
                        #interrupt-cells = <1>;
                        #address-cells = <0>;
-                       compatible = "marvell,mv64x60-pic";
+                       compatible = "marvell,mv64360-pic";
                        reg = <0x0 0x88>;
                        interrupt-controller;
                };
 
                mpp@f000 {
-                       compatible = "marvell,mv64x60-mpp";
+                       compatible = "marvell,mv64360-mpp";
                        reg = <0xf000 0x10>;
                };
 
                gpp@f100 {
-                       compatible = "marvell,mv64x60-gpp";
+                       compatible = "marvell,mv64360-gpp";
                        reg = <0xf100 0x20>;
                };
 
                        #size-cells = <2>;
                        #interrupt-cells = <1>;
                        device_type = "pci";
-                       compatible = "marvell,mv64x60-pci";
+                       compatible = "marvell,mv64360-pci";
                        reg = <0xcf8 0x8>;
                        ranges = <0x01000000 0x0        0x0
                                        0x88000000 0x0 0x01000000
                };
 
                cpu-error@0070 {
-                       compatible = "marvell,mv64x60-cpu-error";
+                       compatible = "marvell,mv64360-cpu-error";
                        reg = <0x70 0x10 0x128 0x28>;
                        interrupts = <3>;
                        interrupt-parent = <&PIC>;
                };
 
                sram-ctrl@0380 {
-                       compatible = "marvell,mv64x60-sram-ctrl";
+                       compatible = "marvell,mv64360-sram-ctrl";
                        reg = <0x380 0x80>;
                        interrupts = <13>;
                        interrupt-parent = <&PIC>;
                };
 
                pci-error@1d40 {
-                       compatible = "marvell,mv64x60-pci-error";
+                       compatible = "marvell,mv64360-pci-error";
                        reg = <0x1d40 0x40 0xc28 0x4>;
                        interrupts = <12>;
                        interrupt-parent = <&PIC>;
                };
 
                mem-ctrl@1400 {
-                       compatible = "marvell,mv64x60-mem-ctrl";
+                       compatible = "marvell,mv64360-mem-ctrl";
                        reg = <0x1400 0x60>;
                        interrupts = <17>;
                        interrupt-parent = <&PIC>;
index 9960421eb6b9e08b418105b4577846fd49b4adac..8b3607cb53fb158075a41d5af9845eb1b2bc9e32 100644 (file)
@@ -119,7 +119,7 @@ int serial_console_init(void)
 
        if (dt_is_compatible(devp, "ns16550"))
                rc = ns16550_console_init(devp, &serial_cd);
-       else if (dt_is_compatible(devp, "marvell,mpsc"))
+       else if (dt_is_compatible(devp, "marvell,mv64360-mpsc"))
                rc = mpsc_console_init(devp, &serial_cd);
        else if (dt_is_compatible(devp, "fsl,cpm1-scc-uart") ||
                 dt_is_compatible(devp, "fsl,cpm1-smc-uart") ||
index 653a5eb91c905049610d7168044c26da5f9e642e..5a19b9a1457ca3829070faae3d29786fdc0a7067 100644 (file)
@@ -49,13 +49,13 @@ static void __init prpmc2800_setup_arch(void)
         * ioremap mpp and gpp registers in case they are later
         * needed by prpmc2800_reset_board().
         */
-       np = of_find_compatible_node(NULL, NULL, "marvell,mv64x60-mpp");
+       np = of_find_compatible_node(NULL, NULL, "marvell,mv64360-mpp");
        reg = of_get_property(np, "reg", NULL);
        paddr = of_translate_address(np, reg);
        of_node_put(np);
        mv64x60_mpp_reg_base = ioremap(paddr, reg[1]);
 
-       np = of_find_compatible_node(NULL, NULL, "marvell,mv64x60-gpp");
+       np = of_find_compatible_node(NULL, NULL, "marvell,mv64360-gpp");
        reg = of_get_property(np, "reg", NULL);
        paddr = of_translate_address(np, reg);
        of_node_put(np);
index efda0028909dbec17e7a58adf8945a41f4f6615b..d9626eea1c72fd2de3025d6230a1415372bbc5ba 100644 (file)
@@ -446,22 +446,22 @@ static int __init mv64x60_device_setup(void)
        int err;
 
        id = 0;
-       for_each_compatible_node(np, "serial", "marvell,mpsc")
+       for_each_compatible_node(np, "serial", "marvell,mv64360-mpsc")
                if ((err = mv64x60_mpsc_device_setup(np, id++)))
                        goto error;
 
        id = 0;
-       for_each_compatible_node(np, "network", "marvell,mv64x60-eth")
+       for_each_compatible_node(np, "network", "marvell,mv64360-eth")
                if ((err = mv64x60_eth_device_setup(np, id++)))
                        goto error;
 
        id = 0;
-       for_each_compatible_node(np, "i2c", "marvell,mv64x60-i2c")
+       for_each_compatible_node(np, "i2c", "marvell,mv64360-i2c")
                if ((err = mv64x60_i2c_device_setup(np, id++)))
                        goto error;
 
        /* support up to one watchdog timer */
-       np = of_find_compatible_node(np, NULL, "marvell,mv64x60-wdt");
+       np = of_find_compatible_node(np, NULL, "marvell,mv64360-wdt");
        if (np) {
                if ((err = mv64x60_wdt_device_setup(np, id)))
                        goto error;
@@ -489,7 +489,7 @@ static int __init mv64x60_add_mpsc_console(void)
        if (!np)
                goto not_mpsc;
 
-       if (!of_device_is_compatible(np, "marvell,mpsc"))
+       if (!of_device_is_compatible(np, "marvell,mv64360-mpsc"))
                goto not_mpsc;
 
        prop = of_get_property(np, "block-index", NULL);
index d21ab8fa4993c87d464c0c81a6fcb56d3dfc01f3..1456015a22d88613c7fdca9c5e6e9948fde3c54d 100644 (file)
@@ -86,14 +86,14 @@ static int __init mv64x60_sysfs_init(void)
        struct platform_device *pdev;
        const unsigned int *prop;
 
-       np = of_find_compatible_node(NULL, NULL, "marvell,mv64x60");
+       np = of_find_compatible_node(NULL, NULL, "marvell,mv64360");
        if (!np)
                return 0;
 
        prop = of_get_property(np, "hs_reg_valid", NULL);
        of_node_put(np);
 
-       pdev = platform_device_register_simple("marvell,mv64x60", 0, NULL, 0);
+       pdev = platform_device_register_simple("marvell,mv64360", 0, NULL, 0);
        if (IS_ERR(pdev))
                return PTR_ERR(pdev);
 
@@ -166,6 +166,6 @@ void __init mv64x60_pci_init(void)
 {
        struct device_node *np;
 
-       for_each_compatible_node(np, "pci", "marvell,mv64x60-pci")
+       for_each_compatible_node(np, "pci", "marvell,mv64360-pci")
                mv64x60_add_bridge(np);
 }
index 19e6ef26379751b6cafa9848dc6a4fdfc8ad9277..2aa4ed066db11bcec9bcfa7127b3b7c50eb9b8d9 100644 (file)
@@ -238,13 +238,13 @@ void __init mv64x60_init_irq(void)
        const unsigned int *reg;
        unsigned long flags;
 
-       np = of_find_compatible_node(NULL, NULL, "marvell,mv64x60-gpp");
+       np = of_find_compatible_node(NULL, NULL, "marvell,mv64360-gpp");
        reg = of_get_property(np, "reg", &size);
        paddr = of_translate_address(np, reg);
        mv64x60_gpp_reg_base = ioremap(paddr, reg[1]);
        of_node_put(np);
 
-       np = of_find_compatible_node(NULL, NULL, "marvell,mv64x60-pic");
+       np = of_find_compatible_node(NULL, NULL, "marvell,mv64360-pic");
        reg = of_get_property(np, "reg", &size);
        paddr = of_translate_address(np, reg);
        mv64x60_irq_reg_base = ioremap(paddr, reg[1]);
index 35c77c7d06168482ec27db5405228468a9c3a0ab..ccdb3b0418fce024d86df3e8fb372e36da4249f0 100644 (file)
@@ -85,7 +85,7 @@ static void mv64x60_udbg_init(void)
        if (!stdout)
                return;
 
-       for_each_compatible_node(np, "serial", "marvell,mpsc") {
+       for_each_compatible_node(np, "serial", "marvell,mv64360-mpsc") {
                if (np == stdout)
                        break;
        }