summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-07-14 15:03:10 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-07-14 15:03:10 +0000
commit0709f0a5c60b5525ff98708887f5f1e5b0b570c2 (patch)
tree849fd125aa7b217228d584212d2930d8259ff5d8 /firmware/target/mips/ingenic_jz47xx/system-jz4740.c
parent4f199817488708ba60724accb6ce76886f855af8 (diff)
downloadrockbox-0709f0a5c60b5525ff98708887f5f1e5b0b570c2.tar.gz
rockbox-0709f0a5c60b5525ff98708887f5f1e5b0b570c2.tar.bz2
rockbox-0709f0a5c60b5525ff98708887f5f1e5b0b570c2.zip
Add preliminary support for the Onda VX747 (MIPS target)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18032 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/system-jz4740.c')
-rwxr-xr-xfirmware/target/mips/ingenic_jz47xx/system-jz4740.c71
1 files changed, 71 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
new file mode 100755
index 0000000000..4963cac517
--- /dev/null
+++ b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
@@ -0,0 +1,71 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2008 by Maurus Cuelenaere
+ *
+ * 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.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+
+#include "config.h"
+#include "jz4740.h"
+#include "mipsregs.h"
+
+void intr_handler(void)
+{
+ return;
+}
+
+void except_handler(void* stack_ptr, unsigned int cause, unsigned int epc)
+{
+ (void)stack_ptr;
+ (void)cause;
+ (void)epc;
+ REG8(USB_REG_POWER) &= ~USB_POWER_SOFTCONN;
+ while(1);
+}
+
+void system_reboot(void)
+{
+ while(1);
+}
+
+void cli(void)
+{
+ register unsigned int t;
+ t = read_c0_status();
+ t &= ~1;
+ write_c0_status(t);
+}
+
+unsigned int mips_get_sr(void)
+{
+ unsigned int t = read_c0_status();
+ return t;
+}
+
+void sti(void)
+{
+ register unsigned int t;
+ t = read_c0_status();
+ t |= 1;
+ t &= ~2;
+ write_c0_status(t);
+}
+
+void tick_start(unsigned int interval_in_ms)
+{
+ (void)interval_in_ms;
+}