diff mbox series

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

Message ID 20230709224737.338525-3-judge.packham@gmail.com
State Accepted
Commit f52e2d884c222e879a68b61db217d49a070fa2e4
Delegated to: Stefan Roese
Headers show
Series Support for AC5X NAND and AT-x240 board | expand

Commit Message

Chris Packham July 9, 2023, 10:47 p.m. UTC
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@gmail.com>
---
 arch/arm/mach-mvebu/alleycat5/soc.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Stefan Roese July 13, 2023, 8:16 a.m. UTC | #1
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@gmail.com>

Reviewed-by: Stefan Roese <sr@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
diff mbox series

Patch

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