X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=arch%2Farm%2Fmach-at91%2Farmv7%2Fcpu.c;h=616621a1f9dede2bc4cf5e048c0802caf691c263;hb=65cc0e2a65d2c9f107b2f42db6396d9ade6c5ad8;hp=7843aed813a846e58fcb3f03395de913328d36ee;hpb=ce39680f7e560236213487ac6bf1baa66b6f74e3;p=platform%2Fkernel%2Fu-boot.git diff --git a/arch/arm/mach-at91/armv7/cpu.c b/arch/arm/mach-at91/armv7/cpu.c index 7843aed..616621a 100644 --- a/arch/arm/mach-at91/armv7/cpu.c +++ b/arch/arm/mach-at91/armv7/cpu.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2010 * Reinhard Meyer, reinhard.meyer@emk-elektronik.de @@ -5,29 +6,34 @@ * Jean-Christophe PLAGNIOL-VILLARD * (C) Copyright 2013 * Bo Shen - * - * SPDX-License-Identifier: GPL-2.0+ */ #include +#include +#include +#include #include #include -#include #include #include #include -#ifndef CONFIG_SYS_AT91_MAIN_CLOCK -#define CONFIG_SYS_AT91_MAIN_CLOCK 0 +#ifndef CFG_SYS_AT91_MAIN_CLOCK +#define CFG_SYS_AT91_MAIN_CLOCK 0 #endif int arch_cpu_init(void) { - return at91_clock_init(CONFIG_SYS_AT91_MAIN_CLOCK); +#if defined(CONFIG_CLK_CCF) + return 0; +#else + return at91_clock_init(CFG_SYS_AT91_MAIN_CLOCK); +#endif } void arch_preboot_os(void) { +#if (IS_ENABLED(CONFIG_ATMEL_PIT_TIMER)) ulong cpiv; at91_pit_t *pit = (at91_pit_t *)ATMEL_BASE_PIT; @@ -39,6 +45,7 @@ void arch_preboot_os(void) * without waiting for wrapping back to 0 */ writel(cpiv + 0x1000, &pit->mr); +#endif } #if defined(CONFIG_DISPLAY_CPUINFO)