Add time keeping code for metag. Meta hardware threads have 2 timers. The background timer (TXTIMER) is used as a free-running time base, and the interrupt timer (TXTIMERI) is used for the timer interrupt. Both counters traditionally count at approximately 1MHz.
Showing the changes to include (1 of 10 files). Show all
Unified · Split
| @@ -0,0 +1,21 @@ | ||
| 1 | +/* | |
| 2 | + * Copyright (C) 2013 Imaginaton Technologies Ltd. | |
| 3 | + * | |
| 4 | + * This program is free software; you can redistribute it and/or modify | |
| 5 | + * it under the terms of the GNU General Public License version 2 as | |
| 6 | + * published by the Free Software Foundation. | |
| 7 | + * | |
| 8 | + * This program is distributed in the hope that it will be useful, | |
| 9 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | + * GNU General Public License for more details. | |
| 12 | + * | |
| 13 | + * You should have received a copy of the GNU General Public License | |
| 14 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 15 | + */ | |
| 16 | +#ifndef __CLKSOURCE_METAG_GENERIC_H | |
| 17 | +#define __CLKSOURCE_METAG_GENERIC_H | |
| 18 | + | |
| 19 | +extern int metag_generic_timer_init(void); | |
| 20 | + | |
| 21 | +#endif /* __CLKSOURCE_METAG_GENERIC_H */ | |