Amaury Pouly | 2778e76 | 2013-10-26 13:20:24 +0200 | [diff] [blame] | 1 | /* |
| 2 | * This config file is for the Creative Zen |
| 3 | */ |
| 4 | #define IMX233_SUBTARGET 3700 |
| 5 | #define IMX233_PACKAGE IMX233_BGA169 |
| 6 | #define IMX233_PARTITIONS IMX233_CREATIVE |
| 7 | |
| 8 | /* For Rolo and boot loader */ |
| 9 | #define MODEL_NUMBER 90 |
| 10 | #define MODEL_NAME "Creative Zen" |
William Wilgus | 41869a6 | 2017-02-05 21:07:20 +0100 | [diff] [blame] | 11 | /* Define if boot data from bootloader has been enabled for the target */ |
| 12 | #define HAVE_BOOTDATA |
Amaury Pouly | 2778e76 | 2013-10-26 13:20:24 +0200 | [diff] [blame] | 13 | |
| 14 | #define HW_SAMPR_CAPS SAMPR_CAP_ALL |
| 15 | |
| 16 | /* define this if you have recording possibility */ |
| 17 | #define HAVE_RECORDING |
| 18 | |
| 19 | #define REC_SAMPR_CAPS SAMPR_CAP_ALL |
| 20 | |
| 21 | /* Default recording levels */ |
| 22 | #define DEFAULT_REC_MIC_GAIN 23 |
| 23 | #define DEFAULT_REC_LEFT_GAIN 23 |
| 24 | #define DEFAULT_REC_RIGHT_GAIN 23 |
| 25 | |
| 26 | /* Define bitmask of input sources - recordable bitmask can be defined |
| 27 | explicitly if different */ |
| 28 | #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) |
| 29 | |
| 30 | /* define this if you have a bitmap LCD display */ |
| 31 | #define HAVE_LCD_BITMAP |
| 32 | /* define this if you have a colour LCD */ |
| 33 | #define HAVE_LCD_COLOR |
| 34 | |
| 35 | #ifndef BOOTLOADER |
| 36 | #define HAVE_ALBUMART |
| 37 | |
| 38 | /* define this to enable bitmap scaling */ |
| 39 | #define HAVE_BMP_SCALING |
| 40 | |
| 41 | /* define this to enable JPEG decoding */ |
| 42 | #define HAVE_JPEG |
| 43 | |
| 44 | /* Define this if a programmable hotkey is mapped */ |
| 45 | #define HAVE_HOTKEY |
| 46 | |
| 47 | /* define this if you have access to the quickscreen */ |
| 48 | #define HAVE_QUICKSCREEN |
| 49 | |
| 50 | |
| 51 | /* define this if you would like tagcache to build on this target */ |
| 52 | #define HAVE_TAGCACHE |
| 53 | |
Amaury Pouly | 2778e76 | 2013-10-26 13:20:24 +0200 | [diff] [blame] | 54 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE |
| 55 | should be defined as well. |
| 56 | #define HAVE_LCD_SLEEP |
| 57 | #define HAVE_LCD_SLEEP_SETTING |
| 58 | */ |
| 59 | |
| 60 | /* define this if you can flip your LCD |
| 61 | #define HAVE_LCD_FLIP |
| 62 | */ |
| 63 | |
| 64 | /* define this if you can invert the colours on your LCD |
| 65 | #define HAVE_LCD_INVERT |
| 66 | */ |
| 67 | |
| 68 | /* define this if you have a real-time clock */ |
| 69 | #define CONFIG_RTC RTC_IMX233 |
| 70 | |
| 71 | /* define this if you have a real-time clock with alarm facilities */ |
| 72 | #define HAVE_RTC_ALARM |
| 73 | |
| 74 | #endif /* !BOOTLOADER */ |
| 75 | |
Amaury Pouly | e1003b1 | 2014-02-10 22:29:31 +0100 | [diff] [blame] | 76 | /* define this if you have LCD enable function */ |
| 77 | #define HAVE_LCD_ENABLE |
| 78 | |
Amaury Pouly | 2778e76 | 2013-10-26 13:20:24 +0200 | [diff] [blame] | 79 | /* define this if you have an i.MX23 codec */ |
| 80 | #define HAVE_IMX233_CODEC |
| 81 | |
| 82 | #define CONFIG_TUNER TEA5760 |
| 83 | |
| 84 | /* There is no hardware tone control */ |
| 85 | #define HAVE_SW_TONE_CONTROLS |
| 86 | |
| 87 | #define CONFIG_KEYPAD CREATIVE_ZEN_PAD |
| 88 | |
| 89 | /* Define this to enable morse code input */ |
| 90 | #define HAVE_MORSE_INPUT |
| 91 | |
| 92 | /* Define this if you do software codec */ |
| 93 | #define CONFIG_CODEC SWCODEC |
| 94 | |
| 95 | /* LCD dimensions */ |
| 96 | #define LCD_WIDTH 320 |
| 97 | #define LCD_HEIGHT 240 |
Thomas Martitz | 6252423 | 2014-01-23 08:23:34 +0100 | [diff] [blame] | 98 | /* sqrt(320^2 + 240^2) / 2.5 = 160.0 */ |
| 99 | #define LCD_DPI 160 |
Amaury Pouly | d9d2092 | 2014-06-25 09:22:19 +0200 | [diff] [blame] | 100 | #define LCD_DEPTH 24 /* 16M colours */ |
| 101 | #define LCD_PIXELFORMAT RGB888 /* rgb888 */ |
Amaury Pouly | 2778e76 | 2013-10-26 13:20:24 +0200 | [diff] [blame] | 102 | |
| 103 | /* Define this if you have a software controlled poweroff */ |
| 104 | #define HAVE_SW_POWEROFF |
| 105 | |
| 106 | /* Some Sansa Fuzes seem to be FAT16 formatted */ |
| 107 | #define HAVE_FAT16SUPPORT |
| 108 | |
| 109 | /* The number of bytes reserved for loadable codecs */ |
| 110 | #define CODEC_SIZE 0x100000 |
| 111 | |
| 112 | /* The number of bytes reserved for loadable plugins */ |
Amaury Pouly | e08331e | 2014-07-17 10:40:17 +0200 | [diff] [blame] | 113 | #define PLUGIN_BUFFER_SIZE 0x100000 |
Amaury Pouly | 2778e76 | 2013-10-26 13:20:24 +0200 | [diff] [blame] | 114 | |
| 115 | #define AB_REPEAT_ENABLE |
| 116 | |
| 117 | /* Define this for LCD backlight available */ |
| 118 | #define HAVE_BACKLIGHT |
| 119 | #define HAVE_BACKLIGHT_BRIGHTNESS |
| 120 | |
| 121 | /* Main LCD backlight brightness range and defaults */ |
| 122 | #define MIN_BRIGHTNESS_SETTING 0 |
| 123 | #define MAX_BRIGHTNESS_SETTING 100 |
| 124 | #define DEFAULT_BRIGHTNESS_SETTING 50 |
| 125 | |
| 126 | /* Which backlight fading type? */ |
| 127 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING |
| 128 | |
| 129 | /* define this if you have a flash memory storage */ |
| 130 | #define HAVE_FLASH_STORAGE |
| 131 | |
| 132 | /* define this if the flash memory uses the SecureDigital Memory Card protocol */ |
| 133 | #define CONFIG_STORAGE STORAGE_SD |
| 134 | #define NUM_DRIVES 2 |
| 135 | #define HAVE_MULTIDRIVE |
Amaury Pouly | 2778e76 | 2013-10-26 13:20:24 +0200 | [diff] [blame] | 136 | #define HAVE_HOTSWAP |
| 137 | |
| 138 | /* todo */ |
| 139 | #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */ |
| 140 | #define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */ |
| 141 | #define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */ |
| 142 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ |
| 143 | #define BATTERY_TYPES_COUNT 1 /* only one type */ |
| 144 | |
| 145 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE |
| 146 | |
| 147 | /* Charging implemented in a target-specific algorithm */ |
| 148 | #define CONFIG_CHARGING CHARGING_TARGET |
| 149 | |
| 150 | /* define this if the unit can be powered or charged via USB */ |
| 151 | #define HAVE_USB_POWER |
| 152 | |
| 153 | /* Define this if you have an IMX233*/ |
| 154 | #define CONFIG_CPU IMX233 |
| 155 | |
| 156 | /* Define this if you want to use the IMX233 i2c interface */ |
| 157 | #define CONFIG_I2C I2C_IMX233 |
| 158 | |
| 159 | /* define current usage levels (based on battery bench) */ |
| 160 | #define CURRENT_NORMAL 35 |
| 161 | #define CURRENT_BACKLIGHT 30 |
| 162 | #define CURRENT_RECORD CURRENT_NORMAL |
| 163 | |
| 164 | /* maximum charging current */ |
| 165 | #define CURRENT_MAX_CHG 200 |
| 166 | |
| 167 | /* Define this to the CPU frequency */ |
| 168 | #define CPU_FREQ 454000000 |
| 169 | |
| 170 | /* Type of LCD */ |
| 171 | #define CONFIG_LCD LCD_CREATIVEZEN |
| 172 | |
| 173 | /* Offset ( in the firmware file's header ) to the file CRC and data. These are |
| 174 | only used when loading the old format rockbox.e200 file */ |
| 175 | #define FIRMWARE_OFFSET_FILE_CRC 0x0 |
| 176 | #define FIRMWARE_OFFSET_FILE_DATA 0x8 |
| 177 | |
| 178 | /* USB On-the-go */ |
| 179 | #define CONFIG_USBOTG USBOTG_ARC |
| 180 | |
| 181 | /* enable these for the experimental usb stack */ |
| 182 | #define HAVE_USBSTACK |
| 183 | //#define USB_HANDLED_BY_OF |
Amaury Pouly | 2778e76 | 2013-10-26 13:20:24 +0200 | [diff] [blame] | 184 | #define USB_VENDOR_ID 0x041e |
| 185 | #define USB_PRODUCT_ID 0x4162 |
| 186 | #define HAVE_USB_HID_MOUSE |
| 187 | #define HAVE_BOOTLOADER_USB_MODE |
| 188 | |
| 189 | /* Define this if you have adjustable CPU frequency */ |
Amaury Pouly | 88799b3 | 2014-03-08 18:49:58 +0100 | [diff] [blame] | 190 | #define HAVE_ADJUSTABLE_CPU_FREQ |
Amaury Pouly | 2778e76 | 2013-10-26 13:20:24 +0200 | [diff] [blame] | 191 | |
| 192 | #define BOOTFILE_EXT "creative" |
| 193 | #define BOOTFILE "rockbox." BOOTFILE_EXT |
| 194 | #define BOOTDIR "/.rockbox" |
| 195 | |
| 196 | #define INCLUDE_TIMEOUT_API |
| 197 | |
| 198 | |