Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Andrew Ruder | c224090 | 2015-08-12 13:18:31 -0500 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2014 Andrew Ruder <andrew.ruder@elecsyscorp.com> |
Andrew Ruder | c224090 | 2015-08-12 13:18:31 -0500 | [diff] [blame] | 4 | */ |
| 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_ */ |