Rockchip rk27xx port initial commit. This is still work in progress.
[kugel-rb.git] / firmware / export / config / rk27generic.h
blob5427d1fed40a19a413de423beccfaad7bee4cf42
1 /*
2 * This config file is for Rockchip rk27xx reference design
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 78
9 #define MODEL_NAME "Rockchip 27xx generic"
11 /* define this if you have recording possibility */
12 /* #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_LINEIN)
18 /* define the bitmask of hardware sample rates */
19 #define HW_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \
20 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
21 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
23 /* define the bitmask of recording sample rates */
24 #define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \
25 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
26 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
28 /* define this if you have a bitmap LCD display */
29 #define HAVE_LCD_BITMAP
31 /* define this if you can flip your LCD */
32 /* #define HAVE_LCD_FLIP */
34 /* define this if you have a colour LCD */
35 #define HAVE_LCD_COLOR
37 /* define this if you want album art for this target */
38 #define HAVE_ALBUMART
40 /* define this to enable bitmap scaling */
41 #define HAVE_BMP_SCALING
43 /* define this to enable JPEG decoding */
44 #define HAVE_JPEG
46 /* define this if you can invert the colours on your LCD */
47 /* #define HAVE_LCD_INVERT */
49 /* define this if you have access to the quickscreen */
50 #define HAVE_QUICKSCREEN
52 /* define this if you have access to the pitchscreen */
53 #define HAVE_PITCHSCREEN
55 /* define this if you would like tagcache to build on this target */
56 #define HAVE_TAGCACHE
58 /* define this if you have a flash memory storage */
59 #define HAVE_FLASH_STORAGE
61 #define CONFIG_STORAGE (STORAGE_SD | STORAGE_NAND)
63 #define CONFIG_NAND NAND_RK27XX
65 /* commented for now */
66 /* #define HAVE_HOTSWAP */
68 #define NUM_DRIVES 2
69 #define SECTOR_SIZE 512
71 /* for small(ish) SD cards */
72 #define HAVE_FAT16SUPPORT
74 /* LCD dimensions */
75 #define LCD_WIDTH 400
76 #define LCD_HEIGHT 240
77 #define LCD_DEPTH 16 /* pseudo 262.144 colors */
78 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
80 /* Define this if the LCD can shut down */
81 /* #define HAVE_LCD_SHUTDOWN */
83 /* Define this if your LCD can be enabled/disabled */
84 /* #define HAVE_LCD_ENABLE */
86 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
87 should be defined as well. */
88 #ifndef BOOTLOADER
89 /* TODO: #define HAVE_LCD_SLEEP */
90 /* TODO: #define HAVE_LCD_SLEEP_SETTING */
91 #endif
93 #define CONFIG_KEYPAD IPOD_4G_PAD
95 /* Define this to enable morse code input */
96 #define HAVE_MORSE_INPUT
98 /* Define this if you do software codec */
99 #define CONFIG_CODEC SWCODEC
101 /* define this if you have a real-time clock */
102 /* #define CONFIG_RTC RTC_NANO2G */
104 /* Define if the device can wake from an RTC alarm */
105 /* #define HAVE_RTC_ALARM */
107 #define CONFIG_LCD LCD_SPFD5420A
109 /* Define the type of audio codec */
110 /* #define HAVE_RK27XX_CODEC */
112 /* #define HAVE_PCM_DMA_ADDRESS */
114 /* Define this for LCD backlight available */
115 #define HAVE_BACKLIGHT
117 /* Doesn't work so comment it out for now */
118 /* #define HAVE_BACKLIGHT_BRIGHTNESS */
120 /* Define this if you have a software controlled poweroff */
121 #define HAVE_SW_POWEROFF
123 /* The number of bytes reserved for loadable codecs */
124 #define CODEC_SIZE 0x100000
126 /* The number of bytes reserved for loadable plugins */
127 #define PLUGIN_BUFFER_SIZE 0x80000
129 /* TODO: Figure out real values */
130 #define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
131 #define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
132 #define BATTERY_CAPACITY_MAX 500 /* max. capacity selectable */
133 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
134 #define BATTERY_TYPES_COUNT 1 /* only one type */
136 /* Hardware controlled charging with monitoring */
137 #define CONFIG_CHARGING CHARGING_MONITOR
139 /* define current usage levels */
140 /* TODO: #define CURRENT_NORMAL
141 * TODO: #define CURRENT_BACKLIGHT 23
144 /* define this if the unit can be powered or charged via USB */
145 #define HAVE_USB_POWER
147 /* Define this if your LCD can set contrast */
148 /* #define HAVE_LCD_CONTRAST */
150 /* The exact type of CPU */
151 #define CONFIG_CPU RK27XX
153 /* I2C interface */
154 #define CONFIG_I2C I2C_RK27XX
156 /* Define this to the CPU frequency */
157 #define CPU_FREQ 200000000
159 /* define this if the hardware can be powered off while charging */
160 #define HAVE_POWEROFF_WHILE_CHARGING
162 /* Offset ( in the firmware file's header ) to the file CRC */
163 #define FIRMWARE_OFFSET_FILE_CRC 0
165 /* Offset ( in the firmware file's header ) to the real data */
166 #define FIRMWARE_OFFSET_FILE_DATA 8
168 #define STORAGE_NEEDS_ALIGN
170 /* Define this if you have adjustable CPU frequency */
171 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
173 #define BOOTFILE_EXT "rk27"
174 #define BOOTFILE "rockbox." BOOTFILE_EXT
175 #define BOOTDIR "/.rockbox"