blob: 75b0e491ed5bba21423816bf2db550fac43d4f10 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Andrew Ruderc2240902015-08-12 13:18:31 -05002/*
3 * Copyright (C) 2014 Andrew Ruder <andrew.ruder@elecsyscorp.com>
Andrew Ruderc2240902015-08-12 13:18:31 -05004 */
5
6#ifndef _ASM_ARM_PXA_CONFIG_
7#define _ASM_ARM_PXA_CONFIG_
8
9#include <asm/arch/pxa-regs.h>
10
11/*
12 * Generic timer support
13 */
14#if defined(CONFIG_CPU_PXA27X) || defined(CONFIG_CPU_MONAHANS)
15#define CONFIG_SYS_TIMER_RATE 3250000
16#elif defined(CONFIG_CPU_PXA25X)
17#define CONFIG_SYS_TIMER_RATE 3686400
18#else
19#error "Timer frequency unknown - please config PXA CPU type"
20#endif
21
22#define CONFIG_SYS_TIMER_COUNTER OSCR
23
24#endif /* _ASM_ARM_PXA_CONFIG_ */