[U-Boot] [PATCH v2 17/19] arm: socfpga: Adding clock frequency info for U-boot

Marek Vasut marex at denx.de
Mon Sep 25 09:23:29 UTC 2017


On 09/25/2017 10:40 AM, tien.fong.chee at intel.com wrote:
> From: Tien Fong Chee <tien.fong.chee at intel.com>
> 
> Clock frequency info is required in U-boot.
> 
> Signed-off-by: Tien Fong Chee <tien.fong.chee at intel.com>

I want a TB on Gen 5

> ---
>  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 <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>
> @@ -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;
>  }
>  
> 


-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list