1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
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
47 #define LCD_HEIGHT 128
48 /* The LCD used is just rgb444, 64 colours. We do a bit conversion on LCD
50 #define LCD_DEPTH 16 /* 65536 colours */
51 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
55 #define CONFIG_KEYPAD LYRE_PROTO1_PAD
57 /* Define this if you do software codec */
58 #define CONFIG_CODEC SWCODEC
60 /* The number of bytes reserved for loadable codecs */
61 #define CODEC_SIZE 0x100000
63 /* The number of bytes reserved for loadable plugins */
64 #define PLUGIN_BUFFER_SIZE 0x100000
66 /* Lyre prototype 1 do not use I2C, just SPI */
67 #define CONFIG_I2C I2C_NONE
69 /* Define this if you have the TLV320 audio codec -> controlled by the DSP */
72 /* TLV320 has no tone controls, so we use the software ones */
73 #define HAVE_SW_TONE_CONTROLS
75 #define BATTERY_CAPACITY_DEFAULT 1100 /* default battery capacity */
76 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
77 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
78 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
79 #define BATTERY_TYPES_COUNT 1 /* only one type */
83 #define CONFIG_CPU AT91SAM9260
85 /* Define this to the CPU frequency */
86 #define CPU_FREQ 198656000
87 #define MCK_FREQ 99328000
88 #define SLOW_CLOCK 32768
90 /* Offset ( in the firmware file's header ) to the file CRC */
91 #define FIRMWARE_OFFSET_FILE_CRC 0
93 /* Offset ( in the firmware file's header ) to the real data */
94 #define FIRMWARE_OFFSET_FILE_DATA 8
96 #define BOOTFILE_EXT "lyre_proto1"
97 #define BOOTFILE "rockbox." BOOTFILE_EXT
98 #define BOOTDIR "/.rockbox"