David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Timer support for Hexagon |
| 4 | * |
| 5 | * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _ASM_TIMER_REGS_H |
| 9 | #define _ASM_TIMER_REGS_H |
| 10 | |
| 11 | /* This stuff should go into a platform specific file */ |
| 12 | #define TCX0_CLK_RATE 19200 |
| 13 | #define TIMER_ENABLE 0 |
| 14 | #define TIMER_CLR_ON_MATCH 1 |
| 15 | |
| 16 | /* |
| 17 | * 8x50 HDD Specs 5-8. Simulator co-sim not fixed until |
| 18 | * release 1.1, and then it's "adjustable" and probably not defaulted. |
| 19 | */ |
| 20 | #define RTOS_TIMER_INT 3 |
| 21 | #ifdef CONFIG_HEXAGON_COMET |
| 22 | #define RTOS_TIMER_REGS_ADDR 0xAB000000UL |
| 23 | #endif |
| 24 | #define SLEEP_CLK_RATE 32000 |
| 25 | |
| 26 | #endif |