Remove the calls to backlight_lcd_sleep_countdown from target specific code and move...
[kugel-rb.git] / firmware / export / config-cowond2.h
blob85e46f9b308a1c0c8cd27aefeca2e8ebe91d41eb
1 /*
2 * This config file is for the Cowon D2
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 24
9 #define MODEL_NAME "Cowon D2"
11 #if 0
12 #define HAVE_USBSTACK
13 #define USE_ROCKBOX_USB
14 #define USB_VENDOR_ID 0x0e21
15 #define USB_PRODUCT_ID 0x0800
16 #endif
19 /* Produce a dual-boot bootloader.bin for mktccboot */
20 #define TCCBOOT
22 /* define this if you have recording possibility */
23 //#define HAVE_RECORDING
25 /* Define bitmask of input sources - recordable bitmask can be defined
26 explicitly if different */
27 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
29 /* define this if you have a bitmap LCD display */
30 #define HAVE_LCD_BITMAP
32 /* define this if you have a colour LCD */
33 #define HAVE_LCD_COLOR
35 /* define this if you can flip your LCD */
36 /* #define HAVE_LCD_FLIP */
38 /* define this if you can invert the colours on your LCD */
39 /* #define HAVE_LCD_INVERT */
41 /* define this if you want album art for this target */
42 #define HAVE_ALBUMART
44 /* define this if you have access to the quickscreen */
45 #define HAVE_QUICKSCREEN
46 /* define this if you have access to the pitchscreen */
47 #define HAVE_PITCHSCREEN
49 /* define this if you would like tagcache to build on this target */
50 //#define HAVE_TAGCACHE
52 /* FM Tuner */
53 #define CONFIG_TUNER LV24020LP
54 #define HAVE_TUNER_PWR_CTRL
55 #define HAVE_RADIO_REGION
57 /* define this if you have a flash memory storage */
58 #define HAVE_FLASH_STORAGE
60 #define CONFIG_STORAGE STORAGE_NAND
62 #define CONFIG_NAND NAND_TCC
64 /* Some (2Gb?) D2s seem to be FAT16 formatted */
65 #define HAVE_FAT16SUPPORT
67 /* LCD dimensions */
68 #define LCD_WIDTH 320
69 #define LCD_HEIGHT 240
70 #define LCD_DEPTH 16
71 #define LCD_PIXELFORMAT 565
73 /* define this if you have LCD enable function */
74 #define HAVE_LCD_ENABLE
76 /* define this to indicate your device's keypad */
77 #define CONFIG_KEYPAD COWOND2_PAD
78 #define HAVE_TOUCHSCREEN
79 #define HAVE_BUTTON_DATA
81 /* define this if you have a real-time clock */
82 #define CONFIG_RTC RTC_PCF50606
84 /* define this if you have RTC RAM available for settings */
85 //#define HAVE_RTC_RAM
87 /* Define this if you have a software controlled poweroff */
88 #define HAVE_SW_POWEROFF
90 /* Reduce Tremor's ICODE usage */
91 #define ICODE_ATTR_TREMOR_NOT_MDCT
93 /* The number of bytes reserved for loadable codecs */
94 #define CODEC_SIZE 0x100000
96 /* The number of bytes reserved for loadable plugins */
97 #define PLUGIN_BUFFER_SIZE 0x80000
99 #define AB_REPEAT_ENABLE 1
101 /* Define this if you do software codec */
102 #define CONFIG_CODEC SWCODEC
104 /* The D2 uses a WM8985 codec */
105 #define HAVE_WM8985
107 /* Use WM8985 EQ1 & EQ5 as hardware tone controls */
108 /* #define HAVE_SW_TONE_CONTROLS */
110 /* Define this for LCD backlight available */
111 #define HAVE_BACKLIGHT
112 /* Enable LCD brightness control */
113 #define HAVE_BACKLIGHT_BRIGHTNESS
114 /* Which backlight fading type? */
115 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
117 /* Main LCD backlight brightness range and defaults */
118 #define MIN_BRIGHTNESS_SETTING 1
119 #define MAX_BRIGHTNESS_SETTING 14
120 #define DEFAULT_BRIGHTNESS_SETTING 8
122 #define CONFIG_I2C I2C_TCC780X
124 #define BATTERY_CAPACITY_DEFAULT 1600 /* default battery capacity */
125 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
126 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
127 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
128 #define BATTERY_TYPES_COUNT 1 /* only one type */
130 /* Hardware controlled charging */
131 #define CONFIG_CHARGING CHARGING_SIMPLE
133 #ifndef SIMULATOR
134 /* Define this if you have a TCC7801 */
135 #define CONFIG_CPU TCC7801
137 /* Define this if you have ATA power-off control */
138 #define HAVE_ATA_POWER_OFF
140 /* Define this to the CPU frequency */
141 #define CPU_FREQ 48000000
143 /* Define this if you have adjustable CPU frequency */
144 #define HAVE_ADJUSTABLE_CPU_FREQ
146 /* Offset ( in the firmware file's header ) to the file CRC */
147 #define FIRMWARE_OFFSET_FILE_CRC 0
149 /* Offset ( in the firmware file's header ) to the real data */
150 #define FIRMWARE_OFFSET_FILE_DATA 8
152 /* Software controlled LED */
153 #define CONFIG_LED LED_VIRTUAL
155 #define CONFIG_LCD LCD_COWOND2
157 #define BOOTFILE_EXT "d2"
158 #define BOOTFILE "rockbox." BOOTFILE_EXT
159 #define BOOTDIR "/.rockbox"
162 #endif /* SIMULATOR */