]> git.sur5r.net Git - u-boot/commitdiff
arm: ls1021atwr: Convert to driver model and enable serial support
authorBin Meng <bmeng.cn@gmail.com>
Thu, 14 Jan 2016 03:38:59 +0000 (19:38 -0800)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2016 02:10:14 +0000 (19:10 -0700)
Convert ls1021atwr_nor to driver model support. As a start, enable
ns16550 serial port driver.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/ls1021a-twr.dts
arch/arm/dts/ls1021a.dtsi
configs/ls1021atwr_nor_defconfig
include/configs/ls1021atwr.h

index 6ccd33279b809cdcb5e0d61f5a988544fa7e05d8..aead13fc8bb768341d99f2fb3704934c1a095bac 100644 (file)
                spi0 = &qspi;
                spi1 = &dspi1;
        };
+
+       chosen {
+               stdout-path = &uart0;
+       };
 };
 
 &qspi {
index 7fadd7ca57a7d57b24a119987051fb5860627d14..ee0e55461d2c920235df708d07a306580cca4e4c 100644 (file)
                        compatible = "fsl,16550-FIFO64", "ns16550a";
                        reg = <0x21c0500 0x100>;
                        interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
-                       clock-frequency = <0>;
                        fifo-size = <15>;
                        status = "disabled";
                };
                        compatible = "fsl,16550-FIFO64", "ns16550a";
                        reg = <0x21c0600 0x100>;
                        interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
-                       clock-frequency = <0>;
                        fifo-size = <15>;
                        status = "disabled";
                };
                        compatible = "fsl,16550-FIFO64", "ns16550a";
                        reg = <0x21d0500 0x100>;
                        interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
-                       clock-frequency = <0>;
                        fifo-size = <15>;
                        status = "disabled";
                };
                        compatible = "fsl,16550-FIFO64", "ns16550a";
                        reg = <0x21d0600 0x100>;
                        interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
-                       clock-frequency = <0>;
                        fifo-size = <15>;
                        status = "disabled";
                };
index aa874fdcfd166753146e2482048dfbfbb11b065a..2b794439a92225a0eb87b1c4a2429658a699c81d 100644 (file)
@@ -1,6 +1,10 @@
 CONFIG_ARM=y
 CONFIG_TARGET_LS1021ATWR=y
+CONFIG_DM_SERIAL=y
+CONFIG_DEFAULT_DEVICE_TREE="ls1021a-twr"
 # CONFIG_CMD_SETEXPR is not set
+CONFIG_OF_CONTROL=y
+CONFIG_DM=y
 CONFIG_NETDEVICES=y
 CONFIG_E1000=y
 CONFIG_SYS_NS16550=y
index c12ba3ac910bcac6a49f728e2ce2f2ddf933b02e..bbef2a7eef76292b8b7ac0560d82f6559f88bbfc 100644 (file)
 #else
 #define CONFIG_CONS_INDEX              1
 #define CONFIG_SYS_NS16550_SERIAL
+#ifndef CONFIG_DM_SERIAL
 #define CONFIG_SYS_NS16550_REG_SIZE    1
+#endif
 #define CONFIG_SYS_NS16550_CLK         get_serial_clock()
 #endif