2003-02-07 09:41:57 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 by Daniel Stenberg
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H__
|
|
|
|
#define __CONFIG_H__
|
|
|
|
|
2005-05-07 22:41:17 +00:00
|
|
|
#include "autoconf.h"
|
|
|
|
|
2004-09-28 22:13:26 +00:00
|
|
|
/* symbolic names for multiple choice configurations: */
|
|
|
|
|
2004-10-15 21:41:46 +00:00
|
|
|
/* CONFIG_TUNER (note these are combineable bit-flags) */
|
|
|
|
#define S1A0903X01 0x01 /* Samsung */
|
|
|
|
#define TEA5767 0x02 /* Philips */
|
2004-09-28 22:13:26 +00:00
|
|
|
|
|
|
|
/* CONFIG_HWCODEC */
|
|
|
|
#define MAS3587F 3587
|
|
|
|
#define MAS3507D 3507
|
|
|
|
#define MAS3539F 3539
|
2005-01-27 19:16:20 +00:00
|
|
|
#define MASNONE 1 /* if codec is done by SW */
|
2004-09-28 22:13:26 +00:00
|
|
|
|
|
|
|
/* CONFIG_CPU */
|
|
|
|
#define SH7034 7034
|
2004-10-06 13:29:10 +00:00
|
|
|
#define MCF5249 5249
|
2005-01-10 21:54:28 +00:00
|
|
|
#define TCC730 730 /* lacking a proper abbrivation */
|
2004-09-28 22:13:26 +00:00
|
|
|
|
|
|
|
/* CONFIG_KEYPAD */
|
2004-11-18 23:20:07 +00:00
|
|
|
#define PLAYER_PAD 0
|
|
|
|
#define RECORDER_PAD 1
|
|
|
|
#define ONDIO_PAD 2
|
|
|
|
#define IRIVER_H100_PAD 3
|
2005-01-10 21:54:28 +00:00
|
|
|
#define GMINI100_PAD 4
|
2005-06-18 21:17:20 +00:00
|
|
|
#define IRIVER_H300_PAD 5
|
2004-09-28 22:13:26 +00:00
|
|
|
|
2005-06-02 11:08:55 +00:00
|
|
|
/* CONFIG_REMOTE_KEYPAD */
|
2005-06-15 11:28:25 +00:00
|
|
|
#define H100_REMOTE 0
|
|
|
|
#define H300_REMOTE 1
|
2005-06-02 11:08:55 +00:00
|
|
|
|
2004-10-08 17:45:52 +00:00
|
|
|
/* CONFIG_BATTERY */
|
2005-01-30 16:25:46 +00:00
|
|
|
#define BATT_LIION2200 2200 /* FM/V2 recorder type */
|
|
|
|
#define BATT_4AA_NIMH 1500
|
|
|
|
#define BATT_3AAA 1000 /* Ondio */
|
2005-04-06 23:53:19 +00:00
|
|
|
#define BATT_LIPOL1300 1300 /* the type used in iRiver h1x0 models */
|
2004-10-08 17:45:52 +00:00
|
|
|
|
2005-01-10 21:54:28 +00:00
|
|
|
/* CONFIG_LCD */
|
|
|
|
#define LCD_GMINI100 0
|
|
|
|
#define LCD_SSD1815 1 /* as used by Archos Recorders and Ondios */
|
2005-01-10 22:03:05 +00:00
|
|
|
#define LCD_SSD1801 2 /* as used by Archos Player/Studio */
|
|
|
|
#define LCD_S1D15E06 3 /* as used by iRiver H100 series */
|
2005-06-15 11:28:25 +00:00
|
|
|
#define LCD_H300 4 /* as used by iRiver H300 series, exact model name is
|
|
|
|
unknown at the time of this writing */
|
2005-01-10 21:54:28 +00:00
|
|
|
|
2004-12-18 10:29:47 +00:00
|
|
|
/* CONFIG_BACKLIGHT */
|
|
|
|
#define BL_PA14_LO 0 /* Player, PA14 low active */
|
|
|
|
#define BL_RTC 1 /* Recorder, RTC square wave output */
|
|
|
|
#define BL_PA14_HI 2 /* Ondio, PA14 high active */
|
|
|
|
#define BL_IRIVER 3 /* IRiver GPIO */
|
2005-02-05 10:53:41 +00:00
|
|
|
#define BL_GMINI 4 /* Archos GMini */
|
2004-12-18 10:29:47 +00:00
|
|
|
|
2005-01-27 12:16:45 +00:00
|
|
|
/* CONFIG_I2C */
|
|
|
|
#define I2C_PLAYREC 0 /* Archos Player/Recorder style */
|
|
|
|
#define I2C_ONDIO 1 /* Ondio style */
|
|
|
|
#define I2C_GMINI 2 /* Gmini style */
|
2005-02-02 21:45:26 +00:00
|
|
|
#define I2C_H100 3 /* iRiver h100 style */
|
2005-01-27 12:16:45 +00:00
|
|
|
|
2005-06-04 23:15:52 +00:00
|
|
|
/* CONFIG_LED */
|
|
|
|
#define LED_REAL 1 /* SW controlled LED (Archos recorders, player, Gmini) */
|
|
|
|
#define LED_VIRTUAL 2 /* Virtual LED (icon) (Archos Ondio) */
|
|
|
|
/* else HW controlled LED (iRiver H1x0) */
|
|
|
|
|
2004-09-28 22:13:26 +00:00
|
|
|
/* now go and pick yours */
|
2003-02-07 09:41:57 +00:00
|
|
|
#if defined(ARCHOS_PLAYER)
|
|
|
|
#include "config-player.h"
|
|
|
|
#elif defined(ARCHOS_RECORDER)
|
|
|
|
#include "config-recorder.h"
|
|
|
|
#elif defined(ARCHOS_FMRECORDER)
|
|
|
|
#include "config-fmrecorder.h"
|
2003-11-19 06:41:43 +00:00
|
|
|
#elif defined(ARCHOS_RECORDERV2)
|
2003-11-27 21:23:48 +00:00
|
|
|
#include "config-recorderv2.h"
|
2004-09-09 06:01:46 +00:00
|
|
|
#elif defined(ARCHOS_ONDIOSP)
|
|
|
|
#include "config-ondiosp.h"
|
|
|
|
#elif defined(ARCHOS_ONDIOFM)
|
|
|
|
#include "config-ondiofm.h"
|
2004-09-16 14:36:08 +00:00
|
|
|
#elif defined(IRIVER_H100)
|
|
|
|
#include "config-h100.h"
|
2005-06-15 11:28:25 +00:00
|
|
|
#elif defined(IRIVER_H300)
|
|
|
|
#include "config-h300.h"
|
2005-01-04 15:00:55 +00:00
|
|
|
#elif defined(ARCHOS_GMINI120)
|
|
|
|
#include "config-gmini120.h"
|
2005-02-12 14:12:10 +00:00
|
|
|
#elif defined(ARCHOS_GMINISP)
|
|
|
|
#include "config-gminisp.h"
|
2003-02-07 09:41:57 +00:00
|
|
|
#else
|
|
|
|
/* no known platform */
|
|
|
|
#endif
|
|
|
|
|
2005-06-27 21:23:03 +00:00
|
|
|
#ifndef CODEC_SIZE
|
|
|
|
#define CODEC_SIZE 0
|
|
|
|
#endif
|
|
|
|
|
2003-02-07 09:41:57 +00:00
|
|
|
#endif
|