[PATCH v2 2/6] arm: mvebu: ac5: Define mvebu_get_nand_clock()

Stefan Roese sr at denx.de
Thu Jul 13 10:16:36 CEST 2023


On 7/10/23 00:47, Chris Packham wrote:
> The NF_CLK for the AC5 SoC runs at 400MHz. There's no strapping
> or gating require so just add a mvebu_get_nand_clock() that
> returns this value.
> 
> Signed-off-by: Chris Packham <judge.packham at gmail.com>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan

> ---
>   arch/arm/mach-mvebu/alleycat5/soc.c | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm/mach-mvebu/alleycat5/soc.c b/arch/arm/mach-mvebu/alleycat5/soc.c
> index dc69f46eedb2..734b0a87dd49 100644
> --- a/arch/arm/mach-mvebu/alleycat5/soc.c
> +++ b/arch/arm/mach-mvebu/alleycat5/soc.c
> @@ -255,6 +255,12 @@ void soc_print_clock_info(void)
>   	printf("\tMSS     %4d MHz\n", 200);
>   }
>   
> +/* Return NAND clock in Hz */
> +u32 mvebu_get_nand_clock(void)
> +{
> +	return 400 * 1000000;
> +}
> +
>   /*
>    * Override of __weak int mach_cpu_init(void) :
>    * SoC/machine dependent CPU setup

Viele Grüße,
Stefan Roese

-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de


More information about the U-Boot mailing list