From: Marek Vasut Date: Fri, 1 Jun 2018 10:32:45 +0200 Subject: [U-Boot] [PATCH] arm: socfpga: Add do_bridge_reset for Arria 10 In-Reply-To: <1527840799-15261-1-git-send-email-ley.foon.tan@intel.com> References: <1527840799-15261-1-git-send-email-ley.foon.tan@intel.com> Message-ID: <844baa6a-4f13-532b-aad0-007d54d9ddcd@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/01/2018 10:13 AM, Ley Foon Tan wrote: > 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 > --- > arch/arm/mach-socfpga/misc_arria10.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/arch/arm/mach-socfpga/misc_arria10.c b/arch/arm/mach-socfpga/misc_arria10.c > index 47a9d50..a75cbc4 100644 > --- a/arch/arm/mach-socfpga/misc_arria10.c > +++ b/arch/arm/mach-socfpga/misc_arria10.c > @@ -14,6 +14,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -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(); > +} > http://git.denx.de/?p=u-boot/u-boot-socfpga.git;a=commit;h=8bed1b1dbaee66def9a8ded4f855e3d1f258d183 is probably better, since it uses the same command line API to operate bridges as Gen5. Can you please rebase that one and submit it instead ? -- Best regards, Marek Vasut