]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: omap: pass minimal SoC/board data for UART from dt
authorRajendra Nayak <rnayak@ti.com>
Wed, 14 Dec 2011 11:55:46 +0000 (17:25 +0530)
committerTony Lindgren <tony@atomide.com>
Fri, 16 Dec 2011 22:15:17 +0000 (14:15 -0800)
Pass minimal data needed for console boot, from dt, for
OMAP4 panda/sdp and OMAP3 beagle boards, and get rid of the
static initialization from generic board file.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Reviewed-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3.dtsi
arch/arm/boot/dts/omap4.dtsi
arch/arm/mach-omap2/board-generic.c

index d202bb5ec7efe3912cc9ea285bde04479741e4ef..216c3317461d6dc6310571cd070ac7d952a38033 100644 (file)
 / {
        compatible = "ti,omap3430", "ti,omap3";
 
+       aliases {
+               serial0 = &uart1;
+               serial1 = &uart2;
+               serial2 = &uart3;
+               serial3 = &uart4;
+       };
+
        cpus {
                cpu@0 {
                        compatible = "arm,cortex-a8";
                        interrupt-controller;
                        #interrupt-cells = <1>;
                };
+
+               uart1: serial@0x4806a000 {
+                       compatible = "ti,omap3-uart";
+                       ti,hwmods = "uart1";
+                       clock-frequency = <48000000>;
+               };
+
+               uart2: serial@0x4806c000 {
+                       compatible = "ti,omap3-uart";
+                       ti,hwmods = "uart2";
+                       clock-frequency = <48000000>;
+               };
+
+               uart3: serial@0x49020000 {
+                       compatible = "ti,omap3-uart";
+                       ti,hwmods = "uart3";
+                       clock-frequency = <48000000>;
+               };
+
+               uart4: serial@0x49042000 {
+                       compatible = "ti,omap3-uart";
+                       ti,hwmods = "uart4";
+                       clock-frequency = <48000000>;
+               };
        };
 };
index 4c61c829043ab4a38f26f791ad998e67a48d5b5d..e8fe75fac7c5e727f135721c1183feef0c89d2b1 100644 (file)
        interrupt-parent = <&gic>;
 
        aliases {
+               serial0 = &uart1;
+               serial1 = &uart2;
+               serial2 = &uart3;
+               serial3 = &uart4;
        };
 
        cpus {
                        reg = <0x48241000 0x1000>,
                              <0x48240100 0x0100>;
                };
+
+               uart1: serial@0x4806a000 {
+                       compatible = "ti,omap4-uart";
+                       ti,hwmods = "uart1";
+                       clock-frequency = <48000000>;
+               };
+
+               uart2: serial@0x4806c000 {
+                       compatible = "ti,omap4-uart";
+                       ti,hwmods = "uart2";
+                       clock-frequency = <48000000>;
+               };
+
+               uart3: serial@0x48020000 {
+                       compatible = "ti,omap4-uart";
+                       ti,hwmods = "uart3";
+                       clock-frequency = <48000000>;
+               };
+
+               uart4: serial@0x4806e000 {
+                       compatible = "ti,omap4-uart";
+                       ti,hwmods = "uart4";
+                       clock-frequency = <48000000>;
+               };
        };
 };
index 63b54163b99365d32fcdaf3b489ca276b94c4d2f..a508ed5cc890786209f713bf20465cd30dddcd7e 100644 (file)
@@ -69,7 +69,6 @@ static void __init omap_generic_init(void)
        if (node)
                irq_domain_add_simple(node, 0);
 
-       omap_serial_init();
        omap_sdrc_init(NULL, NULL);
 
        of_platform_populate(NULL, omap_dt_match_table, NULL, NULL);