diff options
Diffstat (limited to 'firmware/export/config-gigabeat-s.h')
-rw-r--r-- | firmware/export/config-gigabeat-s.h | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/firmware/export/config-gigabeat-s.h b/firmware/export/config-gigabeat-s.h new file mode 100644 index 0000000000..285b381480 --- /dev/null +++ b/firmware/export/config-gigabeat-s.h | |||
@@ -0,0 +1,139 @@ | |||
1 | /* | ||
2 | * This config file is for toshiba Gigabeat S | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | #define TOSHIBA_GIGABEAT_S 1 | ||
7 | |||
8 | /* For Rolo and boot loader */ | ||
9 | #define MODEL_NUMBER 19 | ||
10 | |||
11 | /* define this if you have a bitmap LCD display */ | ||
12 | #define HAVE_LCD_BITMAP | ||
13 | |||
14 | /* define this if you have a colour LCD */ | ||
15 | #define HAVE_LCD_COLOR | ||
16 | |||
17 | /* define this if you have access to the quickscreen */ | ||
18 | #define HAVE_QUICKSCREEN | ||
19 | |||
20 | /* define this if you have access to the pitchscreen */ | ||
21 | #define HAVE_PITCHSCREEN | ||
22 | |||
23 | /* define this if you would like tagcache to build on this target */ | ||
24 | #define HAVE_TAGCACHE | ||
25 | |||
26 | /* define this if the target has volume keys which can be used in the lists */ | ||
27 | #define HAVE_VOLUME_IN_LIST | ||
28 | |||
29 | /* LCD dimensions */ | ||
30 | #define LCD_WIDTH 240 | ||
31 | #define LCD_HEIGHT 320 | ||
32 | #define LCD_DEPTH 16 /* 65k colours */ | ||
33 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
34 | |||
35 | #define CONFIG_KEYPAD GIGABEAT_S_PAD | ||
36 | |||
37 | /* Define this if you do software codec */ | ||
38 | #define CONFIG_CODEC SWCODEC | ||
39 | |||
40 | /* define this if you have a real-time clock */ | ||
41 | //#define CONFIG_RTC RTC_IMX31L | ||
42 | |||
43 | /* Define this for LCD backlight available */ | ||
44 | #define HAVE_BACKLIGHT | ||
45 | |||
46 | #define HAVE_LCD_ENABLE | ||
47 | |||
48 | //#define HAVE_BACKLIGHT_BRIGHTNESS | ||
49 | |||
50 | /* Main LCD backlight brightness range and defaults */ | ||
51 | #define MIN_BRIGHTNESS_SETTING 0 /* 0.5 mA */ | ||
52 | #define MAX_DIM_BRIGHTNESS_SETTING 15 /* highest 'dimness' */ | ||
53 | #define MAX_BRIGHTNESS_SETTING 63 /* 32 mA */ | ||
54 | #define DEFAULT_BRIGHTNESS_SETTING 39 /* 20 mA */ | ||
55 | #define DEFAULT_DIMNESS_SETTING 9 /* 5 mA */ | ||
56 | |||
57 | /* Define this if you have a software controlled poweroff */ | ||
58 | #define HAVE_SW_POWEROFF | ||
59 | |||
60 | /* The number of bytes reserved for loadable codecs */ | ||
61 | #define CODEC_SIZE 0x80000 | ||
62 | |||
63 | /* The number of bytes reserved for loadable plugins */ | ||
64 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
65 | |||
66 | /* Define this if you have the WM8975 audio codec */ | ||
67 | #define HAVE_WM8978 | ||
68 | |||
69 | |||
70 | #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \ | ||
71 | SAMPR_CAP_11) | ||
72 | |||
73 | #ifndef SIMULATOR | ||
74 | |||
75 | /* The LCD on a Gigabeat is 240x320 - it is portrait */ | ||
76 | #define HAVE_PORTRAIT_LCD | ||
77 | |||
78 | #define CONFIG_CPU IMX31L | ||
79 | |||
80 | /* Define this if you want to use coldfire's i2c interface */ | ||
81 | #define CONFIG_I2C I2C_IMX31L | ||
82 | |||
83 | /* Type of mobile power - check this out */ | ||
84 | #define BATTERY_CAPACITY_DEFAULT 2000 /* default battery capacity */ | ||
85 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | ||
86 | #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */ | ||
87 | #define BATTERY_CAPACITY_INC 25 /* capacity increment */ | ||
88 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
89 | |||
90 | /* Hardware controlled charging with monitoring */ | ||
91 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
92 | |||
93 | /* define this if the hardware can be powered off while charging */ | ||
94 | #define HAVE_POWEROFF_WHILE_CHARGING | ||
95 | |||
96 | /* The size of the flash ROM */ | ||
97 | #define FLASH_SIZE 0x400000 | ||
98 | |||
99 | /* Define this to the CPU frequency */ | ||
100 | /* TODO */ | ||
101 | #define CPU_FREQ 16934400 | ||
102 | |||
103 | /* define this if the unit can be powered or charged via USB */ | ||
104 | #define HAVE_USB_POWER | ||
105 | |||
106 | /* Define this if you have ATA power-off control */ | ||
107 | #define HAVE_ATA_POWER_OFF | ||
108 | |||
109 | /* Virtual LED (icon) */ | ||
110 | #define CONFIG_LED LED_VIRTUAL | ||
111 | |||
112 | #define CONFIG_LCD LCD_GIGABEAT | ||
113 | |||
114 | /* define this if the backlight can be set to a brightness */ | ||
115 | //#define HAVE_BACKLIGHT_SET_FADING | ||
116 | #define __BACKLIGHT_INIT | ||
117 | |||
118 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
119 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
120 | |||
121 | /* Offset ( in the firmware file's header ) to the real data */ | ||
122 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
123 | |||
124 | #define HAVE_SERIAL | ||
125 | |||
126 | /*Remove Comments from UART_INT to enable the UART interrupts,*/ | ||
127 | /*otherwise iterrupts will be disabled. For now we will test */ | ||
128 | /*UART state by polling the registers, and if necessary update this */ | ||
129 | /*method by using the interrupts instead*/ | ||
130 | //#define UART_INT | ||
131 | |||
132 | /* Define this if you have adjustable CPU frequency */ | ||
133 | /* #define HAVE_ADJUSTABLE_CPU_FREQ */ | ||
134 | |||
135 | #define BOOTFILE_EXT "gigabeat" | ||
136 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
137 | #define BOOTDIR "/.rockbox" | ||
138 | |||
139 | #endif | ||