diff options
author | Tom Rini <trini@konsulko.com> | 2018-05-20 09:44:05 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-20 09:44:05 -0400 |
commit | 904e546970184d9f5b7e1bde7065b745e67a1bef (patch) | |
tree | 5873f1c17c89a7db365841e989dc71e22bf09f75 /arch/arm/mach-socfpga/board.c | |
parent | 855ff8e6dd58b01930d8b8b726e65310d546a0c9 (diff) | |
parent | 00f7ae6138ad8b9d859a70d022161297b1bb8049 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-socfpga
Diffstat (limited to 'arch/arm/mach-socfpga/board.c')
-rw-r--r-- | arch/arm/mach-socfpga/board.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c index c23ac4ead3e..189e12a6683 100644 --- a/arch/arm/mach-socfpga/board.c +++ b/arch/arm/mach-socfpga/board.c @@ -7,7 +7,10 @@ #include <common.h> #include <errno.h> +#include <fdtdec.h> #include <asm/arch/reset_manager.h> +#include <asm/arch/clock_manager.h> +#include <asm/arch/misc.h> #include <asm/io.h> #include <usb.h> @@ -25,6 +28,21 @@ 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); + + /* Add device descriptor to FPGA device table */ + socfpga_fpga_add(); +#endif + + return 0; +} + +int dram_init_banksize(void) +{ + fdtdec_setup_memory_banksize(); + return 0; } |