From e71b422bd71b03868abfc5e2087281710a0d52ee Mon Sep 17 00:00:00 2001 From: Iain Paton Date: Sat, 28 Mar 2015 10:26:38 +0000 Subject: sunxi: use CONFIG_SYS_CLK_FREQ to set cpu clock make the CPU clock selectable via Kconfig this removes the sunxi specific CONFIG_CLK_FULL_SPEED defined in each soc header and replaces it's use in board/sunxi/board.c with CONFIG_SYS_CLK_FREQ from Kconfig which allows us to configure board specific frequency on boot Signed-off-by: Iain Paton [hdegoede@redhat.com s/CONFIG_SYS_CLK_FREQ/CONFIG_TIMER_CLK_FREQ/ for the arch-timer clk speed on sun7i to fix mis-compile on sun7i] Acked-by: Hans de Goede Signed-off-by: Hans de Goede --- board/sunxi/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'board/sunxi/Kconfig') diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig index 9d0eb91977..2fcab602db 100644 --- a/board/sunxi/Kconfig +++ b/board/sunxi/Kconfig @@ -132,6 +132,10 @@ endchoice endif +config SYS_CLK_FREQ + default 912000000 if MACH_SUN7I + default 1008000000 if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I || MACH_SUN8I + config SYS_CONFIG_NAME default "sun4i" if MACH_SUN4I default "sun5i" if MACH_SUN5I -- cgit v1.2.1