public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arc: AXS101 - enable data cache
@ 2015-03-31 10:20 Alexey Brodkin
  2015-03-31 10:20 ` [U-Boot] [PATCH] board: Switch Abilis TB-100 board to Driver Model for serial port Alexey Brodkin
  2015-04-02  8:07 ` [U-Boot] [PATCH] arc: AXS101 - enable data cache Alexey Brodkin
  0 siblings, 2 replies; 3+ messages in thread
From: Alexey Brodkin @ 2015-03-31 10:20 UTC (permalink / raw)
  To: u-boot

With recent changes in mother-board firmware DMA works properly with
data cache enabled. So we enable data cache for the board in defconfig
to gain significant improvement in performance.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
---
 configs/axs101_defconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configs/axs101_defconfig b/configs/axs101_defconfig
index e5e1d87..f6ec1f1 100644
--- a/configs/axs101_defconfig
+++ b/configs/axs101_defconfig
@@ -1,5 +1,4 @@
 CONFIG_ARC=y
-CONFIG_SYS_DCACHE_OFF=y
 CONFIG_ARC_CACHE_LINE_SHIFT=5
 CONFIG_TARGET_AXS101=y
 CONFIG_SYS_TEXT_BASE=0x81000000
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] board: Switch Abilis TB-100 board to Driver Model for serial port
  2015-03-31 10:20 [U-Boot] [PATCH] arc: AXS101 - enable data cache Alexey Brodkin
@ 2015-03-31 10:20 ` Alexey Brodkin
  2015-04-02  8:07 ` [U-Boot] [PATCH] arc: AXS101 - enable data cache Alexey Brodkin
  1 sibling, 0 replies; 3+ messages in thread
From: Alexey Brodkin @ 2015-03-31 10:20 UTC (permalink / raw)
  To: u-boot

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         |  1 +
 arch/arc/dts/abilis_tb100.dts | 24 ++++++++++++++++++++++++
 configs/tb100_defconfig       |  5 +++++
 include/configs/tb100.h       |  6 +-----
 4 files changed, 31 insertions(+), 5 deletions(-)
 create mode 100644 arch/arc/dts/abilis_tb100.dts

diff --git a/arch/arc/dts/Makefile b/arch/arc/dts/Makefile
index a155311..5bc6f44 100644
--- a/arch/arc/dts/Makefile
+++ b/arch/arc/dts/Makefile
@@ -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
index 0000000..cf395c4
--- /dev/null
+++ b/arch/arc/dts/abilis_tb100.dts
@@ -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 at ff100000 {
+			compatible = "snps,dw-apb-uart";
+			reg = <0xff100000 0x1000>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+	};
+};
diff --git a/configs/tb100_defconfig b/configs/tb100_defconfig
index c964272..59f09d9 100644
--- a/configs/tb100_defconfig
+++ b/configs/tb100_defconfig
@@ -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
diff --git a/include/configs/tb100.h b/include/configs/tb100.h
index 46df406..501449a 100644
--- a/include/configs/tb100.h
+++ b/include/configs/tb100.h
@@ -35,14 +35,10 @@
 /*
  * 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
 
 /*
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] arc: AXS101 - enable data cache
  2015-03-31 10:20 [U-Boot] [PATCH] arc: AXS101 - enable data cache Alexey Brodkin
  2015-03-31 10:20 ` [U-Boot] [PATCH] board: Switch Abilis TB-100 board to Driver Model for serial port Alexey Brodkin
@ 2015-04-02  8:07 ` Alexey Brodkin
  1 sibling, 0 replies; 3+ messages in thread
From: Alexey Brodkin @ 2015-04-02  8:07 UTC (permalink / raw)
  To: u-boot

On Tue, 2015-03-31 at 13:20 +0300, Alexey Brodkin wrote:
> With recent changes in mother-board firmware DMA works properly with
> data cache enabled. So we enable data cache for the board in defconfig
> to gain significant improvement in performance.

Even though NAND controller seem to work fine now I discovered yet
unknown problem with class 10 SD cards. If data cache is enabled I see
error messages like "Invalid FAT entry". Once data cache is disabled I
see very nice and clean reads:
--->8---
AXS# fatload mmc 0 0x83000000 uimage
reading uimage
7354948 bytes read in 315 ms (22.3 MiB/s)
--->8---

So before enabling data cache on AXS101 I'll need to fix this issue with
SD-cards. Deferring this patch for now.

-Alexey

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-02  8:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-31 10:20 [U-Boot] [PATCH] arc: AXS101 - enable data cache Alexey Brodkin
2015-03-31 10:20 ` [U-Boot] [PATCH] board: Switch Abilis TB-100 board to Driver Model for serial port Alexey Brodkin
2015-04-02  8:07 ` [U-Boot] [PATCH] arc: AXS101 - enable data cache Alexey Brodkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox