2007-09-22 23:17:52 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
2009-07-06 13:40:27 +00:00
|
|
|
* Copyright (C) 2007, 2009 by Karl Kurbjun
|
2007-09-22 23:17:52 +00:00
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2007-09-22 23:17:52 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef SYSTEM_TARGET_H
|
|
|
|
#define SYSTEM_TARGET_H
|
|
|
|
|
|
|
|
#include "system-arm.h"
|
2009-07-06 13:40:27 +00:00
|
|
|
#include "mmu-arm.h"
|
2007-09-22 23:17:52 +00:00
|
|
|
|
2021-07-09 12:16:05 +00:00
|
|
|
#ifdef SANSA_CONNECT
|
|
|
|
#define CPUFREQ_DEFAULT 74250000
|
|
|
|
#define CPUFREQ_NORMAL 74250000
|
|
|
|
#define CPUFREQ_MAX 148500000
|
|
|
|
#else
|
2009-05-02 23:25:55 +00:00
|
|
|
#define CPUFREQ_DEFAULT 87500000
|
|
|
|
#define CPUFREQ_NORMAL 87500000
|
|
|
|
#define CPUFREQ_MAX 175000000
|
2021-07-09 12:16:05 +00:00
|
|
|
#endif
|
2007-09-22 23:17:52 +00:00
|
|
|
|
2009-06-08 00:19:16 +00:00
|
|
|
void udelay(int usec);
|
2021-06-05 07:22:27 +00:00
|
|
|
void mdelay(int msec);
|
2009-06-08 00:19:16 +00:00
|
|
|
|
2011-01-15 08:19:30 +00:00
|
|
|
#if defined(CREATIVE_ZVx) && defined(BOOTLOADER)
|
2011-01-15 08:52:59 +00:00
|
|
|
/* hacky.. */
|
2011-01-15 08:19:30 +00:00
|
|
|
#define SLEEP_KERNEL_HOOK(ticks) \
|
2011-01-15 08:52:59 +00:00
|
|
|
({ \
|
|
|
|
long _sleep_ticks = current_tick + (ticks) + 1; \
|
2011-01-15 08:19:30 +00:00
|
|
|
while (TIME_BEFORE(current_tick, _sleep_ticks)) \
|
|
|
|
switch_thread(); \
|
|
|
|
true; }) /* handled here */
|
|
|
|
#endif
|
|
|
|
|
2011-11-16 14:08:01 +00:00
|
|
|
#ifdef BOOTLOADER
|
|
|
|
void tick_stop(void);
|
|
|
|
void system_prepare_fw_start(void);
|
|
|
|
#endif
|
|
|
|
|
2007-09-22 23:17:52 +00:00
|
|
|
#endif /* SYSTEM_TARGET_H */
|