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 long usecs
)
36 unsigned long stop
= GPTCNT
+ usecs
;
37 while (TIME_BEFORE(GPTCNT
, stop
));
40 static inline unsigned long usec_timer(void)
45 void watchdog_init(unsigned int half_seconds
);
46 void watchdog_service(void);
51 unsigned int iim_system_rev(void);
53 /* Prepare for transition to (new) firmware */
54 void system_prepare_fw_start(void);
56 void kernel_device_init(void);
57 void system_halt(void);
59 /* Handle some audio lockout related tasks */
60 void kernel_audio_locking(bool locking
);
86 #endif /* SYSTEM_TARGET_H */