Samsung YH*: enable bmp scaler and core jpeg support
[kugel-rb/myfork.git] / firmware / export / config-yh920.h
blob119b293d3a515cdaa9576618e70137bf5db66fc1
1 /*
2 * This config file is for the Samsung YH-920
3 */
5 #define TARGET_TREE /* this target is using the target tree system */
7 /* For Rolo and boot loader */
8 #define MODEL_NUMBER 58
9 #define MODEL_NAME "Samsung YH-920"
11 /* define this if you have recording possibility */
12 /* todo #define HAVE_RECORDING */
14 /* Define bitmask of input sources - recordable bitmask can be defined
15 explicitly if different */
16 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN )
18 /* define the bitmask of hardware sample rates */
19 #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
20 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
21 SAMPR_CAP_11 | SAMPR_CAP_8)
23 /* define the bitmask of recording sample rates */
24 #define REC_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
25 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
26 SAMPR_CAP_11 | SAMPR_CAP_8)
28 /* Type of LCD */
29 #define CONFIG_LCD LCD_S1D15E06
31 /* LCD dimensions */
32 #define LCD_WIDTH 160
33 #define LCD_HEIGHT 128
34 #define LCD_DEPTH 2
35 #define LCD_PIXELFORMAT VERTICAL_PACKING
37 /* Display colours, for screenshots and sim (0xRRGGBB) */
38 #define LCD_DARKCOLOR 0x000000
39 #define LCD_BRIGHTCOLOR 0x5a915a
40 #define LCD_BL_DARKCOLOR 0x000000
41 #define LCD_BL_BRIGHTCOLOR 0xadd8e6
43 /* todo */
44 /* #ifndef BOOTLOADER */
45 #if 0
46 /* Define this if your LCD can be enabled/disabled */
47 #define HAVE_LCD_ENABLE
49 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
50 * should be defined as well.
51 * We can currently put the lcd to sleep but it won't wake up properly */
52 #define HAVE_LCD_SLEEP
53 #define HAVE_LCD_SLEEP_SETTING
54 #endif
56 /* Define this for LCD backlight available */
57 #define HAVE_BACKLIGHT
59 /* Define this if your LCD can set contrast */
60 /* todo #define HAVE_LCD_CONTRAST */
62 #define MIN_CONTRAST_SETTING 0
63 #define MAX_CONTRAST_SETTING 30
64 #define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */
66 /* define this if you can flip your LCD */
67 /* todo #define HAVE_LCD_FLIP */
69 /* define this if you can invert the colours on your LCD */
70 /* todo #define HAVE_LCD_INVERT */
72 /* put the lcd frame buffer in IRAM */
73 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */
75 /* define this if you have a bitmap LCD display */
76 #define HAVE_LCD_BITMAP
78 /* define this if you want album art for this target */
79 #define HAVE_ALBUMART
81 /* define this to enable bitmap scaling */
82 #define HAVE_BMP_SCALING
84 /* define this to enable JPEG decoding */
85 #define HAVE_JPEG
87 /* define this if you have access to the quickscreen */
88 #define HAVE_QUICKSCREEN
90 /* define this if you have access to the pitchscreen */
91 #define HAVE_PITCHSCREEN
93 /* define this if you would like tagcache to build on this target */
94 #define HAVE_TAGCACHE
96 #define CONFIG_KEYPAD SAMSUNG_YH_PAD
98 /* Define this if you do software codec */
99 #define CONFIG_CODEC SWCODEC
101 /* define this if you have a real-time clock */
102 /* todo verify rtc (or none) */
103 /* #ifndef BOOTLOADER */
104 #if 0
105 #define CONFIG_RTC RTC_E8564
106 #define HAVE_RTC_ALARM
107 #endif
109 /* define this if you have a disk storage, i.e. something
110 that needs spinups and can cause skips when shaked */
111 #define HAVE_DISK_STORAGE
113 /* define this if you use an ATA controller */
114 #define CONFIG_STORAGE STORAGE_ATA
116 /* We're able to shut off power to the HDD */
117 #ifndef SIMULATOR
118 /* todo #define HAVE_ATA_POWER_OFF */
119 #endif
121 /* Define this if you have a software controlled poweroff */
122 #define HAVE_SW_POWEROFF
124 /* The number of bytes reserved for loadable codecs */
125 #define CODEC_SIZE 0x100000
127 /* The number of bytes reserved for loadable plugins */
128 #define PLUGIN_BUFFER_SIZE 0x80000
130 /* Define this if you have the AK4537 audio codec */
131 #define HAVE_AK4537
133 /* AK4537 has no tone controls, so we use the software ones */
134 #define HAVE_SW_TONE_CONTROLS
136 #define AB_REPEAT_ENABLE 1
138 #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
139 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
140 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
141 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
142 #define BATTERY_TYPES_COUNT 1 /* only one type */
144 /* Hardware controlled charging */
145 #define CONFIG_CHARGING CHARGING_SIMPLE
147 /* define this if the unit can be powered or charged via USB */
148 #define HAVE_USB_POWER
150 #ifndef SIMULATOR
152 /* Define this if you have a PortalPlayer PP5020 */
153 #define CONFIG_CPU PP5020
155 /* Define this if you want to use the PP5020 i2c interface */
156 #define CONFIG_I2C I2C_PP5020
158 /* define this if the hardware can be powered off while charging */
159 #define HAVE_POWEROFF_WHILE_CHARGING
161 /* The start address index for ROM builds */
162 #define ROM_START 0x00000000
164 /* The size of the flash ROM */
165 #define FLASH_SIZE 0x100000
167 /* Define this to the CPU frequency */
168 #define CPU_FREQ 75000000
170 /* USB On-the-go */
171 #define CONFIG_USBOTG USBOTG_ARC
173 /* enable these for the experimental usb stack */
174 #define HAVE_USBSTACK
175 #define USE_ROCKBOX_USB
176 /* todo - check */
177 #define USB_VENDOR_ID 0x04e8
178 #define USB_PRODUCT_ID 0x5022
180 /* Virtual LED (icon) */
181 #define CONFIG_LED LED_VIRTUAL
183 /* Define this if you have adjustable CPU frequency */
184 #define HAVE_ADJUSTABLE_CPU_FREQ
186 #define MI4_FORMAT
187 #define BOOTFILE_EXT "mi4"
188 #define BOOTFILE "rockbox." BOOTFILE_EXT
189 #define BOOTDIR "/.rockbox"
191 /* Offset ( in the firmware file's header ) to the file CRC */
192 #define FIRMWARE_OFFSET_FILE_CRC 0x00
194 /* Offset ( in the firmware file's header ) to the real data */
195 #define FIRMWARE_OFFSET_FILE_DATA 0x00
197 #define ICODE_ATTR_TREMOR_NOT_MDCT
199 #endif /* !SIMULATOR */