summaryrefslogtreecommitdiff
path: root/firmware/export/config-lyre_proto1.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config-lyre_proto1.h')
-rw-r--r--firmware/export/config-lyre_proto1.h106
1 files changed, 106 insertions, 0 deletions
diff --git a/firmware/export/config-lyre_proto1.h b/firmware/export/config-lyre_proto1.h
new file mode 100644
index 0000000000..d157f5be2d
--- /dev/null
+++ b/firmware/export/config-lyre_proto1.h
@@ -0,0 +1,106 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 *
10 * Copyright (C) 2009 by Jorge Pinto
11 *
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.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22/*
23 * This config file is for the Lyre prototype 1.
24 */
25#define TARGET_TREE /* this target is using the target tree system */
26
27#define CONFIG_SDRAM_START 0x20000000
28
29/* For Rolo and boot loader */
30#define MODEL_NUMBER 130
31
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
36
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 CONFIG_LCD LCD_LYRE_PROTO1
44
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 */
52
53#define HAVE_ALBUMART
54
55/* define this to enable bitmap scaling */
56#define HAVE_BMP_SCALING
57
58/* define this to enable JPEG decoding */
59#define HAVE_JPEG
60
61#define CONFIG_KEYPAD LYRE_PROTO1_PAD
62
63/* Define this if you do software codec */
64#define CONFIG_CODEC SWCODEC
65
66/* The number of bytes reserved for loadable codecs */
67#define CODEC_SIZE 0x100000
68
69/* The number of bytes reserved for loadable plugins */
70#define PLUGIN_BUFFER_SIZE 0x100000
71
72/* Lyre prototype 1 do not use I2C, just SPI */
73#define CONFIG_I2C I2C_NONE
74
75/* Define this if you have the TLV320 audio codec -> controlled by the DSP */
76#define HAVE_TLV320
77
78/* TLV320 has no tone controls, so we use the software ones */
79#define HAVE_SW_TONE_CONTROLS
80
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 */
86
87#ifndef SIMULATOR
88
89#define CONFIG_CPU AT91SAM9260
90
91/* Define this to the CPU frequency */
92#define CPU_FREQ 198656000
93#define MCK_FREQ 99328000
94#define SLOW_CLOCK 32768
95
96/* Offset ( in the firmware file's header ) to the file CRC */
97#define FIRMWARE_OFFSET_FILE_CRC 0
98
99/* Offset ( in the firmware file's header ) to the real data */
100#define FIRMWARE_OFFSET_FILE_DATA 8
101
102#define BOOTFILE_EXT "lyre_proto1"
103#define BOOTFILE "rockbox." BOOTFILE_EXT
104#define BOOTDIR "/.rockbox"
105
106#endif