2 * This config file is for the Samsung YH-925
5 /* For Rolo and boot loader */
6 #define MODEL_NUMBER 59
7 #define MODEL_NAME "Samsung YH-925"
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)
27 #define CONFIG_LCD LCD_YH925
31 #define LCD_HEIGHT 128
32 #define LCD_DEPTH 16 /* 65536 colours */
33 #define LCD_PIXELFORMAT RGB565
36 /* #ifndef BOOTLOADER */
38 /* Define this if your LCD can be enabled/disabled */
39 #define HAVE_LCD_ENABLE
41 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
42 * should be defined as well.
43 * We can currently put the lcd to sleep but it won't wake up properly */
44 #define HAVE_LCD_SLEEP
45 #define HAVE_LCD_SLEEP_SETTING
48 /* Define this for LCD backlight available */
49 #define HAVE_BACKLIGHT
51 /* Define this if your LCD can set contrast */
52 #define HAVE_LCD_CONTRAST
54 #define MIN_CONTRAST_SETTING 0
55 #define MAX_CONTRAST_SETTING 30
56 #define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */
58 /* define this if you can flip your LCD */
61 /* define this if you can invert the colours on your LCD */
62 /* todo #define HAVE_LCD_INVERT */
64 /* put the lcd frame buffer in IRAM */
65 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */
67 /* define this if you have a bitmap LCD display */
68 #define HAVE_LCD_BITMAP
70 /* define this if you have a colour LCD */
71 #define HAVE_LCD_COLOR
73 /* define this if you want album art for this target */
76 /* define this to enable bitmap scaling */
77 #define HAVE_BMP_SCALING
79 /* define this to enable JPEG decoding */
82 /* define this if you have access to the quickscreen */
83 #define HAVE_QUICKSCREEN
85 /* define this if you have access to the pitchscreen */
86 #define HAVE_PITCHSCREEN
88 /* define this if you would like tagcache to build on this target */
91 #define CONFIG_KEYPAD SAMSUNG_YH_PAD
93 /* Define this if you do software codec */
94 #define CONFIG_CODEC SWCODEC
96 /* define this if you have a real-time clock */
98 #define CONFIG_RTC RTC_E8564
100 //#define HAVE_RTC_ALARM
103 /* define this if you have a disk storage, i.e. something
104 that needs spinups and can cause skips when shaked */
105 #define HAVE_DISK_STORAGE
107 /* define this if you use an ATA controller */
108 #define CONFIG_STORAGE STORAGE_ATA
110 /*define this if the ATA controller and method of USB access support LBA48 */
113 /* We're able to shut off power to the HDD */
114 /* todo #define HAVE_ATA_POWER_OFF */
116 /* Define this if you have a software controlled poweroff */
117 #define HAVE_SW_POWEROFF
119 /* The number of bytes reserved for loadable codecs */
120 #define CODEC_SIZE 0x100000
122 /* The number of bytes reserved for loadable plugins */
123 #define PLUGIN_BUFFER_SIZE 0x80000
125 /* Define this if you have the AK4537 audio codec */
128 /* AK4537 has no tone controls, so we use the software ones */
129 #define HAVE_SW_TONE_CONTROLS
131 #define AB_REPEAT_ENABLE
133 #define BATTERY_CAPACITY_DEFAULT 900 /* default battery capacity */
134 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
135 #define BATTERY_CAPACITY_MAX 1150 /* max. capacity selectable */
136 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
137 #define BATTERY_TYPES_COUNT 1 /* only one type */
139 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
141 /* Hardware controlled charging */
142 #define CONFIG_CHARGING CHARGING_SIMPLE
144 /* define this if the unit can be powered or charged via USB */
145 #define HAVE_USB_POWER
147 /* Define this if you have a PortalPlayer PP5020 */
148 #define CONFIG_CPU PP5020
150 /* Define this if you want to use the PP5020 i2c interface */
151 #define CONFIG_I2C I2C_PP5020
153 /* define this if the hardware can be powered off while charging */
154 #define HAVE_POWEROFF_WHILE_CHARGING
156 /* The start address index for ROM builds */
157 #define ROM_START 0x00000000
159 /* The size of the flash ROM */
160 #define FLASH_SIZE 0x100000
162 /* Define this to the CPU frequency */
163 #define CPU_FREQ 75000000
166 #define CONFIG_USBOTG USBOTG_ARC
168 /* enable these for the experimental usb stack */
169 #define HAVE_USBSTACK
170 #define USE_ROCKBOX_USB
172 #define USB_VENDOR_ID 0x04e8
173 #define USB_PRODUCT_ID 0x5024
175 /* Define this if you have adjustable CPU frequency */
176 #define HAVE_ADJUSTABLE_CPU_FREQ
179 #define BOOTFILE_EXT "mi4"
180 #define BOOTFILE "rockbox." BOOTFILE_EXT
181 #define BOOTDIR "/.rockbox"
183 /* Offset ( in the firmware file's header ) to the file CRC */
184 #define FIRMWARE_OFFSET_FILE_CRC 0x00
186 /* Offset ( in the firmware file's header ) to the real data */
187 #define FIRMWARE_OFFSET_FILE_DATA 0x00
189 #define ICODE_ATTR_TREMOR_NOT_MDCT
192 /* DMA is used only for reading on PP502x because although reads are ~8x faster
193 * writes appear to be ~25% slower.
195 /* Switched off due to reported instabilities. #define HAVE_ATA_DMA */
197 /* Define this if a programmable hotkey is mapped */