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/config-ondavx767.h | |
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/config-ondavx767.h')
-rw-r--r-- | firmware/export/config-ondavx767.h | 158 |
1 files changed, 158 insertions, 0 deletions
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 | ||