Karl Kurbjun | bebbac8 | 2007-09-22 15:43:38 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
| 10 | * Copyright (C) 2007 by Karl Kurbjun |
| 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 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. |
Karl Kurbjun | bebbac8 | 2007-09-22 15:43:38 +0000 | [diff] [blame] | 16 | * |
| 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 18 | * KIND, either express or implied. |
| 19 | * |
| 20 | ****************************************************************************/ |
Karl Kurbjun | 4f41af3 | 2007-10-21 23:20:17 +0000 | [diff] [blame] | 21 | |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 22 | /* |
Karl Kurbjun | 4f41af3 | 2007-10-21 23:20:17 +0000 | [diff] [blame] | 23 | * This config file is for the M:Robe 500i |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 24 | */ |
| 25 | #define TARGET_TREE /* this target is using the target tree system */ |
| 26 | |
| 27 | #define CONFIG_SDRAM_START 0x00900000 |
| 28 | |
| 29 | #define OLYMPUS_MROBE_500 1 |
| 30 | |
| 31 | /* For Rolo and boot loader */ |
Karl Kurbjun | 3f9a9a1 | 2007-09-30 17:12:20 +0000 | [diff] [blame] | 32 | #define MODEL_NUMBER 22 |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 33 | |
Marcoen Hirschberg | be40427 | 2008-03-27 10:58:36 +0000 | [diff] [blame] | 34 | /* define this if you use an ATA controller */ |
| 35 | #define HAVE_ATA |
| 36 | |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 37 | /* define this if you have a bitmap LCD display */ |
| 38 | #define HAVE_LCD_BITMAP |
| 39 | |
| 40 | /* define this if you have a colour LCD */ |
| 41 | #define HAVE_LCD_COLOR |
| 42 | |
| 43 | /* define this if you have access to the quickscreen */ |
| 44 | #define HAVE_QUICKSCREEN |
| 45 | |
| 46 | /* define this if you have access to the pitchscreen */ |
| 47 | #define HAVE_PITCHSCREEN |
| 48 | |
| 49 | /* define this if you would like tagcache to build on this target */ |
| 50 | #define HAVE_TAGCACHE |
| 51 | |
| 52 | /* define this if the target has volume keys which can be used in the lists */ |
| 53 | #define HAVE_VOLUME_IN_LIST |
| 54 | |
| 55 | /* LCD dimensions */ |
Karl Kurbjun | fdbc01c | 2007-10-21 23:12:17 +0000 | [diff] [blame] | 56 | #define CONFIG_LCD LCD_MROBE500 |
Jonathan Gordon | 28dfb54 | 2007-11-11 04:48:33 +0000 | [diff] [blame] | 57 | |
| 58 | /* choose the lcd orientation. both work */ |
Jonathan Gordon | c741ecc | 2008-04-29 01:09:39 +0000 | [diff] [blame] | 59 | /* #define CONFIG_ORIENTATION SCREEN_PORTRAIT */ |
Karl Kurbjun | d3d0b26 | 2007-11-15 06:44:35 +0000 | [diff] [blame] | 60 | #define CONFIG_ORIENTATION SCREEN_LANDSCAPE |
Jonathan Gordon | 28dfb54 | 2007-11-11 04:48:33 +0000 | [diff] [blame] | 61 | |
Jonathan Gordon | c741ecc | 2008-04-29 01:09:39 +0000 | [diff] [blame] | 62 | #if CONFIG_ORIENTATION == SCREEN_PORTRAIT |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 63 | #define LCD_WIDTH 480 |
| 64 | #define LCD_HEIGHT 640 |
Karl Kurbjun | fdbc01c | 2007-10-21 23:12:17 +0000 | [diff] [blame] | 65 | #else |
| 66 | #define LCD_WIDTH 640 |
| 67 | #define LCD_HEIGHT 480 |
| 68 | #endif |
| 69 | |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 70 | #define LCD_DEPTH 16 /* 65k colours */ |
| 71 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ |
| 72 | |
| 73 | /* Define this if your LCD can be enabled/disabled */ |
| 74 | //#define HAVE_LCD_ENABLE |
| 75 | |
Karl Kurbjun | fdbc01c | 2007-10-21 23:12:17 +0000 | [diff] [blame] | 76 | /* remote LCD */ |
| 77 | //#define HAVE_REMOTE_LCD |
| 78 | #define LCD_REMOTE_WIDTH 79 |
| 79 | #define LCD_REMOTE_HEIGHT 16 |
| 80 | #define LCD_REMOTE_DEPTH 1 |
| 81 | |
| 82 | #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING |
| 83 | |
| 84 | #define MIN_REMOTE_CONTRAST_SETTING 0 |
| 85 | #define MAX_REMOTE_CONTRAST_SETTING 15 |
| 86 | #define DEFAULT_REMOTE_CONTRAST_SETTING 7 |
| 87 | |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 88 | #define CONFIG_KEYPAD MROBE500_PAD |
Jonathan Gordon | 12d1ff9 | 2007-10-22 07:01:59 +0000 | [diff] [blame] | 89 | #define HAVE_TOUCHPAD |
| 90 | #define HAVE_BUTTON_DATA |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 91 | |
| 92 | /* Define this if you do software codec */ |
| 93 | #define CONFIG_CODEC SWCODEC |
| 94 | |
| 95 | /* define this if you have a real-time clock */ |
Jonathan Gordon | dbff373 | 2007-10-23 14:22:44 +0000 | [diff] [blame] | 96 | #define CONFIG_RTC RTC_RX5X348AB |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 97 | |
| 98 | /* Define this for LCD backlight available */ |
| 99 | #define HAVE_BACKLIGHT |
| 100 | |
| 101 | #define HAVE_BACKLIGHT_BRIGHTNESS |
| 102 | |
| 103 | /* Main LCD backlight brightness range and defaults */ |
Catalin Patulea | f57ea9a | 2007-11-02 06:13:43 +0000 | [diff] [blame] | 104 | #define MIN_BRIGHTNESS_SETTING 0 |
| 105 | #define MAX_BRIGHTNESS_SETTING 127 |
| 106 | #define DEFAULT_BRIGHTNESS_SETTING 85 /* OF "full brightness" */ |
| 107 | #define DEFAULT_DIMNESS_SETTING 22 /* OF "most dim" */ |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 108 | |
| 109 | /* Define this if you have a software controlled poweroff */ |
| 110 | #define HAVE_SW_POWEROFF |
| 111 | |
| 112 | /* The number of bytes reserved for loadable codecs */ |
| 113 | #define CODEC_SIZE 0x80000 |
| 114 | |
Catalin Patulea | f57ea9a | 2007-11-02 06:13:43 +0000 | [diff] [blame] | 115 | /* The number of bytes reserved for loadable plugins */ |
Karl Kurbjun | 38548c7 | 2007-11-02 05:21:34 +0000 | [diff] [blame] | 116 | #define PLUGIN_BUFFER_SIZE 0x100000 |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 117 | |
| 118 | /* Define this if you have the WM8975 audio codec */ |
| 119 | //#define HAVE_WM8751 |
| 120 | |
| 121 | /* Define this if you want to use the adaptive bass capibility of the 8751 */ |
| 122 | /* #define USE_ADAPTIVE_BASS */ |
| 123 | |
| 124 | #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \ |
| 125 | SAMPR_CAP_11) |
| 126 | |
| 127 | #define BATTERY_CAPACITY_DEFAULT 1100 /* default battery capacity */ |
| 128 | #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ |
| 129 | #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */ |
| 130 | #define BATTERY_CAPACITY_INC 100 /* capacity increment */ |
| 131 | #define BATTERY_TYPES_COUNT 1 /* only one type */ |
| 132 | |
| 133 | /* Hardware controlled charging with monitoring */ |
| 134 | #define CONFIG_CHARGING CHARGING_MONITOR |
| 135 | |
Jonathan Gordon | 17f7adb | 2008-04-28 02:19:23 +0000 | [diff] [blame] | 136 | |
| 137 | /* Define this if you have a Texas Instruments TSC2100 touch screen */ |
| 138 | #define HAVE_TSC2100 |
| 139 | |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 140 | #ifndef SIMULATOR |
| 141 | |
| 142 | /* Define this if you have a Motorola SCF5249 */ |
| 143 | #define CONFIG_CPU DM320 |
| 144 | |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 145 | /* Define this if you want to use coldfire's i2c interface */ |
| 146 | //#define CONFIG_I2C I2C_S3C2440 |
| 147 | |
| 148 | /* define this if the hardware can be powered off while charging */ |
| 149 | #define HAVE_POWEROFF_WHILE_CHARGING |
| 150 | |
| 151 | /* The size of the flash ROM */ |
| 152 | #define FLASH_SIZE 0x400000 |
| 153 | |
| 154 | /* Define this to the CPU frequency */ |
| 155 | #define CPU_FREQ 16934400 |
| 156 | |
| 157 | /* Define this if you have ATA power-off control */ |
| 158 | #define HAVE_ATA_POWER_OFF |
| 159 | |
| 160 | /* Virtual LED (icon) */ |
| 161 | #define CONFIG_LED LED_VIRTUAL |
| 162 | |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 163 | /* define this if the backlight can be set to a brightness */ |
Karl Kurbjun | 7b97fe2 | 2007-09-20 04:46:41 +0000 | [diff] [blame] | 164 | #define __BACKLIGHT_INIT |
| 165 | |
| 166 | /* Offset ( in the firmware file's header ) to the file CRC */ |
| 167 | #define FIRMWARE_OFFSET_FILE_CRC 0 |
| 168 | |
| 169 | /* Offset ( in the firmware file's header ) to the real data */ |
| 170 | #define FIRMWARE_OFFSET_FILE_DATA 8 |
| 171 | |
| 172 | /* Define this if you have adjustable CPU frequency */ |
| 173 | /* #define HAVE_ADJUSTABLE_CPU_FREQ */ |
| 174 | |
| 175 | #define BOOTFILE_EXT "mrobe500" |
| 176 | #define BOOTFILE "rockbox." BOOTFILE_EXT |
| 177 | #define BOOTDIR "/.rockbox" |
| 178 | |
| 179 | #endif |