summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTien Fong Chee <tien.fong.chee@intel.com>2017-12-05 15:58:07 +0800
committerMarek Vasut <marex@denx.de>2018-05-18 10:30:47 +0200
commitc960ef29cd1bffccb84366cc6ca9c290cb3c36a0 (patch)
tree4bbba4db446b9424e5eb19caf3794b2f205aa35b /arch
parent421a21c53ae1520acdaf2b2c2544ba295b8fdd27 (diff)
downloadu-boot-c960ef29cd1bffccb84366cc6ca9c290cb3c36a0.tar.gz
u-boot-c960ef29cd1bffccb84366cc6ca9c290cb3c36a0.tar.xz
u-boot-c960ef29cd1bffccb84366cc6ca9c290cb3c36a0.zip
ARM: socfpga: Adding clock frequency info for U-Boot
Clock frequency info is required in U-Boot because info would be erased when transition from SPL to U-Boot. Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-socfpga/board.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c
index 38e12a41a3..6e0b4b3c4e 100644
--- a/arch/arm/mach-socfpga/board.c
+++ b/arch/arm/mach-socfpga/board.c
@@ -7,7 +7,9 @@
#include <common.h>
#include <errno.h>
+#include <fdtdec.h>
#include <asm/arch/reset_manager.h>
+#include <asm/arch/clock_manager.h>
#include <asm/io.h>
#include <usb.h>
@@ -25,6 +27,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
+
return 0;
}