diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-09-05 15:09:40 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-09-05 15:09:40 +0000 |
commit | e1446381675be454d91081a2db1d275129970556 (patch) | |
tree | fdaaab97282d3c5e339840a13c29311fa6085fd9 /firmware/export | |
parent | e0646947c9d36d5095659939f73294c2b425fda8 (diff) | |
download | rockbox-e1446381675be454d91081a2db1d275129970556.tar.gz rockbox-e1446381675be454d91081a2db1d275129970556.zip |
Add Onda VX767 target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18422 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-ondavx747.h | 7 | ||||
-rw-r--r-- | firmware/export/config-ondavx767.h | 158 | ||||
-rw-r--r-- | firmware/export/config.h | 4 | ||||
-rw-r--r-- | firmware/export/cpu.h | 3 |
4 files changed, 165 insertions, 7 deletions
diff --git a/firmware/export/config-ondavx747.h b/firmware/export/config-ondavx747.h index 66570d4622..e015a53374 100644 --- a/firmware/export/config-ondavx747.h +++ b/firmware/export/config-ondavx747.h | |||
@@ -155,13 +155,6 @@ | |||
155 | #define USB_VENDOR_ID 0x041e | 155 | #define USB_VENDOR_ID 0x041e |
156 | #define USB_PRODUCT_ID 0x4133*/ | 156 | #define USB_PRODUCT_ID 0x4133*/ |
157 | 157 | ||
158 | /*DEBUGGING!*/ | ||
159 | #ifdef BOOTLOADER | ||
160 | #define THREAD_EXTRA_CHECKS 1 | ||
161 | #define DEBUG 1 | ||
162 | #define debug(msg) printf(msg) | ||
163 | #endif | ||
164 | |||
165 | #include <stdbool.h> /* HACKY */ | 158 | #include <stdbool.h> /* HACKY */ |
166 | 159 | ||
167 | #endif | 160 | #endif |
diff --git a/firmware/export/config-ondavx767.h b/firmware/export/config-ondavx767.h new file mode 100644 index 0000000000..a72b73ba32 --- /dev/null +++ b/firmware/export/config-ondavx767.h | |||
@@ -0,0 +1,158 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2008 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 | /* | ||
23 | * This config file is for the Onda VX747 | ||
24 | */ | ||
25 | #define TARGET_TREE /* this target is using the target tree system */ | ||
26 | |||
27 | #define CONFIG_SDRAM_START 0x80004000 | ||
28 | |||
29 | #define ONDA_VX767 1 | ||
30 | |||
31 | #define MODEL_NAME "Onda VX767" | ||
32 | |||
33 | /* For Rolo and boot loader */ | ||
34 | #define MODEL_NUMBER 31 | ||
35 | |||
36 | /* define this if you use an ATA controller */ | ||
37 | //#define HAVE_ATA | ||
38 | |||
39 | /* define this if you have a bitmap LCD display */ | ||
40 | #define HAVE_LCD_BITMAP | ||
41 | |||
42 | /* define this if you have a colour LCD */ | ||
43 | #define HAVE_LCD_COLOR | ||
44 | |||
45 | /* define this if you have access to the quickscreen */ | ||
46 | #define HAVE_QUICKSCREEN | ||
47 | |||
48 | /* define this if you have access to the pitchscreen */ | ||
49 | #define HAVE_PITCHSCREEN | ||
50 | |||
51 | /* define this if you would like tagcache to build on this target */ | ||
52 | #define HAVE_TAGCACHE | ||
53 | |||
54 | /* define this if the target has volume keys which can be used in the lists */ | ||
55 | #define HAVE_VOLUME_IN_LIST | ||
56 | |||
57 | /* LCD dimensions */ | ||
58 | #define CONFIG_LCD LCD_ONDAVX767 | ||
59 | |||
60 | #define LCD_WIDTH 320 | ||
61 | #define LCD_HEIGHT 240 | ||
62 | |||
63 | #define LCD_DEPTH 16 /* 16bit colours */ | ||
64 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
65 | |||
66 | /* Define this if your LCD can be enabled/disabled */ | ||
67 | //#define HAVE_LCD_ENABLE | ||
68 | |||
69 | #define CONFIG_KEYPAD ONDAVX767_PAD | ||
70 | #define HAS_BUTTON_HOLD | ||
71 | |||
72 | /* Define this if you do software codec */ | ||
73 | #define CONFIG_CODEC SWCODEC | ||
74 | |||
75 | /* define this if you have a real-time clock */ | ||
76 | #define CONFIG_RTC RTC_JZ47XX | ||
77 | |||
78 | /* Define this for LCD backlight available */ | ||
79 | #define HAVE_BACKLIGHT | ||
80 | |||
81 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
82 | |||
83 | /* Main LCD backlight brightness range and defaults */ | ||
84 | #define MIN_BRIGHTNESS_SETTING 0 /* TODO */ | ||
85 | #define MAX_BRIGHTNESS_SETTING 127 | ||
86 | #define DEFAULT_BRIGHTNESS_SETTING 85 | ||
87 | #define DEFAULT_DIMNESS_SETTING 22 | ||
88 | |||
89 | /* Define this if you have a software controlled poweroff */ | ||
90 | //#define HAVE_SW_POWEROFF | ||
91 | |||
92 | /* The number of bytes reserved for loadable codecs */ | ||
93 | #define CODEC_SIZE 0x80000 | ||
94 | |||
95 | /* The number of bytes reserved for loadable plugins */ | ||
96 | #define PLUGIN_BUFFER_SIZE 0x100000 | ||
97 | |||
98 | /* Define this if you have the */ | ||
99 | //#define HAVE_INGENIC_CODEC | ||
100 | |||
101 | #define CONFIG_I2C I2C_JZ47XX | ||
102 | |||
103 | /* TLV320 has no tone controls, so we use the software ones */ | ||
104 | //#define HAVE_SW_TONE_CONTROLS | ||
105 | |||
106 | /*#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \ | ||
107 | SAMPR_CAP_11)*/ | ||
108 | |||
109 | #define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */ | ||
110 | #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ | ||
111 | #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */ | ||
112 | #define BATTERY_CAPACITY_INC 100 /* capacity increment */ | ||
113 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
114 | |||
115 | /* Hardware controlled charging with monitoring */ | ||
116 | //#define CONFIG_CHARGING CHARGING_MONITOR | ||
117 | |||
118 | #ifndef SIMULATOR | ||
119 | |||
120 | /* Define this if you have a Ingenic JZ4732 */ | ||
121 | #define CONFIG_CPU JZ4732 | ||
122 | |||
123 | /* define this if the hardware can be powered off while charging */ | ||
124 | #define HAVE_POWEROFF_WHILE_CHARGING | ||
125 | |||
126 | /* Define this to the CPU frequency */ | ||
127 | #define CPU_FREQ 3686400 | ||
128 | |||
129 | /* define this if you have a flash memory storage */ | ||
130 | #define HAVE_FLASH_STORAGE | ||
131 | |||
132 | /* Virtual LED (icon) */ | ||
133 | #define CONFIG_LED LED_VIRTUAL | ||
134 | |||
135 | /* define this if the backlight can be set to a brightness */ | ||
136 | #define __BACKLIGHT_INIT | ||
137 | |||
138 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
139 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
140 | |||
141 | /* Offset ( in the firmware file's header ) to the real data */ | ||
142 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
143 | |||
144 | /* Define this if you have adjustable CPU frequency */ | ||
145 | /* #define HAVE_ADJUSTABLE_CPU_FREQ */ | ||
146 | |||
147 | #define BOOTFILE_EXT "vx767" | ||
148 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
149 | #define BOOTDIR "/.rockbox" | ||
150 | |||
151 | /*#define CONFIG_USBOTG USBOTG_INGENIC | ||
152 | #define HAVE_USBSTACK | ||
153 | #define USB_VENDOR_ID 0x041e | ||
154 | #define USB_PRODUCT_ID 0x4133*/ | ||
155 | |||
156 | #include <stdbool.h> /* HACKY */ | ||
157 | |||
158 | #endif | ||
diff --git a/firmware/export/config.h b/firmware/export/config.h index d700a15102..bdf8743942 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -94,6 +94,7 @@ | |||
94 | #define PHILIPS_HDD1630_PAD 29 | 94 | #define PHILIPS_HDD1630_PAD 29 |
95 | #define MEIZU_M6SL_PAD 30 | 95 | #define MEIZU_M6SL_PAD 30 |
96 | #define ONDAVX747_PAD 31 | 96 | #define ONDAVX747_PAD 31 |
97 | #define ONDAVX767_PAD 32 | ||
97 | 98 | ||
98 | /* CONFIG_REMOTE_KEYPAD */ | 99 | /* CONFIG_REMOTE_KEYPAD */ |
99 | #define H100_REMOTE 1 | 100 | #define H100_REMOTE 1 |
@@ -137,6 +138,7 @@ | |||
137 | #define LCD_HDD1630 27 /* as used by the Philips HDD1630 */ | 138 | #define LCD_HDD1630 27 /* as used by the Philips HDD1630 */ |
138 | #define LCD_MEIZUM6 28 /* as used by the Meizu M6SP and M6SL (various models) */ | 139 | #define LCD_MEIZUM6 28 /* as used by the Meizu M6SP and M6SL (various models) */ |
139 | #define LCD_ONDAVX747 29 /* as used by the Onda VX747 */ | 140 | #define LCD_ONDAVX747 29 /* as used by the Onda VX747 */ |
141 | #define LCD_ONDAVX767 30 /* as used by the Onda VX767 */ | ||
140 | 142 | ||
141 | /* LCD_PIXELFORMAT */ | 143 | /* LCD_PIXELFORMAT */ |
142 | #define HORIZONTAL_PACKING 1 | 144 | #define HORIZONTAL_PACKING 1 |
@@ -291,6 +293,8 @@ | |||
291 | #include "config-meizu-m6sl.h" | 293 | #include "config-meizu-m6sl.h" |
292 | #elif defined(ONDA_VX747) | 294 | #elif defined(ONDA_VX747) |
293 | #include "config-ondavx747.h" | 295 | #include "config-ondavx747.h" |
296 | #elif defined(ONDA_VX767) | ||
297 | #include "config-ondavx767.h" | ||
294 | #else | 298 | #else |
295 | /* no known platform */ | 299 | /* no known platform */ |
296 | #endif | 300 | #endif |
diff --git a/firmware/export/cpu.h b/firmware/export/cpu.h index 83beab2fdf..86efd31ef1 100644 --- a/firmware/export/cpu.h +++ b/firmware/export/cpu.h | |||
@@ -59,3 +59,6 @@ | |||
59 | #if CONFIG_CPU == S5L8700 | 59 | #if CONFIG_CPU == S5L8700 |
60 | #include "s5l8700.h" | 60 | #include "s5l8700.h" |
61 | #endif | 61 | #endif |
62 | #if CONFIG_CPU == JZ4732 | ||
63 | #include "jz4740.h" | ||
64 | #endif | ||