Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Kumar Gala | 47d41cc | 2009-02-05 20:40:57 -0600 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2009 Freescale Semiconductor, Inc. |
Kumar Gala | 47d41cc | 2009-02-05 20:40:57 -0600 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef _ASM_CONFIG_H_ |
| 7 | #define _ASM_CONFIG_H_ |
| 8 | |
Marek Vasut | 0e286c5 | 2018-08-24 21:52:53 +0200 | [diff] [blame] | 9 | #include <asm/processor.h> |
| 10 | |
| 11 | /* Timer */ |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 12 | #define CFG_SYS_TIMER_COUNTER (TMU_BASE + 0xc) /* TCNT0 */ |
| 13 | #define CFG_SYS_TIMER_RATE (get_board_sys_clk() / 4) |
Marek Vasut | 0e286c5 | 2018-08-24 21:52:53 +0200 | [diff] [blame] | 14 | |
Kumar Gala | 47d41cc | 2009-02-05 20:40:57 -0600 | [diff] [blame] | 15 | #endif |