diff options
Diffstat (limited to 'firmware/export/config/mini2440.h')
-rw-r--r-- | firmware/export/config/mini2440.h | 156 |
1 files changed, 156 insertions, 0 deletions
diff --git a/firmware/export/config/mini2440.h b/firmware/export/config/mini2440.h new file mode 100644 index 0000000000..5dad250930 --- /dev/null +++ b/firmware/export/config/mini2440.h | |||
@@ -0,0 +1,156 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2009 by Bob Cousins, Lyre Project | ||
10 | * Copyright (C) 2009 by Jorge Pinto, Lyre Project | ||
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 Mini2440 | ||
24 | */ | ||
25 | #define TARGET_TREE /* this target is using the target tree system */ | ||
26 | |||
27 | /* For Rolo and boot loader */ | ||
28 | #define MODEL_NUMBER 131 | ||
29 | #define MODEL_NAME "Mini2440" | ||
30 | |||
31 | /***************************************************************************/ | ||
32 | /* Hardware Config */ | ||
33 | |||
34 | /* TODO: ??? */ | ||
35 | #define CONFIG_SDRAM_START 0x30000000 | ||
36 | |||
37 | /* Flash storage */ | ||
38 | #define HAVE_FLASH_STORAGE | ||
39 | /* define the storage type */ | ||
40 | #define CONFIG_STORAGE STORAGE_SD | ||
41 | |||
42 | #define HAVE_MULTIDRIVE | ||
43 | #define NUM_DRIVES 1 // no access to NAND yet | ||
44 | #define HAVE_HOTSWAP | ||
45 | #define HAVE_HOTSWAP_STORAGE_AS_MAIN | ||
46 | #define INCLUDE_TIMEOUT_API | ||
47 | |||
48 | /* Disk storage */ | ||
49 | /* define this if you have a disk storage, i.e. something | ||
50 | that needs spinups and can cause skips when shaked */ | ||
51 | /* #define HAVE_DISK_STORAGE */ | ||
52 | |||
53 | /* Display */ | ||
54 | /* define this if you have a bitmap LCD display */ | ||
55 | #define HAVE_LCD_BITMAP | ||
56 | /* define this if you have a colour LCD */ | ||
57 | #define HAVE_LCD_COLOR | ||
58 | /* The LCD is assumed to be 3.5" TFT touch screen, others are possible */ | ||
59 | #define CONFIG_LCD LCD_MINI2440 | ||
60 | /* LCD dimensions */ | ||
61 | #define LCD_WIDTH 240 | ||
62 | #define LCD_HEIGHT 320 | ||
63 | /* The LCD is configured for RGB565 */ | ||
64 | #define LCD_DEPTH 16 /* 65536 colours */ | ||
65 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
66 | /* Define this for LCD backlight available */ | ||
67 | /* The Mini2440 supports backlight brightness depending on LCD type */ | ||
68 | /* But the 3.5" LCD touch screen does not support brightness*/ | ||
69 | #define HAVE_BACKLIGHT | ||
70 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
71 | /* Main LCD backlight brightness range and defaults */ | ||
72 | #define MIN_BRIGHTNESS_SETTING 1 /* 0.5 mA */ | ||
73 | #define MAX_BRIGHTNESS_SETTING 12 /* 32 mA */ | ||
74 | #define DEFAULT_BRIGHTNESS_SETTING 10 /* 16 mA */ | ||
75 | |||
76 | /* Keypad */ | ||
77 | #define CONFIG_KEYPAD MINI2440_PAD | ||
78 | #define HAVE_TOUCHSCREEN | ||
79 | #define HAVE_BUTTON_DATA | ||
80 | |||
81 | /* I2C */ | ||
82 | /* We do not use currently use hardware I2C, but does not build without */ | ||
83 | #define CONFIG_I2C I2C_S3C2440 | ||
84 | |||
85 | /* Define DAC/Codec */ | ||
86 | #define HAVE_UDA1341 | ||
87 | |||
88 | #define HW_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) | ||
89 | |||
90 | /* Battery */ | ||
91 | #define BATTERY_CAPACITY_DEFAULT 1100 /* default battery capacity */ | ||
92 | #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ | ||
93 | #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */ | ||
94 | #define BATTERY_CAPACITY_INC 100 /* capacity increment */ | ||
95 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
96 | |||
97 | |||
98 | |||
99 | /***************************************************************************/ | ||
100 | /* Application Config */ | ||
101 | |||
102 | #define HAVE_ALBUMART | ||
103 | /* define this to enable bitmap scaling */ | ||
104 | #define HAVE_BMP_SCALING | ||
105 | /* define this to enable JPEG decoding */ | ||
106 | #define HAVE_JPEG | ||
107 | /* define this if you have access to the pitchscreen */ | ||
108 | #define HAVE_PITCHSCREEN | ||
109 | #define HAVE_QUICKSCREEN | ||
110 | |||
111 | /* define this if you have a real-time clock */ | ||
112 | #define CONFIG_RTC RTC_S3C2440 | ||
113 | |||
114 | /* Define this if you do software codec */ | ||
115 | #define CONFIG_CODEC SWCODEC | ||
116 | |||
117 | /* The number of bytes reserved for loadable codecs */ | ||
118 | #define CODEC_SIZE 0x100000 | ||
119 | |||
120 | /* The number of bytes reserved for loadable plugins */ | ||
121 | #define PLUGIN_BUFFER_SIZE 0x100000 | ||
122 | |||
123 | #define CONFIG_CPU S3C2440 | ||
124 | |||
125 | /* Define this to the CPU frequency */ | ||
126 | #define CPU_FREQ 406000000 | ||
127 | #define MCK_FREQ (CPU_FREQ/4) | ||
128 | #define SLOW_CLOCK 32768 | ||
129 | |||
130 | |||
131 | /* Define this if your LCD can set contrast */ | ||
132 | #define HAVE_LCD_CONTRAST | ||
133 | #define MIN_CONTRAST_SETTING 0 | ||
134 | #define MAX_CONTRAST_SETTING 63 | ||
135 | #define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */ | ||
136 | |||
137 | /* USB */ | ||
138 | /* TODO:#define HAVE_USBSTACK */ | ||
139 | #define USB_NONE | ||
140 | |||
141 | #define HAVE_SERIAL | ||
142 | |||
143 | /* Hardware controlled charging with monitoring */ | ||
144 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
145 | /*#define POWER_INPUT_BATTERY 0*/ | ||
146 | |||
147 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
148 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
149 | |||
150 | /* Offset ( in the firmware file's header ) to the real data */ | ||
151 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
152 | |||
153 | #define BOOTFILE_EXT "mini2440" | ||
154 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
155 | #define BOOTDIR "/.rockbox" | ||
156 | |||