Skip to contentSkip to conversation

Add Intel Arria 10 SoC FPGA driver

PATCH New Chee Tien Fong 4 participants 11 messages Mar 3, 2017 – Mar 7, 2017

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

cover Add Intel Arria 10 SoC FPGA driver

From: Tien Fong Chee <[email protected]>

This patchset adds FPGA driver to Intel Arria 10 SoC.

This series is working on top of [1] initial patchset which enables the basic support for Arria 10 and other features.

[1]: https://www.mail-archive.com/u-boot at lists.denx.de/msg240053.html

Regards,
Tien Fong

Tien Fong Chee (4):
arm: socfpga: Removing unused passing parameter of
socfpga_bridges_reset
arm: socfpga: Restructure FPGA driver in the preparation to support

    A10.

arm: socfpga: Add Arria10 FPGA manager program assembly driver
arm: socfpga: Add FPGA driver support for Arria 10

 arch/arm/mach-socfpga/Makefile                     |    3 +-
 arch/arm/mach-socfpga/include/mach/fpga_manager.h  |   70 +--
 .../include/mach/fpga_manager_arria10.h            |  120 +++++
 .../mach/{fpga_manager.h => fpga_manager_gen5.h}   |   66 ++--
 arch/arm/mach-socfpga/include/mach/reset_manager.h |    3 -
 .../include/mach/reset_manager_arria10.h           |    1 +
 .../mach-socfpga/include/mach/reset_manager_gen5.h |    1 +
 arch/arm/mach-socfpga/lowlevel_init.S              |   48 ++
 arch/arm/mach-socfpga/reset_manager_arria10.c      |    2 +-
 drivers/Makefile                                   |    1 +
 drivers/fpga/Makefile                              |    6 +-
 drivers/fpga/socfpga.c                             |  272 +----------
 drivers/fpga/socfpga_arria10.c                     |  565 ++++++++++++++++++++
 drivers/fpga/{socfpga.c => socfpga_gen5.c}         |   33 +--
 14 files changed, 792 insertions(+), 399 deletions(-)
 create mode 100644 arch/arm/mach-socfpga/include/mach/fpga_manager_arria10.h
 copy arch/arm/mach-socfpga/include/mach/{fpga_manager.h => fpga_manager_gen5.h} (85%)
 mode change 100755 => 100644 arch/arm/mach-socfpga/include/mach/reset_manager_arria10.h
 mode change 100755 => 100644 arch/arm/mach-socfpga/include/mach/reset_manager_gen5.h
 create mode 100644 arch/arm/mach-socfpga/lowlevel_init.S
 create mode 100644 drivers/fpga/socfpga_arria10.c
 copy drivers/fpga/{socfpga.c => socfpga_gen5.c} (91%)
#1 lore raw

PATCH 1/4 arm: socfpga: Removing unused passing parameter of socfpga_bridges_reset

From: Tien Fong Chee <[email protected]>

This patch removes the unused passing parameter of socfpga_bridges_reset function in Arria10.

Cc Marek Vasut <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Ching Liang See <[email protected]>
Cc Ley Foon <[email protected]>
Cc Westergreen Dalon <[email protected]>
---
 arch/arm/mach-socfpga/include/mach/reset_manager.h |    3 ---
 .../include/mach/reset_manager_arria10.h           |    1 +
 .../mach-socfpga/include/mach/reset_manager_gen5.h |    1 +
 arch/arm/mach-socfpga/reset_manager_arria10.c      |    2 +-
 4 files changed, 3 insertions(+), 4 deletions(-)
 mode change 100755 => 100644 arch/arm/mach-socfpga/include/mach/reset_manager_arria10.h
 mode change 100755 => 100644 arch/arm/mach-socfpga/include/mach/reset_manager_gen5.h
arch/arm/mach-socfpga/include/mach/reset_manager.h +0 -3
index 64526b6..f5189e8 100644
@@ -8,9 +8,6 @@
 #define	_RESET_MANAGER_H_
 
 void reset_cpu(ulong addr);
-
-void socfpga_bridges_reset(int enable);
-
 void socfpga_per_reset(u32 reset, int set);
 void socfpga_per_reset_all(void);
 
arch/arm/mach-socfpga/include/mach/reset_manager_arria10.h +1 -0
old mode 100755
new mode 100644
index 2668a86..954381c
@@ -16,6 +16,7 @@ void reset_assert_fpga_connected_peripherals(void);
 void reset_deassert_osc1wd0(void);
 void reset_assert_uart(void);
 void reset_deassert_uart(void);
+void socfpga_bridges_reset(void);
 
 struct socfpga_reset_manager {
 	u32	stat;
arch/arm/mach-socfpga/include/mach/reset_manager_gen5.h +1 -0
old mode 100755
new mode 100644
index 028974a..da17f4c
@@ -8,6 +8,7 @@
 #define	_RESET_MANAGER_GEN5_H_
 
 void reset_deassert_peripherals_handoff(void);
+void socfpga_bridges_reset(int enable);
 
 struct socfpga_reset_manager {
 	u32	status;
arch/arm/mach-socfpga/reset_manager_arria10.c +1 -1
index 01156de..684c6be 100644
@@ -355,7 +355,7 @@ void socfpga_bridges_reset(int enable)
 	/* For SoCFPGA-VT, this is NOP. */
 }
 #else
-void socfpga_bridges_reset(int enable)
+void socfpga_bridges_reset(void)
 {
 /* Disable all the bridges (hps2fpga, lwhps2fpga, fpga2hps, fpga2sdram) */
 	/* set idle request to all bridges */
Signature · 1 line
1.7.1
#7 lore raw

PATCH 2/4 arm: socfpga: Restructure FPGA driver in the preparation to support A10.

In reply to Chee Tien Fong

From: Tien Fong Chee <[email protected]>

Move the Gen5 specific code to gen5 files. No functional change.

Cc Marek Vasut <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Ching Liang See <[email protected]>
Cc Ley Foon <[email protected]>
Cc Westergreen Dalon <[email protected]>
---
 arch/arm/mach-socfpga/Makefile                     |    2 +-
 arch/arm/mach-socfpga/include/mach/fpga_manager.h  |   68 +----
 .../mach/{fpga_manager.h => fpga_manager_gen5.h}   |   66 +++---
 drivers/fpga/Makefile                              |    5 +-
 drivers/fpga/socfpga.c                             |  272 +-------------------
 drivers/fpga/{socfpga.c => socfpga_gen5.c}         |   33 +---
 6 files changed, 51 insertions(+), 395 deletions(-)
 copy arch/arm/mach-socfpga/include/mach/{fpga_manager.h => fpga_manager_gen5.h} (85%)
 copy drivers/fpga/{socfpga.c => socfpga_gen5.c} (91%)
arch/arm/mach-socfpga/Makefile +1 -1
index 7c7b471..901bf91 100644
@@ -9,7 +9,6 @@
 
 obj-y	+= board.o
 obj-y	+= clock_manager.o
-obj-y	+= fpga_manager.o
 obj-y	+= misc.o
 obj-y	+= reset_manager.o
 obj-y	+= timer.o
@@ -28,6 +27,7 @@ obj-y	+= reset_manager_gen5.o
 obj-y	+= scan_manager.o
 obj-y	+= system_manager_gen5.o
 obj-y	+= wrap_pll_config.o
+obj-y	+= fpga_manager.o
 endif
 
 ifdef CONFIG_SPL_BUILD
arch/arm/mach-socfpga/include/mach/fpga_manager.h +11 -57

83 lines not on this page · raw message

arch/arm/mach-socfpga/include/mach/fpga_manager_gen5.h renamed from arch/arm/mach-socfpga/include/mach/fpga_manager.h +31 -35

84 lines not on this page · raw message

drivers/fpga/Makefile +4 -1
index 777706f..c70ee40 100644
@@ -19,5 +19,8 @@ obj-$(CONFIG_FPGA_ACEX1K) += ACEX1K.o
 obj-$(CONFIG_FPGA_CYCLON2) += cyclon2.o
 obj-$(CONFIG_FPGA_STRATIX_II) += stratixII.o
 obj-$(CONFIG_FPGA_STRATIX_V) += stratixv.o
-obj-$(CONFIG_FPGA_SOCFPGA) += socfpga.o
+ifdef CONFIG_FPGA_SOCFPGA
+obj-y += socfpga.o
+obj-$(CONFIG_TARGET_SOCFPGA_GEN5) += socfpga_gen5.o
+endif
 endif
drivers/fpga/socfpga.c +3 -269

289 lines not on this page · raw message

drivers/fpga/socfpga_gen5.c renamed from drivers/fpga/socfpga.c +1 -32
similarity index 91%
copy from drivers/fpga/socfpga.c
copy to drivers/fpga/socfpga_gen5.c
index 3751574..e553bd9 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012 Altera Corporation <www.altera.com>
+ * Copyright (C) 2012-2017 Altera Corporation <www.altera.com>
  * All rights reserved.
  *
  * SPDX-License-Identifier:	BSD-3-Clause
@@ -14,15 +14,10 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-/* Timeout count */
-#define FPGA_TIMEOUT_CNT		0x1000000
-
 static struct socfpga_fpga_manager *fpgamgr_regs =
 	(struct socfpga_fpga_manager *)SOCFPGA_FPGAMGRREGS_ADDRESS;
-#if defined(CONFIG_TARGET_SOCFPGA_GEN5)
 static struct socfpga_system_manager *sysmgr_regs =
 	(struct socfpga_system_manager *)SOCFPGA_SYSMGR_ADDRESS;
-#endif
 
 /* Set CD ratio */
 static void fpgamgr_set_cd_ratio(unsigned long ratio)
@@ -32,29 +27,6 @@ static void fpgamgr_set_cd_ratio(unsigned long ratio)
 			(ratio & 0x3) << FPGAMGRREGS_CTRL_CDRATIO_LSB);
 }
 
-static int fpgamgr_dclkcnt_set(unsigned long cnt)
-{
-	unsigned long i;
-
-	/* Clear any existing done status */
-	if (readl(&fpgamgr_regs->dclkstat))
-		writel(0x1, &fpgamgr_regs->dclkstat);
-
-	/* Write the dclkcnt */
-	writel(cnt, &fpgamgr_regs->dclkcnt);
-
-	/* Wait till the dclkcnt done */
-	for (i = 0; i < FPGA_TIMEOUT_CNT; i++) {
-		if (!readl(&fpgamgr_regs->dclkstat))
-			continue;
-
-		writel(0x1, &fpgamgr_regs->dclkstat);
-		return 0;
-	}
-
-	return -ETIMEDOUT;
-}
-
 /* Start the FPGA programming by initialize the FPGA Manager */
 static int fpgamgr_program_init(void)
 {
@@ -269,11 +241,8 @@ int socfpga_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size)
 	}
 
 	/* Prior programming the FPGA, all bridges need to be shut off */
-
-#if defined(CONFIG_TARGET_SOCFPGA_GEN5)
 	/* Disable all signals from hps peripheral controller to fpga */
 	writel(0, &sysmgr_regs->fpgaintfgrp_module);
-#endif
 
 	/* Disable all signals from FPGA to HPS SDRAM */
 #define SDR_CTRLGRP_FPGAPORTRST_ADDRESS	0x5080
Signature · 1 line
1.7.1
#8 lore raw

PATCH 3/4 arm: socfpga: Add Arria10 FPGA manager program assembly driver

In reply to Chee Tien Fong

From: Tien Fong Chee <[email protected]>

This patch adding the Arria10 FPGA manager program assembly driver which can be used for feeding bitstream to configure FPGA.

Cc Marek Vasut <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Ching Liang See <[email protected]>
Cc Ley Foon <[email protected]>
Cc Westergreen Dalon <[email protected]>
---
 arch/arm/mach-socfpga/lowlevel_init.S |   48 +++++++++++++++++++++++++++++++++
 1 files changed, 48 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-socfpga/lowlevel_init.S
arch/arm/mach-socfpga/lowlevel_init.S new file +48 -0
new file mode 100644
index 0000000..79e9d07
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2017 Intel Corporation <www.intel.com>
+ *
+ * SPDX-License-Identifier:    GPL-2.0
+ */
+
+#include <asm-offsets.h>
+#include <config.h>
+#include <linux/linkage.h>
+
+/*
+ * Write RBF data in burst form to FPGA Manager
+ * [r0] RBF binary source address
+ * [r1] FPGA Manager data address
+ * [r2] RBF data length
+ */
+
+ENTRY(fpgamgr_axi_write)
+	PUSH    {r4-r11, lr}            /* save registers per AAPCS */
+
+write_burst:
+	cmp     r2,#32
+	beq     write_burst_cont
+	bls     write_word
+write_burst_cont:
+	ldmia   r0!, {r4-r11}
+	stmia   r1, {r4-r11}
+	subs    r2, r2, #32
+	b       write_burst
+
+write_word:
+	cmp     r2,#4
+	beq     write_word_cont
+	bls     write_byte
+write_word_cont:
+	ldmia   r0!, {r4}
+	stmia   r1, {r4}
+	subs    r2, r2, #4
+	b       write_word
+
+write_byte:
+	cmp     r2,#0
+	beq     write_end
+	ldr     r3, [r0]
+	str     r3, [r1]
+write_end:
+	POP     {r4-r11, pc}
+ENDPROC(fpgamgr_axi_write)
Signature · 1 line
1.7.1
#9 lore raw

PATCH 4/4 arm: socfpga: Add FPGA driver support for Arria 10

In reply to Chee Tien Fong

From: Tien Fong Chee <[email protected]>

Add FPGA driver support for Arria 10.

Cc Marek Vasut <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Ching Liang See <[email protected]>
Cc Ley Foon <[email protected]>
Cc Westergreen Dalon <[email protected]>
---
 arch/arm/mach-socfpga/Makefile                     |    1 +
 arch/arm/mach-socfpga/include/mach/fpga_manager.h  |    2 +
 .../include/mach/fpga_manager_arria10.h            |  120 +++++
 drivers/Makefile                                   |    1 +
 drivers/fpga/Makefile                              |    1 +
 drivers/fpga/socfpga_arria10.c                     |  565 ++++++++++++++++++++
 6 files changed, 690 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-socfpga/include/mach/fpga_manager_arria10.h
 create mode 100644 drivers/fpga/socfpga_arria10.c
arch/arm/mach-socfpga/Makefile +1 -0
index 901bf91..d1ca3ee 100644
@@ -18,6 +18,7 @@ obj-y	+= clock_manager_arria10.o
 obj-y	+= misc_arria10.o
 obj-y	+= pinmux_arria10.o
 obj-y	+= reset_manager_arria10.o
+obj-y	+= lowlevel_init.o
 endif
 
 ifdef CONFIG_TARGET_SOCFPGA_GEN5
arch/arm/mach-socfpga/include/mach/fpga_manager.h +2 -0
index 76a9289..64e8344 100644
@@ -12,6 +12,8 @@
 
 #if defined(CONFIG_TARGET_SOCFPGA_GEN5)
 #include <asm/arch/fpga_manager_gen5.h>
+#elif defined(CONFIG_TARGET_SOCFPGA_ARRIA10)
+#include <asm/arch/fpga_manager_arria10.h>
 #endif
 
 /* FPGA CD Ratio Value */
arch/arm/mach-socfpga/include/mach/fpga_manager_arria10.h new file +120 -0

120 lines not on this page · raw message

drivers/Makefile +1 -0
index 6e7a2c3..375ee78 100644
@@ -10,6 +10,7 @@ obj-$(CONFIG_$(SPL_)RAM)	+= ram/
 
 ifdef CONFIG_SPL_BUILD
 
+obj-$(CONFIG_FPGA) += fpga/
 obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
 obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
 obj-$(CONFIG_SPL_I2C_SUPPORT) += i2c/
drivers/fpga/Makefile +1 -0
index c70ee40..bb063e0 100644
@@ -22,5 +22,6 @@ obj-$(CONFIG_FPGA_STRATIX_V) += stratixv.o
 ifdef CONFIG_FPGA_SOCFPGA
 obj-y += socfpga.o
 obj-$(CONFIG_TARGET_SOCFPGA_GEN5) += socfpga_gen5.o
+obj-$(CONFIG_TARGET_SOCFPGA_ARRIA10) += socfpga_arria10.o
 endif
 endif
drivers/fpga/socfpga_arria10.c new file +565 -0

565 lines not on this page · raw message

Signature · 1 line
1.7.1
maintainer
#2 lore raw

PATCH 1/4 arm: socfpga: Removing unused passing parameter of socfpga_bridges_reset

In reply to Chee Tien Fong
Quoted 5 lines · Chee Tien Fong

From: Tien Fong Chee <[email protected]>

This patch removes the unused passing parameter of socfpga_bridges_reset function in Arria10.

Quoted 7 lines
Cc Marek Vasut <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Ching Liang See <[email protected]>
Cc Ley Foon <[email protected]>
Cc Westergreen Dalon <[email protected]>

---

Can you please add the proper [U-Boot][PATCH] header to your patches? It would really help with filters for all of us!

Thanks,
Dinh

#3 lore raw

PATCH 1/4 arm: socfpga: Removing unused passing parameter of socfpga_bridges_reset

In reply to Chee Tien Fong
Quoted 11 lines · Chee Tien Fong

From: Tien Fong Chee <[email protected]>

This patch removes the unused passing parameter of socfpga_bridges_reset function in Arria10.

Cc Marek Vasut <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Ching Liang See <[email protected]>
Cc Ley Foon <[email protected]>
Cc Westergreen Dalon <[email protected]>

We do NOT have arria10 support in mainline, I am confused. Can you please sync with Ley when submitting patches ?

Thanks

Quoted 65 lines
---
 arch/arm/mach-socfpga/include/mach/reset_manager.h |    3 ---
 .../include/mach/reset_manager_arria10.h           |    1 +
 .../mach-socfpga/include/mach/reset_manager_gen5.h |    1 +
 arch/arm/mach-socfpga/reset_manager_arria10.c      |    2 +-
 4 files changed, 3 insertions(+), 4 deletions(-)
 mode change 100755 => 100644 arch/arm/mach-socfpga/include/mach/reset_manager_arria10.h
 mode change 100755 => 100644 arch/arm/mach-socfpga/include/mach/reset_manager_gen5.h
arch/arm/mach-socfpga/include/mach/reset_manager.h +0 -3
index 64526b6..f5189e8 100644
@@ -8,9 +8,6 @@
 #define	_RESET_MANAGER_H_
 
 void reset_cpu(ulong addr);
-
-void socfpga_bridges_reset(int enable);
-
 void socfpga_per_reset(u32 reset, int set);
 void socfpga_per_reset_all(void);
 
arch/arm/mach-socfpga/include/mach/reset_manager_arria10.h +1 -0
old mode 100755
new mode 100644
index 2668a86..954381c
@@ -16,6 +16,7 @@ void reset_assert_fpga_connected_peripherals(void);
 void reset_deassert_osc1wd0(void);
 void reset_assert_uart(void);
 void reset_deassert_uart(void);
+void socfpga_bridges_reset(void);
 
 struct socfpga_reset_manager {
 	u32	stat;
arch/arm/mach-socfpga/include/mach/reset_manager_gen5.h +1 -0
old mode 100755
new mode 100644
index 028974a..da17f4c
@@ -8,6 +8,7 @@
 #define	_RESET_MANAGER_GEN5_H_
 
 void reset_deassert_peripherals_handoff(void);
+void socfpga_bridges_reset(int enable);
 
 struct socfpga_reset_manager {
 	u32	status;
arch/arm/mach-socfpga/reset_manager_arria10.c +1 -1
index 01156de..684c6be 100644
@@ -355,7 +355,7 @@ void socfpga_bridges_reset(int enable)
 	/* For SoCFPGA-VT, this is NOP. */
 }
 #else
-void socfpga_bridges_reset(int enable)
+void socfpga_bridges_reset(void)
 {
 /* Disable all the bridges (hps2fpga, lwhps2fpga, fpga2hps, fpga2sdram) */
 	/* set idle request to all bridges */
#10 lore raw

cover Add Intel Arria 10 SoC FPGA driver

In reply to Chee Tien Fong
Quoted 38 lines · Chee Tien Fong

From: Tien Fong Chee <[email protected]>

This patchset adds FPGA driver to Intel Arria 10 SoC.

This series is working on top of [1] initial patchset which enables the basic
support for Arria 10 and other features.

[1]: https://www.mail-archive.com/u-boot at lists.denx.de/msg240053.html

Regards,
Tien Fong

Tien Fong Chee (4):
  arm: socfpga: Removing unused passing parameter of socfpga_bridges_reset
  arm: socfpga: Restructure FPGA driver in the preparation to support A10.
  arm: socfpga: Add Arria10 FPGA manager program assembly driver
  arm: socfpga: Add FPGA driver support for Arria 10

 arch/arm/mach-socfpga/Makefile                     |    3 +- arch/arm/mach-socfpga/include/mach/fpga_manager.h  |   70 +-- .../include/mach/fpga_manager_arria10.h            |  120 +++++ .../mach/{fpga_manager.h => fpga_manager_gen5.h}   |   66 ++-- arch/arm/mach-socfpga/include/mach/reset_manager.h |    3 - .../include/mach/reset_manager_arria10.h           |    1 + .../mach-socfpga/include/mach/reset_manager_gen5.h |    1 + arch/arm/mach-socfpga/lowlevel_init.S              |   48 ++ arch/arm/mach-socfpga/reset_manager_arria10.c      |    2 +- drivers/Makefile                                   |    1 + drivers/fpga/Makefile                              |    6 +- drivers/fpga/socfpga.c                             |  272 +--------- -
 drivers/fpga/socfpga_arria10.c                     |  565
++++++++++++++++++++
 drivers/fpga/{socfpga.c => socfpga_gen5.c}         |   33 +--

 14 files changed, 792 insertions(+), 399 deletions(-)
Quoted 12 lines

 create mode 100644 arch/arm/mach- socfpga/include/mach/fpga_manager_arria10.h
 copy arch/arm/mach-socfpga/include/mach/{fpga_manager.h => fpga_manager_gen5.h} (85%)
 mode change 100755 => 100644 arch/arm/mach- socfpga/include/mach/reset_manager_arria10.h
 mode change 100755 => 100644 arch/arm/mach- socfpga/include/mach/reset_manager_gen5.h
 create mode 100644 arch/arm/mach-socfpga/lowlevel_init.S create mode 100644 drivers/fpga/socfpga_arria10.c copy drivers/fpga/{socfpga.c => socfpga_gen5.c} (91%)

+CC Marek, Dinh, LF, Dalon, CL ...
This is cover letter for this series patches https://www.mail-archive.c
om/u-boot at lists.denx.de/msg240843.html

#4 lore raw

PATCH 1/4 arm: socfpga: Removing unused passing parameter of socfpga_bridges_reset

In reply to Marek Vasut
Quoted 14 lines · Marek Vasut
Quoted 7 lines · Chee Tien Fong

From: Tien Fong Chee <[email protected]>

This patch removes the unused passing parameter of socfpga_bridges_reset
function in Arria10.

Quoted 6 lines
Cc Marek Vasut <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Ching Liang See <[email protected]>
Cc Ley Foon <[email protected]>
Cc Westergreen Dalon <[email protected]>
Quoted 5 lines

We do NOT have arria10 support in mainline, I am confused. Can you please sync with Ley when submitting patches ?

Thanks

This series is working on top of [1] initial patchset which enables the basic support for Arria 10 and other features.
https://www.mail-archive.com/u-boot at lists.denx.de/msg240053.html

I just realized i forgot to +CC you guys in the cover letter,
https://www.mail-archive.com/u-boot at lists.denx.de/msg240829.html. I am sorry to have you confused.

Quoted 76 lines
Quoted 76 lines

---
 arch/arm/mach-socfpga/include/mach/reset_manager.h |    3 --- .../include/mach/reset_manager_arria10.h           |    1 + .../mach-socfpga/include/mach/reset_manager_gen5.h |    1 + arch/arm/mach-socfpga/reset_manager_arria10.c      |    2 +-

 4 files changed, 3 insertions(+), 4 deletions(-)

 mode change 100755 => 100644 arch/arm/mach-
socfpga/include/mach/reset_manager_arria10.h
 mode change 100755 => 100644 arch/arm/mach-
socfpga/include/mach/reset_manager_gen5.h

arch/arm/mach-socfpga/include/mach/reset_manager.h +0 -3
index 64526b6..f5189e8 100644
@@ -8,9 +8,6 @@
  #define	_RESET_MANAGER_H_
 
  void reset_cpu(ulong addr);
-
-void socfpga_bridges_reset(int enable);
-
  void socfpga_per_reset(u32 reset, int set);
  void socfpga_per_reset_all(void);
 
(quoted diff) +0 -0

socfpga/include/mach/reset_manager_arria10.h b/arch/arm/mach- socfpga/include/mach/reset_manager_arria10.h
old mode 100755
new mode 100644
index 2668a86..954381c

arch/arm/mach-socfpga/include/mach/reset_manager_arria10.h +1 -0
@@ -16,6 +16,7 @@ void
 reset_assert_fpga_connected_peripherals(void);
  void reset_deassert_osc1wd0(void);
  void reset_assert_uart(void);
  void reset_deassert_uart(void);
+void socfpga_bridges_reset(void);
 
  struct socfpga_reset_manager {

  u32 stat;

(quoted diff) +0 -0

socfpga/include/mach/reset_manager_gen5.h b/arch/arm/mach- socfpga/include/mach/reset_manager_gen5.h
old mode 100755
new mode 100644
index 028974a..da17f4c

arch/arm/mach-socfpga/include/mach/reset_manager_gen5.h +1 -0
@@ -8,6 +8,7 @@
  #define	_RESET_MANAGER_GEN5_H_
 
  void reset_deassert_peripherals_handoff(void);
+void socfpga_bridges_reset(int enable);
 
  struct socfpga_reset_manager {
  	u32	status;
arch/arm/mach-socfpga/reset_manager_arria10.c +1 -1
index 01156de..684c6be 100644
@@ -355,7 +355,7 @@ void socfpga_bridges_reset(int enable)
  	/* For SoCFPGA-VT, this is NOP. */
  }
  #else
-void socfpga_bridges_reset(int enable)
+void socfpga_bridges_reset(void)
  {
  /* Disable all the bridges (hps2fpga, lwhps2fpga, fpga2hps,

fpga2sdram) */
  /* set idle request to all bridges */

#5 lore raw

PATCH 1/4 arm: socfpga: Removing unused passing parameter of socfpga_bridges_reset

Quoted 15 lines · Tien Fong
Quoted 14 lines · Marek Vasut
Quoted 13 lines · Chee Tien Fong

From: Tien Fong Chee <[email protected]>

This patch removes the unused passing parameter of socfpga_bridges_reset
function in Arria10.

Cc Marek Vasut <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Ching Liang See <[email protected]>
Cc Ley Foon <[email protected]>
Cc Westergreen Dalon <[email protected]>
Quoted 8 lines
Quoted 5 lines

We do NOT have arria10 support in mainline, I am confused. Can you please sync with Ley when submitting patches ?

Thanks

This series is working on top of [1] initial patchset which enables the basic support for Arria 10 and other features.
https://www.mail-archive.com/u-boot at lists.denx.de/msg240053.html

This patchset is still work-in-progress. Sending patches on top of it is completely useless . Please work with Ley and integrate them or wait until the initial patchset lands.

Quoted 3 lines

I just realized i forgot to +CC you guys in the cover letter,
https://www.mail-archive.com/u-boot at lists.denx.de/msg240829.html. I am sorry to have you confused.

[...]

#6 lore raw

PATCH 1/4 arm: socfpga: Removing unused passing parameter of socfpga_bridges_reset

Quoted 24 lines · Marek Vasut
Quoted 23 lines · Tien Fong
Quoted 21 lines · Marek Vasut
Quoted 8 lines · Chee Tien Fong

From: Tien Fong Chee <[email protected]>

This patch removes the unused passing parameter of socfpga_bridges_reset
function in Arria10.

Quoted 6 lines
Cc Marek Vasut <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Ching Liang See <[email protected]>
Cc Ley Foon <[email protected]>
Cc Westergreen Dalon <[email protected]>

We do NOT have arria10 support in mainline, I am confused. Can you please sync with Ley when submitting patches ?

Thanks

Quoted 8 lines
Quoted 3 lines

This series is working on top of [1] initial patchset which enables the basic support for Arria 10 and other features.
https://www.mail-archive.com/u-boot at lists.denx.de/msg240053.html

This patchset is still work-in-progress. Sending patches on top of it is
completely useless . Please work with Ley and integrate them or wait until the initial patchset lands.

Okay.

Quoted 6 lines
Quoted 4 lines

I just realized i forgot to +CC you guys in the cover letter,
https://www.mail-archive.com/u-boot at lists.denx.de/msg240829.html. I am sorry to have you confused.

[...]