1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2007 by Greg White
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.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef SYSTEM_TARGET_H
22 #define SYSTEM_TARGET_H
24 #include "system-arm.h"
27 /* High enough for most tasks but low enough for reduced voltage */
28 #define CPUFREQ_DEFAULT 264000000
29 /* Still quite powerful, minimum possible frequency */
30 #define CPUFREQ_NORMAL 132000000
32 #define CPUFREQ_MAX 528000000
34 static inline void udelay(unsigned int usecs
)
36 unsigned stop
= GPTCNT
+ usecs
;
37 while (TIME_BEFORE(GPTCNT
, stop
));
40 void watchdog_init(unsigned int half_seconds
);
41 void watchdog_service(void);
46 unsigned int iim_system_rev(void);
48 /* Prepare for transition to (new) firmware */
49 void system_prepare_fw_start(void);
51 void kernel_device_init(void);
52 void system_halt(void);
54 /* Handle some audio lockout related tasks */
55 void kernel_audio_locking(bool locking
);
81 #endif /* SYSTEM_TARGET_H */