From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chee, Tien Fong Date: Mon, 2 Oct 2017 10:04:32 +0000 Subject: [U-Boot] [PATCH v2 17/19] arm: socfpga: Adding clock frequency info for U-boot In-Reply-To: References: <1506328815-23733-1-git-send-email-tien.fong.chee@intel.com> <1506328815-23733-18-git-send-email-tien.fong.chee@intel.com> Message-ID: <1506938668.2178.3.camel@intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On Isn, 2017-09-25 at 11:23 +0200, Marek Vasut wrote: > On 09/25/2017 10:40 AM, tien.fong.chee at intel.com wrote: > > > > From: Tien Fong Chee > > > > Clock frequency info is required in U-boot. > > > > Signed-off-by: Tien Fong Chee > I want a TB on Gen 5 > This patch break the gen5, because cm_basic_init is exclusive for Arria 10. #ifdef is required. > > > > --- > >  arch/arm/mach-socfpga/board.c | 6 ++++++ > >  1 file changed, 6 insertions(+) > > > > diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach- > > socfpga/board.c > > index 965f9dc..a00f63b 100644 > > --- a/arch/arm/mach-socfpga/board.c > > +++ b/arch/arm/mach-socfpga/board.c > > @@ -8,7 +8,10 @@ > >   > >  #include > >  #include > > +#include > >  #include > > +#include > > +#include > >  #include > >   > >  #include > > @@ -26,6 +29,9 @@ int board_init(void) > >   /* Address of boot parameters for ATAG (if ATAG is used) > > */ > >   gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; > >   > > + /* configuring the clock based on handoff */ > > + cm_basic_init(gd->fdt_blob); > > + > >   return 0; > >  } > >   > > >