Greg White | d45da93 | 2007-01-04 10:16:40 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
Michael Sevakis | 20c6bf5 | 2007-04-14 01:18:06 +0000 | [diff] [blame] | 10 | * Copyright (C) 2002 by Alan Korr |
Greg White | d45da93 | 2007-01-04 10:16:40 +0000 | [diff] [blame] | 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 12 | * This program is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU General Public License |
| 14 | * as published by the Free Software Foundation; either version 2 |
| 15 | * of the License, or (at your option) any later version. |
Greg White | d45da93 | 2007-01-04 10:16:40 +0000 | [diff] [blame] | 16 | * |
| 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 18 | * KIND, either express or implied. |
| 19 | * |
| 20 | ****************************************************************************/ |
Michael Sevakis | 20c6bf5 | 2007-04-14 01:18:06 +0000 | [diff] [blame] | 21 | #ifndef SYSTEM_TARGET_H |
| 22 | #define SYSTEM_TARGET_H |
Greg White | d45da93 | 2007-01-04 10:16:40 +0000 | [diff] [blame] | 23 | |
Michael Sevakis | 20c6bf5 | 2007-04-14 01:18:06 +0000 | [diff] [blame] | 24 | #include "system-arm.h" |
Greg White | d45da93 | 2007-01-04 10:16:40 +0000 | [diff] [blame] | 25 | |
Michael Sevakis | 20c6bf5 | 2007-04-14 01:18:06 +0000 | [diff] [blame] | 26 | #define CPUFREQ_DEFAULT 12000000 |
| 27 | #define CPUFREQ_NORMAL 48000000 |
| 28 | #define CPUFREQ_MAX 60000000 |
Greg White | d45da93 | 2007-01-04 10:16:40 +0000 | [diff] [blame] | 29 | |
Michael Sevakis | 20c6bf5 | 2007-04-14 01:18:06 +0000 | [diff] [blame] | 30 | typedef void (*interrupt_handler_t)(void); |
| 31 | |
| 32 | void irq_set_int_handler(int n, interrupt_handler_t handler); |
| 33 | void irq_enable_int(int n); |
| 34 | void irq_disable_int(int n); |
| 35 | |
| 36 | #endif /* SYSTEM_TARGET_H */ |