summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-03-11 22:12:23 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-03-11 22:12:23 +0000
commit01c390d5c5fce784883054a650b6c8ebaba8b186 (patch)
tree67da237df0400c7103c2bfd4427c9c7056c7b168 /firmware
parent8189ef5b17600fdc9c4d8b44d136c4a6ea02035a (diff)
downloadrockbox-01c390d5c5fce784883054a650b6c8ebaba8b186.tar.gz
rockbox-01c390d5c5fce784883054a650b6c8ebaba8b186.zip
Make Onda VX767 compile + restructure firmware/SOURCES a bit (wrt Jz4740 specific files)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20297 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/SOURCES19
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx767/power-onda_vx767.c41
2 files changed, 52 insertions, 8 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES
index 98569c4896..29ee03d040 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
@@ -1225,7 +1225,8 @@ drivers/qt1106.c
1225#endif /* SIMULATOR */ 1225#endif /* SIMULATOR */
1226#endif /* MEIZU_M3 */ 1226#endif /* MEIZU_M3 */
1227 1227
1228#if CONFIG_CPU==JZ4732 && !defined(SIMULATOR) 1228#ifndef SIMULATOR
1229#if CONFIG_CPU == JZ4732
1229target/mips/ingenic_jz47xx/ata-nand-jz4740.c 1230target/mips/ingenic_jz47xx/ata-nand-jz4740.c
1230target/mips/ingenic_jz47xx/ata-sd-jz4740.c 1231target/mips/ingenic_jz47xx/ata-sd-jz4740.c
1231target/mips/ingenic_jz47xx/debug-jz4740.c 1232target/mips/ingenic_jz47xx/debug-jz4740.c
@@ -1237,21 +1238,23 @@ target/mips/ingenic_jz47xx/usb-jz4740.c
1237#ifndef BOOTLOADER 1238#ifndef BOOTLOADER
1238target/mips/ingenic_jz47xx/codec-jz4740.c 1239target/mips/ingenic_jz47xx/codec-jz4740.c
1239target/mips/ingenic_jz47xx/pcm-jz4740.c 1240target/mips/ingenic_jz47xx/pcm-jz4740.c
1240#endif 1241#endif /* BOOTLOADER */
1241drivers/nand_id.c 1242drivers/nand_id.c
1242#endif 1243#endif /* CONFIG_CPU == JZ4732 */
1243 1244
1244#if (defined(ONDA_VX747) || defined(ONDA_VX747P)) && !defined(SIMULATOR) 1245#if defined(ONDA_VX747) || defined(ONDA_VX747P)
1245target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c 1246target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c
1246target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c 1247target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c
1247target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c
1248target/mips/ingenic_jz47xx/onda_vx747/power-onda_vx747.c 1248target/mips/ingenic_jz47xx/onda_vx747/power-onda_vx747.c
1249target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c
1249target/mips/ingenic_jz47xx/onda_vx747/speaker-onda_vx747.c 1250target/mips/ingenic_jz47xx/onda_vx747/speaker-onda_vx747.c
1250#endif 1251#endif /* ONDA_VX747 || ONDA_VX747P */
1251 1252
1252#if defined(ONDA_VX767) && !defined(SIMULATOR) 1253#ifdef ONDA_VX767
1253target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c 1254target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c
1254target/mips/ingenic_jz47xx/onda_vx767/button-onda_vx767.c 1255target/mips/ingenic_jz47xx/onda_vx767/button-onda_vx767.c
1255target/mips/ingenic_jz47xx/onda_vx767/lcd-onda_vx767.c 1256target/mips/ingenic_jz47xx/onda_vx767/lcd-onda_vx767.c
1257target/mips/ingenic_jz47xx/onda_vx767/power-onda_vx767.c
1256target/mips/ingenic_jz47xx/onda_vx767/sadc-onda_vx767.c 1258target/mips/ingenic_jz47xx/onda_vx767/sadc-onda_vx767.c
1257#endif 1259#endif /* ONDA_VX767 */
1260#endif /* SIMULATOR */
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx767/power-onda_vx767.c b/firmware/target/mips/ingenic_jz47xx/onda_vx767/power-onda_vx767.c
new file mode 100644
index 0000000000..8d007e292a
--- /dev/null
+++ b/firmware/target/mips/ingenic_jz47xx/onda_vx767/power-onda_vx767.c
@@ -0,0 +1,41 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2009 by Maurus Cuelenaere
11 *
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.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#include "config.h"
23#include "power.h"
24#include "jz4740.h"
25
26/* TODO! */
27
28/* Detect which power sources are present. */
29unsigned int power_input_status(void)
30{
31 return 0;
32}
33
34void power_init(void)
35{
36}
37
38bool charging_state(void)
39{
40 return false;
41}