TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / samsungyh820.h
blobf2ad6ebc5e01630d4d1614e779f1794e398e4fa4
1 /*
2 * This config file is for the Samsung YH-820
3 */
5 /* For Rolo and boot loader */
6 #define MODEL_NUMBER 57
7 #define MODEL_NAME "Samsung YH-820"
9 /* define this if you have recording possibility */
10 /* todo #define HAVE_RECORDING */
12 /* Define bitmask of input sources - recordable bitmask can be defined
13 explicitly if different */
14 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN )
16 /* define the bitmask of hardware sample rates */
17 #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
18 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
19 SAMPR_CAP_11 | SAMPR_CAP_8)
21 /* define the bitmask of recording sample rates */
22 #define REC_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
23 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
24 SAMPR_CAP_11 | SAMPR_CAP_8)
26 /* Type of LCD */
27 #define CONFIG_LCD LCD_S6B33B2
29 /* LCD dimensions */
30 #define LCD_WIDTH 128
31 #define LCD_HEIGHT 96
32 #define LCD_DEPTH 16 /* 65536 colours */
33 #define LCD_PIXELFORMAT RGB565
35 #ifndef BOOTLOADER
37 /* define this if you have a real-time clock */
38 #define CONFIG_RTC RTC_E8564
39 /* TODO ??? */
40 //#define HAVE_RTC_ALARM
42 /* Define this if your LCD can be enabled/disabled */
43 #define HAVE_LCD_ENABLE
45 /* Define this if your LCD can be put to sleep.
46 HAVE_LCD_ENABLE should be defined as well. */
47 /* todo #define HAVE_LCD_SLEEP*/
48 /* todo #define HAVE_LCD_SLEEP_SETTING */
49 #endif /* !BOOTLOADER */
51 /* Define this for LCD backlight available */
52 #define HAVE_BACKLIGHT
54 /* Define this if your LCD can set contrast */
55 #define HAVE_LCD_CONTRAST
57 #define MIN_CONTRAST_SETTING 0
58 #define MAX_CONTRAST_SETTING 255
59 #define DEFAULT_CONTRAST_SETTING 137
61 /* define this if you can flip your LCD */
62 /* #define HAVE_LCD_FLIP */
64 /* define this if you can invert the colours on your LCD */
65 /* todo #define HAVE_LCD_INVERT */
67 /* put the lcd frame buffer in IRAM */
68 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */
70 /* define this if you have a bitmap LCD display */
71 #define HAVE_LCD_BITMAP
73 /* define this if you have a colour LCD */
74 #define HAVE_LCD_COLOR
76 /* define this if you want album art for this target */
77 #define HAVE_ALBUMART
79 /* define this to enable bitmap scaling */
80 #define HAVE_BMP_SCALING
82 /* define this to enable JPEG decoding */
83 #define HAVE_JPEG
85 /* define this if you have access to the quickscreen */
86 #define HAVE_QUICKSCREEN
88 /* define this if you have access to the pitchscreen */
89 #define HAVE_PITCHSCREEN
91 /* define this if you would like tagcache to build on this target */
92 #define HAVE_TAGCACHE
94 #define CONFIG_KEYPAD SAMSUNG_YH_PAD
96 /* Define this if you do software codec */
97 #define CONFIG_CODEC SWCODEC
99 /* define this if you have a disk storage, i.e. something
100 that needs spinups and can cause skips when shaked */
101 #define HAVE_DISK_STORAGE
103 /* define this if you use an ATA controller */
104 #define CONFIG_STORAGE STORAGE_ATA
106 /*define this if the ATA controller and method of USB access support LBA48 */
107 #define HAVE_LBA48
109 /* We're able to shut off power to the HDD */
110 /* todo #define HAVE_ATA_POWER_OFF */
112 /* Define this if you have a software controlled poweroff */
113 #define HAVE_SW_POWEROFF
115 /* The number of bytes reserved for loadable codecs */
116 #define CODEC_SIZE 0x100000
118 /* The number of bytes reserved for loadable plugins */
119 #define PLUGIN_BUFFER_SIZE 0x80000
121 /* Define this if you have the AK4537 audio codec */
122 #define HAVE_AK4537
124 /* AK4537 has no tone controls, so we use the software ones */
125 #define HAVE_SW_TONE_CONTROLS
127 #define AB_REPEAT_ENABLE
129 #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
130 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
131 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
132 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
133 #define BATTERY_TYPES_COUNT 1 /* only one type */
135 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
137 /* Hardware controlled charging */
138 #define CONFIG_CHARGING CHARGING_SIMPLE
140 /* define this if the unit can be powered or charged via USB */
141 #define HAVE_USB_POWER
143 /* Define this if you have a PortalPlayer PP5020 */
144 #define CONFIG_CPU PP5020
146 /* Define this if you want to use the PP5020 i2c interface */
147 #define CONFIG_I2C I2C_PP5020
149 /* define this if the hardware can be powered off while charging */
150 #define HAVE_POWEROFF_WHILE_CHARGING
152 /* The start address index for ROM builds */
153 #define ROM_START 0x00000000
155 /* The size of the flash ROM */
156 #define FLASH_SIZE 0x100000
158 /* Define this to the CPU frequency */
159 #define CPU_FREQ 75000000
161 /* USB On-the-go */
162 #define CONFIG_USBOTG USBOTG_ARC
164 /* enable these for the experimental usb stack */
165 #define HAVE_USBSTACK
166 #define USE_ROCKBOX_USB
167 /* todo - check */
168 #define USB_VENDOR_ID 0x04e8
169 #define USB_PRODUCT_ID 0x5023
171 /* Define this if you have adjustable CPU frequency */
172 #define HAVE_ADJUSTABLE_CPU_FREQ
174 #define MI4_FORMAT
175 #define BOOTFILE_EXT "mi4"
176 #define BOOTFILE "rockbox." BOOTFILE_EXT
177 #define BOOTDIR "/.rockbox"
179 /* Offset ( in the firmware file's header ) to the file CRC */
180 #define FIRMWARE_OFFSET_FILE_CRC 0x00
182 /* Offset ( in the firmware file's header ) to the real data */
183 #define FIRMWARE_OFFSET_FILE_DATA 0x00
185 #define ICODE_ATTR_TREMOR_NOT_MDCT
188 /* DMA is used only for reading on PP502x because although reads are ~8x faster
189 * writes appear to be ~25% slower.
191 /* Switched off due to reported instabilities. #define HAVE_ATA_DMA */
193 /* Define this if a programmable hotkey is mapped */
194 #define HAVE_HOTKEY