Prepare new maemo release
[maemo-rb.git] / firmware / export / config / mini2440.h
blobd05e76adbac9187897ecf92a736c423311c12f16
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2009 by Bob Cousins, Lyre Project
10 * Copyright (C) 2009 by Jorge Pinto, Lyre Project
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
23 * This config file is for the Mini2440
26 /* For Rolo and boot loader */
27 #define MODEL_NUMBER 131
28 #define MODEL_NAME "Mini2440"
30 /***************************************************************************/
31 /* Hardware Config */
33 /* TODO: ??? */
34 #define CONFIG_SDRAM_START 0x30000000
36 /* Flash storage */
37 #define HAVE_FLASH_STORAGE
38 /* define the storage type */
39 #define CONFIG_STORAGE STORAGE_SD
41 #define HAVE_MULTIDRIVE
42 #define NUM_DRIVES 1 // no access to NAND yet
43 #define HAVE_HOTSWAP
44 #define HAVE_HOTSWAP_STORAGE_AS_MAIN
45 #define INCLUDE_TIMEOUT_API
47 /* Disk storage */
48 /* define this if you have a disk storage, i.e. something
49 that needs spinups and can cause skips when shaked */
50 /* #define HAVE_DISK_STORAGE */
52 /* Display */
53 /* define this if you have a bitmap LCD display */
54 #define HAVE_LCD_BITMAP
55 /* define this if you have a colour LCD */
56 #define HAVE_LCD_COLOR
57 /* The LCD is assumed to be 3.5" TFT touch screen, others are possible */
58 #define CONFIG_LCD LCD_MINI2440
59 /* LCD dimensions */
60 #define LCD_WIDTH 240
61 #define LCD_HEIGHT 320
62 #define LCD_DPI 114 /* 400 pixels diagonally / 3.5 inch */
63 /* The LCD is configured for RGB565 */
64 #define LCD_DEPTH 16 /* 65536 colours */
65 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
66 /* Define this for LCD backlight available */
67 /* The Mini2440 supports backlight brightness depending on LCD type */
68 /* But the 3.5" LCD touch screen does not support brightness*/
69 #define HAVE_BACKLIGHT
70 #define HAVE_BACKLIGHT_BRIGHTNESS
71 /* Main LCD backlight brightness range and defaults */
72 #define MIN_BRIGHTNESS_SETTING 1 /* 0.5 mA */
73 #define MAX_BRIGHTNESS_SETTING 12 /* 32 mA */
74 #define DEFAULT_BRIGHTNESS_SETTING 10 /* 16 mA */
76 /* Keypad */
77 #define CONFIG_KEYPAD MINI2440_PAD
78 #define HAVE_TOUCHSCREEN
79 #define HAVE_BUTTON_DATA
81 /* I2C */
82 /* We do not use currently use hardware I2C, but does not build without */
83 #define CONFIG_I2C I2C_S3C2440
85 /* Define DAC/Codec */
86 #define HAVE_UDA1341
88 #define HW_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
90 /* Battery */
91 #define BATTERY_CAPACITY_DEFAULT 1100 /* default battery capacity */
92 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
93 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
94 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
95 #define BATTERY_TYPES_COUNT 1 /* only one type */
97 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
101 /***************************************************************************/
102 /* Application Config */
104 #define HAVE_ALBUMART
105 /* define this to enable bitmap scaling */
106 #define HAVE_BMP_SCALING
107 /* define this to enable JPEG decoding */
108 #define HAVE_JPEG
110 #define HAVE_QUICKSCREEN
112 /* define this if you have a real-time clock */
113 #define CONFIG_RTC RTC_S3C2440
115 /* Define this if you do software codec */
116 #define CONFIG_CODEC SWCODEC
118 /* The number of bytes reserved for loadable codecs */
119 #define CODEC_SIZE 0x100000
121 /* The number of bytes reserved for loadable plugins */
122 #define PLUGIN_BUFFER_SIZE 0x100000
124 #define CONFIG_CPU S3C2440
126 /* Define this to the CPU frequency */
127 #define CPU_FREQ 406000000
128 #define MCK_FREQ (CPU_FREQ/4)
129 #define SLOW_CLOCK 32768
132 /* Define this if your LCD can set contrast */
133 #define HAVE_LCD_CONTRAST
134 #define MIN_CONTRAST_SETTING 0
135 #define MAX_CONTRAST_SETTING 63
136 #define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */
138 /* USB */
139 /* TODO:#define HAVE_USBSTACK */
140 #define USB_NONE
142 #define HAVE_SERIAL
144 /* Hardware controlled charging with monitoring */
145 #define CONFIG_CHARGING CHARGING_MONITOR
146 /*#define POWER_INPUT_BATTERY 0*/
148 /* Offset ( in the firmware file's header ) to the file CRC */
149 #define FIRMWARE_OFFSET_FILE_CRC 0
151 /* Offset ( in the firmware file's header ) to the real data */
152 #define FIRMWARE_OFFSET_FILE_DATA 8
154 #define BOOTFILE_EXT "mini2440"
155 #define BOOTFILE "rockbox." BOOTFILE_EXT
156 #define BOOTDIR "/.rockbox"
158 /* Define this if a programmable hotkey is mapped */
159 #define HAVE_HOTKEY