summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorLey Foon Tan <ley.foon.tan@intel.com>2018-06-01 16:13:19 +0800
committerMarek Vasut <marex@denx.de>2018-07-12 09:22:12 +0200
commit2e1de5bd97e6330c01c38efe788672bafda86f81 (patch)
treef5b087b57e722f36078c2ba34bbc268f182fb6e7 /arch/arm
parenta684729a15e41c757d443d064109d94357d6e76a (diff)
arm: socfpga: Add do_bridge_reset for Arria 10
Add do_bridge_reset() function for Arria 10, it is required by misc.c. arch/arm/mach-socfpga/built-in.o: In function `do_bridge': arch/arm/mach-socfpga/misc.c:221: undefined reference to `do_bridge_reset' make[1]: *** [u-boot] Error 1 Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-socfpga/misc_arria10.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/misc_arria10.c b/arch/arm/mach-socfpga/misc_arria10.c
index 47a9d50ef1..a75cbc4ce6 100644
--- a/arch/arm/mach-socfpga/misc_arria10.c
+++ b/arch/arm/mach-socfpga/misc_arria10.c
@@ -14,6 +14,7 @@
#include <asm/arch/misc.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/reset_manager.h>
+#include <asm/arch/reset_manager_arria10.h>
#include <asm/arch/sdram_arria10.h>
#include <asm/arch/system_manager.h>
#include <asm/arch/nic301.h>
@@ -262,3 +263,11 @@ int arch_misc_init(void)
return socfpga_eth_reset();
}
#endif
+
+void do_bridge_reset(int enable)
+{
+ if (enable)
+ socfpga_reset_deassert_bridges_handoff();
+ else
+ socfpga_bridges_reset();
+}