summaryrefslogtreecommitdiff
path: root/firmware/export/config-mini2440.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config-mini2440.h')
-rw-r--r--firmware/export/config-mini2440.h150
1 files changed, 150 insertions, 0 deletions
diff --git a/firmware/export/config-mini2440.h b/firmware/export/config-mini2440.h
new file mode 100644
index 0000000000..0db027c7a0
--- /dev/null
+++ b/firmware/export/config-mini2440.h
@@ -0,0 +1,150 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2009 by Bob Cousins, Lyre Project
10 * Copyright (C) 2009 by Jorge Pinto, Lyre Project
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 Mini2440
24 */
25#define TARGET_TREE /* this target is using the target tree system */
26
27/* For Rolo and boot loader */
28#define MODEL_NUMBER 131
29#define MODEL_NAME "Mini2440"
30
31/***************************************************************************/
32/* Hardware Config */
33
34/* TODO: ??? */
35#define CONFIG_SDRAM_START 0x30000000
36
37/* Flash storage */
38#define HAVE_FLASH_STORAGE
39/* define the storage type */
40#define CONFIG_STORAGE STORAGE_SD
41
42#define HAVE_MULTIDRIVE
43#define NUM_DRIVES 2
44#define HAVE_HOTSWAP
45
46/* Disk storage */
47/* define this if you have a disk storage, i.e. something
48 that needs spinups and can cause skips when shaked */
49/* #define HAVE_DISK_STORAGE */
50
51/* Display */
52/* define this if you have a bitmap LCD display */
53#define HAVE_LCD_BITMAP
54/* define this if you have a colour LCD */
55#define HAVE_LCD_COLOR
56/* The LCD is assumed to be 3.5" TFT touch screen, others are possible */
57#define CONFIG_LCD LCD_MINI2440
58/* LCD dimensions */
59#define LCD_WIDTH 240
60#define LCD_HEIGHT 320
61/* The LCD is configured for RGB565 */
62#define LCD_DEPTH 16 /* 65536 colours */
63#define LCD_PIXELFORMAT RGB565 /* rgb565 */
64/* Define this for LCD backlight available */
65/* The Mini2440 supports backight brightness depending on LCD type */
66/* But the 3.5" LCD touch screen does not support brightness*/
67#define HAVE_BACKLIGHT
68#define HAVE_BACKLIGHT_BRIGHTNESS
69
70/* Keypad */
71#define CONFIG_KEYPAD MINI2440_PAD
72
73/* I2C */
74/* Do not use I2C */
75#define CONFIG_I2C I2C_NONE
76
77/* Define DAC/Codec */
78/*#define HAVE_UDA1341*/
79#define HAVE_TLV320
80/* ... tone controls, use the software ones */
81#define HAVE_SW_TONE_CONTROLS
82
83/* Battery */
84#define BATTERY_CAPACITY_DEFAULT 1100 /* default battery capacity */
85#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
86#define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
87#define BATTERY_CAPACITY_INC 100 /* capacity increment */
88#define BATTERY_TYPES_COUNT 1 /* only one type */
89
90/* USB */
91/* TODO:#define HAVE_USBSTACK */
92
93/***************************************************************************/
94/* Application Config */
95
96#define HAVE_ALBUMART
97/* define this to enable bitmap scaling */
98#define HAVE_BMP_SCALING
99/* define this to enable JPEG decoding */
100#define HAVE_JPEG
101/* RMC TODO: what is this for?? */
102/* define this if you have access to the pitchscreen */
103#define HAVE_PITCHSCREEN
104
105/* Define this if you do software codec */
106#define CONFIG_CODEC SWCODEC
107
108/* The number of bytes reserved for loadable codecs */
109#define CODEC_SIZE 0x100000
110
111/* The number of bytes reserved for loadable plugins */
112#define PLUGIN_BUFFER_SIZE 0x100000
113
114
115/***************************************************************************/
116#ifndef SIMULATOR
117
118#define CONFIG_CPU S3C2440
119
120/* Define this to the CPU frequency */
121#define CPU_FREQ 405000000
122#define MCK_FREQ (CPU_FREQ/4)
123#define SLOW_CLOCK 32768
124
125/* Main LCD backlight brightness range and defaults */
126#define MIN_BRIGHTNESS_SETTING 1 /* 0.5 mA */
127#define MAX_BRIGHTNESS_SETTING 12 /* 32 mA */
128#define DEFAULT_BRIGHTNESS_SETTING 10 /* 16 mA */
129/* Define this if your LCD can set contrast */
130#define HAVE_LCD_CONTRAST
131#define MIN_CONTRAST_SETTING 0
132#define MAX_CONTRAST_SETTING 63
133#define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */
134
135/* Hardware controlled charging with monitoring */
136#define CONFIG_CHARGING CHARGING_MONITOR
137/*#define POWER_INPUT_BATTERY 0*/
138
139/* Offset ( in the firmware file's header ) to the file CRC */
140#define FIRMWARE_OFFSET_FILE_CRC 0
141
142/* Offset ( in the firmware file's header ) to the real data */
143#define FIRMWARE_OFFSET_FILE_DATA 8
144
145#define BOOTFILE_EXT "mini2440"
146#define BOOTFILE "rockbox." BOOTFILE_EXT
147#define BOOTDIR "/.rockbox"
148
149#endif
150/***************************************************************************/