Straigten-out lcd sleeping on Gigabeat F/X. Add a service function to backlight.c...
[kugel-rb.git] / firmware / export / config-mrobe100.h
blob6aaa2b005a843705273cfcc35fe2fd8dd1aa2c6b
1 /*
2 * This config file is for the Olympus m:robe MR-100
3 */
5 #define TARGET_TREE
7 /* For Rolo and boot loader */
8 #define MODEL_NUMBER 23
9 #define MODEL_NAME "Olympus m:robe MR-100"
11 /* define this if you use an ATA controller */
12 #define HAVE_ATA
14 /* define this if you have a bitmap LCD display */
15 #define HAVE_LCD_BITMAP
17 /* define this if you have access to the quickscreen */
18 #define HAVE_QUICKSCREEN
20 /* define this if you have access to the pitchscreen */
21 #define HAVE_PITCHSCREEN
23 /* define this if you would like tagcache to build on this target */
24 #define HAVE_TAGCACHE
26 /* LCD dimensions */
27 #define LCD_WIDTH 160
28 #define LCD_HEIGHT 128
29 #define LCD_DEPTH 1
30 #define LCD_PIXELFORMAT VERTICAL_PACKING
32 /* define this if you can flip your LCD */
33 #define HAVE_LCD_FLIP
35 /* define this if you can invert the colours on your LCD */
36 #define HAVE_LCD_INVERT
38 /*#define IRAM_LCDFRAMEBUFFER IDATA_ATTR */ /* put the lcd frame buffer in IRAM */
40 #define CONFIG_KEYPAD MROBE100_PAD
42 /* Define this if you do software codec */
43 #define CONFIG_CODEC SWCODEC
45 /* define this if you have a real-time clock */
46 #ifndef BOOTLOADER
47 #define CONFIG_RTC RTC_MR100
48 #endif
50 /* Define this if you have a software controlled poweroff */
51 #define HAVE_SW_POWEROFF
53 /* The number of bytes reserved for loadable codecs */
54 #define CODEC_SIZE 0x80000
56 /* The number of bytes reserved for loadable plugins */
57 #define PLUGIN_BUFFER_SIZE 0x80000
59 /* Wolfsom audio codec */
60 #define HAVE_WM8751
62 #define AB_REPEAT_ENABLE 1
64 /* Define this for LCD backlight available */
65 #define HAVE_BACKLIGHT
67 /* We can fade the backlight by using PWM */
68 #define HAVE_BACKLIGHT_PWM_FADING
70 /* Main LCD backlight brightness range and defaults */
71 #define MIN_BRIGHTNESS_SETTING 1
72 #define MAX_BRIGHTNESS_SETTING 12
73 #define DEFAULT_BRIGHTNESS_SETTING 6
75 /* define this if you have a light associated with the buttons */
76 #define HAVE_BUTTON_LIGHT
78 #define HAVE_BUTTONLIGHT_BRIGHTNESS
80 #define BATTERY_CAPACITY_DEFAULT 720 /* default battery capacity */
82 #ifndef SIMULATOR
84 /* Define this if you have a PortalPlayer PP5020 */
85 #define CONFIG_CPU PP5020
87 /* Define this if you want to use the PP5020 i2c interface */
88 #define CONFIG_I2C I2C_PP5020
90 /* Type of mobile power */
91 #define CONFIG_BATTERY BATT_LIION750
92 #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
93 #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
94 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
95 #define BATTERY_TYPES_COUNT 1 /* only one type */
97 /* Hardware controlled charging */
98 #define CONFIG_CHARGING CHARGING_SIMPLE
100 /* define this if the hardware can be powered off while charging */
101 #define HAVE_POWEROFF_WHILE_CHARGING
103 /* The start address index for ROM builds */
104 #define ROM_START 0x00000000
106 /* The size of the flash ROM */
107 #define FLASH_SIZE 0x100000
109 /* Define this to the CPU frequency */
110 #define CPU_FREQ 75000000
112 /* Type of LCD */
113 #define CONFIG_LCD LCD_MROBE100
115 /* Define this if your LCD can set contrast */
116 #define HAVE_LCD_CONTRAST
118 #define MIN_CONTRAST_SETTING 0
119 #define MAX_CONTRAST_SETTING 40
120 #define DEFAULT_CONTRAST_SETTING 20
122 /* Define this if your LCD can be enabled/disabled */
123 /* TODO: #define HAVE_LCD_ENABLE */
125 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
126 * should be defined as well.
127 * We can currently put the lcd to sleep but it won't wake up properly */
128 /*TODO: #define HAVE_LCD_SLEEP*/
129 /*TODO: #define HAVE_LCD_SLEEP_SETTING <= optional */
131 /* We're able to shut off power to the HDD */
132 #define HAVE_ATA_POWER_OFF
134 /* #define USB_IPODSTYLE */
136 /* USB On-the-go */
137 #define CONFIG_USBOTG USBOTG_ARC
139 /* define this if the unit can be powered or charged via USB */
140 #define HAVE_USB_POWER
142 /* enable these for the experimental usb stack */
143 #define HAVE_USBSTACK
144 #define USB_VENDOR_ID 0x07B4
145 #define USB_PRODUCT_ID 0x0280
147 /* Virtual LED (icon) */
148 #define CONFIG_LED LED_VIRTUAL
150 /* Define this if you have adjustable CPU frequency */
151 #define HAVE_ADJUSTABLE_CPU_FREQ
153 /* Define this if you can detect headphones */
154 #define HAVE_HEADPHONE_DETECTION
156 #define MI4_FORMAT
157 #define BOOTFILE_EXT "mi4"
158 #define BOOTFILE "rockbox." BOOTFILE_EXT
159 #define BOOTDIR "/.rockbox"
161 /* Offset ( in the firmware file's header ) to the file CRC and data.
162 Not used for the mrobe 100, since it boots an mi4 file, but needed
163 for compatibility. */
164 #define FIRMWARE_OFFSET_FILE_CRC 0x0
165 #define FIRMWARE_OFFSET_FILE_DATA 0x0
167 #define ICODE_ATTR_TREMOR_NOT_MDCT
169 #endif