blob: 9aad4a7b749f62ad8673d42fbb7e6a9788122943 [file] [log] [blame]
Greg Whited45da932007-01-04 10:16:40 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
Michael Sevakis20c6bf52007-04-14 01:18:06 +000010 * Copyright (C) 2002 by Alan Korr
Greg Whited45da932007-01-04 10:16:40 +000011 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * 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 Whited45da932007-01-04 10:16:40 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
Michael Sevakis20c6bf52007-04-14 01:18:06 +000021#ifndef SYSTEM_TARGET_H
22#define SYSTEM_TARGET_H
Greg Whited45da932007-01-04 10:16:40 +000023
Michael Sevakis20c6bf52007-04-14 01:18:06 +000024#include "system-arm.h"
Greg Whited45da932007-01-04 10:16:40 +000025
Michael Sevakis20c6bf52007-04-14 01:18:06 +000026#define CPUFREQ_DEFAULT 12000000
27#define CPUFREQ_NORMAL 48000000
28#define CPUFREQ_MAX 60000000
Greg Whited45da932007-01-04 10:16:40 +000029
Michael Sevakis20c6bf52007-04-14 01:18:06 +000030typedef void (*interrupt_handler_t)(void);
31
32void irq_set_int_handler(int n, interrupt_handler_t handler);
33void irq_enable_int(int n);
34void irq_disable_int(int n);
35
36#endif /* SYSTEM_TARGET_H */