]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: Switch Abilis TB-100 board to Driver Model for serial port
authorAlexey Brodkin <abrodkin@synopsys.com>
Fri, 27 Mar 2015 10:24:35 +0000 (13:24 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Fri, 3 Apr 2015 06:47:49 +0000 (09:47 +0300)
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Simon Glass <sjg@chromium.org>
arch/arc/dts/Makefile
arch/arc/dts/abilis_tb100.dts [new file with mode: 0644]
configs/tb100_defconfig
include/configs/tb100.h

index a155311f32273877ec4800b912370e9cfd076cb2..5bc6f44c1a5b4a835754bd6d5b0dd72f97d3e644 100644 (file)
@@ -1,4 +1,5 @@
 dtb-$(CONFIG_TARGET_ARCANGEL4) +=  arcangel4.dtb
+dtb-$(CONFIG_TARGET_TB100) +=  abilis_tb100.dtb
 
 targets += $(dtb-y)
 
diff --git a/arch/arc/dts/abilis_tb100.dts b/arch/arc/dts/abilis_tb100.dts
new file mode 100644 (file)
index 0000000..cf395c4
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2015 Synopsys, Inc. (www.synopsys.com)
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+/dts-v1/;
+
+#include "skeleton.dtsi"
+
+/ {
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       aliases {
+               console = &uart0;
+       };
+
+       uart0: serial@ff100000 {
+                       compatible = "snps,dw-apb-uart";
+                       reg = <0xff100000 0x1000>;
+                       reg-shift = <2>;
+                       reg-io-width = <4>;
+       };
+};
index c964272d0d20d1413e4063bbd19e67b9d51e9fa5..59f09d9f644cd65969d684fb46e67530427c6fb9 100644 (file)
@@ -1,5 +1,10 @@
 CONFIG_ARC=y
 CONFIG_ARC_CACHE_LINE_SHIFT=5
 CONFIG_TARGET_TB100=y
+CONFIG_DM=y
+CONFIG_DM_SERIAL=y
+CONFIG_DEFAULT_DEVICE_TREE="abilis_tb100"
 CONFIG_SYS_TEXT_BASE=0x84000000
 CONFIG_SYS_CLK_FREQ=500000000
+CONFIG_OF_CONTROL=y
+CONFIG_OF_EMBED=y
index 46df40661da631bbabb3d629982daf6cb0f7f0f5..501449a581720e4a28f9f1f09ad2e44d488caebc 100644 (file)
 /*
  * UART configuration
  */
-#define CONFIG_CONS_INDEX              1
+#define CONFIG_DW_SERIAL
 #define CONFIG_SYS_NS16550
 #define CONFIG_SYS_NS16550_SERIAL
-#define CONFIG_SYS_NS16550_REG_SIZE    -4
 #define CONFIG_SYS_NS16550_CLK         166666666
-#define CONFIG_SYS_NS16550_COM1                0xFF100000
-#define CONFIG_SYS_NS16550_MEM32
-
 #define CONFIG_BAUDRATE                        115200
 
 /*