Detect C200v2 variant by reading A7, use A5 or A7 to control backlight and buttonligh...
[kugel-rb.git] / firmware / export / config / lyreproto1.h
blob1413adc7e373bbebc7cadb8f4a63c7395ad1ec21
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
10 * Copyright (C) 2009 by Jorge Pinto
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 Lyre prototype 1.
25 #define TARGET_TREE /* this target is using the target tree system */
27 #define CONFIG_SDRAM_START 0x20000000
29 /* For Rolo and boot loader */
30 #define MODEL_NUMBER 130
32 /* define this if the flash memory uses the
33 * SecureDigital Memory Card protocol */
34 #define CONFIG_STORAGE STORAGE_SD
35 #define HAVE_FLASH_STORAGE
37 /* define this if you have a bitmap LCD display */
38 #define HAVE_LCD_BITMAP
40 /* define this if you have a colour LCD */
41 #define HAVE_LCD_COLOR
43 #define CONFIG_LCD LCD_LYRE_PROTO1
45 /* LCD dimensions */
46 #define LCD_WIDTH 128
47 #define LCD_HEIGHT 128
48 /* The LCD used is just rgb444, 64 colours. We do a bit conversion on LCD
49 * drivers. */
50 #define LCD_DEPTH 16 /* 65536 colours */
51 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
53 #define HAVE_ALBUMART
55 /* define this to enable bitmap scaling */
56 #define HAVE_BMP_SCALING
58 /* define this to enable JPEG decoding */
59 #define HAVE_JPEG
61 #define CONFIG_KEYPAD LYRE_PROTO1_PAD
63 /* Define this if you do software codec */
64 #define CONFIG_CODEC SWCODEC
66 /* The number of bytes reserved for loadable codecs */
67 #define CODEC_SIZE 0x100000
69 /* The number of bytes reserved for loadable plugins */
70 #define PLUGIN_BUFFER_SIZE 0x100000
72 /* Lyre prototype 1 do not use I2C, just SPI */
73 #define CONFIG_I2C I2C_NONE
75 /* Define this if you have the TLV320 audio codec -> controlled by the DSP */
76 #define HAVE_TLV320
78 /* TLV320 has no tone controls, so we use the software ones */
79 #define HAVE_SW_TONE_CONTROLS
81 #define BATTERY_CAPACITY_DEFAULT 1100 /* default battery capacity */
82 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
83 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
84 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
85 #define BATTERY_TYPES_COUNT 1 /* only one type */
87 #define CONFIG_CPU AT91SAM9260
89 /* Define this to the CPU frequency */
90 #define CPU_FREQ 198656000
91 #define MCK_FREQ 99328000
92 #define SLOW_CLOCK 32768
94 /* Offset ( in the firmware file's header ) to the file CRC */
95 #define FIRMWARE_OFFSET_FILE_CRC 0
97 /* Offset ( in the firmware file's header ) to the real data */
98 #define FIRMWARE_OFFSET_FILE_DATA 8
100 #define BOOTFILE_EXT "lyre_proto1"
101 #define BOOTFILE "rockbox." BOOTFILE_EXT
102 #define BOOTDIR "/.rockbox"
104 /* Define this if a programmable hotkey is mapped */
105 //#define HAVE_HOTKEY