Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Kumar Gala | 4c88289 | 2009-02-05 20:40:57 -0600 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2009 Freescale Semiconductor, Inc. |
Kumar Gala | 4c88289 | 2009-02-05 20:40:57 -0600 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef _ASM_CONFIG_H_ |
| 7 | #define _ASM_CONFIG_H_ |
| 8 | |
Marek Vasut | 4131670 | 2018-08-24 21:52:53 +0200 | [diff] [blame] | 9 | #include <asm/processor.h> |
| 10 | |
| 11 | /* Timer */ |
Marek Vasut | 2054697 | 2019-08-31 17:33:06 +0200 | [diff] [blame] | 12 | #define CONFIG_SYS_TIMER_COUNTER (TMU_BASE + 0xc) /* TCNT0 */ |
Tom Rini | 8c70baa | 2021-12-14 13:36:40 -0500 | [diff] [blame] | 13 | #define CONFIG_SYS_TIMER_RATE (get_board_sys_clk() / 4) |
Marek Vasut | 4131670 | 2018-08-24 21:52:53 +0200 | [diff] [blame] | 14 | |
Kumar Gala | 4c88289 | 2009-02-05 20:40:57 -0600 | [diff] [blame] | 15 | #endif |