From: Dinh Nguyen Date: Fri, 20 Oct 2017 09:29:25 -0500 Subject: [U-Boot] [PATCH v3 16/20] arm: socfpga: Adding clock frequency info for U-boot In-Reply-To: <1507882137-27841-17-git-send-email-tien.fong.chee@intel.com> References: <1507882137-27841-1-git-send-email-tien.fong.chee@intel.com> <1507882137-27841-17-git-send-email-tien.fong.chee@intel.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/13/2017 03:08 AM, tien.fong.chee at intel.com wrote: > From: Tien Fong Chee > > Clock frequency info is required in U-boot. We know this patch is for U-Boot, don't need to state it in the commit message. Also, it's "U-Boot", not "U-boot". > > Signed-off-by: Tien Fong Chee > --- > arch/arm/mach-socfpga/board.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c > index 965f9dc..9a96f52 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 Is misc.h needed? > #include > > #include > @@ -26,6 +29,11 @@ int board_init(void) > /* Address of boot parameters for ATAG (if ATAG is used) */ > gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; > > +#if defined(CONFIG_TARGET_SOCFPGA_ARRIA10) > + /* configuring the clock based on handoff */ > + cm_basic_init(gd->fdt_blob); > +#endif > + Is is the right place this? The usual call is in the SPL. Dinh