2003-02-07 09:41:57 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 by Daniel Stenberg
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2003-02-07 09:41:57 +00:00
|
|
|
*
|
|
|
|
* 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: */
|
|
|
|
|
2008-10-31 21:25:04 +00:00
|
|
|
/* CONFIG_STORAGE (note these are combineable bit-flags) */
|
2008-11-03 20:52:27 +00:00
|
|
|
#define STORAGE_ATA 0x01
|
|
|
|
#define STORAGE_MMC 0x02
|
|
|
|
#define STORAGE_SD 0x04
|
|
|
|
#define STORAGE_NAND 0x08
|
|
|
|
#define STORAGE_RAMDISK 0x10
|
2008-10-31 21:25:04 +00:00
|
|
|
|
2004-10-15 21:41:46 +00:00
|
|
|
/* CONFIG_TUNER (note these are combineable bit-flags) */
|
|
|
|
#define S1A0903X01 0x01 /* Samsung */
|
|
|
|
#define TEA5767 0x02 /* Philips */
|
2007-06-06 19:23:48 +00:00
|
|
|
#define LV24020LP 0x04 /* Sanyo */
|
2007-09-21 15:51:53 +00:00
|
|
|
#define SI4700 0x08 /* Silicon Labs */
|
2008-06-27 23:24:34 +00:00
|
|
|
#define TEA5760 0x10 /* Philips */
|
|
|
|
#define LV240000 0x20 /* Sanyo */
|
2009-12-01 17:54:40 +00:00
|
|
|
#define IPOD_REMOTE_TUNER 0x40 /* Apple */
|
2010-06-16 20:29:08 +00:00
|
|
|
#define RDA5802 0x80 /* RDA Microelectronics */
|
2004-09-28 22:13:26 +00:00
|
|
|
|
2005-08-29 21:15:27 +00:00
|
|
|
/* CONFIG_CODEC */
|
2004-09-28 22:13:26 +00:00
|
|
|
#define MAS3587F 3587
|
|
|
|
#define MAS3507D 3507
|
|
|
|
#define MAS3539F 3539
|
2005-08-29 21:15:27 +00:00
|
|
|
#define SWCODEC 1 /* if codec is done by SW */
|
2004-09-28 22:13:26 +00:00
|
|
|
|
|
|
|
/* CONFIG_CPU */
|
2007-01-14 13:48:09 +00:00
|
|
|
#define SH7034 7034
|
|
|
|
#define MCF5249 5249
|
|
|
|
#define MCF5250 5250
|
|
|
|
#define PP5002 5002
|
|
|
|
#define PP5020 5020
|
2007-07-02 05:16:40 +00:00
|
|
|
#define PP5022 5022
|
|
|
|
#define PP5024 5024
|
2009-07-13 21:09:39 +00:00
|
|
|
#define PP6100 6100
|
2007-01-14 13:48:09 +00:00
|
|
|
#define PNX0101 101
|
|
|
|
#define S3C2440 2440
|
2007-10-25 09:33:53 +00:00
|
|
|
#define DSC25 25
|
2007-09-20 04:46:41 +00:00
|
|
|
#define DM320 320
|
2007-09-21 15:51:53 +00:00
|
|
|
#define IMX31L 31
|
2008-06-21 15:18:36 +00:00
|
|
|
#define TCC770 770
|
2007-10-28 11:08:10 +00:00
|
|
|
#define TCC771L 771
|
|
|
|
#define TCC773L 773
|
2008-01-14 22:04:48 +00:00
|
|
|
#define TCC7801 7801
|
2008-06-27 23:24:34 +00:00
|
|
|
#define S5L8700 8700
|
2009-07-15 21:34:31 +00:00
|
|
|
#define S5L8701 8701
|
2010-12-12 01:03:14 +00:00
|
|
|
#define S5L8702 8702
|
2008-07-14 15:03:10 +00:00
|
|
|
#define JZ4732 4732
|
2008-10-12 16:46:01 +00:00
|
|
|
#define AS3525 3525
|
2009-03-30 12:20:47 +00:00
|
|
|
#define AT91SAM9260 9260
|
2009-12-31 19:15:20 +00:00
|
|
|
#define AS3525v2 35252
|
2011-05-01 13:02:46 +00:00
|
|
|
#define IMX233 233
|
2011-05-30 21:10:37 +00:00
|
|
|
#define RK27XX 2700
|
2004-09-28 22:13:26 +00:00
|
|
|
|
2010-06-21 16:53:00 +00:00
|
|
|
/* platforms
|
|
|
|
* bit fields to allow PLATFORM_HOSTED to be OR'ed e.g. with a
|
|
|
|
* possible future PLATFORM_ANDROID (some OSes might need totally different
|
|
|
|
* handling to run on them than a stand-alone application) */
|
2010-08-02 20:34:47 +00:00
|
|
|
#define PLATFORM_NATIVE (1<<0)
|
|
|
|
#define PLATFORM_HOSTED (1<<1)
|
|
|
|
#define PLATFORM_ANDROID (1<<2)
|
|
|
|
#define PLATFORM_SDL (1<<3)
|
2011-02-08 20:05:25 +00:00
|
|
|
#define PLATFORM_MAEMO4 (1<<4)
|
|
|
|
#define PLATFORM_MAEMO5 (1<<5)
|
|
|
|
#define PLATFORM_MAEMO (PLATFORM_MAEMO4|PLATFORM_MAEMO5)
|
2011-02-27 23:42:37 +00:00
|
|
|
#define PLATFORM_PANDORA (1<<6)
|
2010-06-21 16:53:00 +00:00
|
|
|
|
2004-09-28 22:13:26 +00:00
|
|
|
/* CONFIG_KEYPAD */
|
2006-11-10 20:26:01 +00:00
|
|
|
#define PLAYER_PAD 1
|
|
|
|
#define RECORDER_PAD 2
|
|
|
|
#define ONDIO_PAD 3
|
|
|
|
#define IRIVER_H100_PAD 4
|
2006-02-05 16:52:22 +00:00
|
|
|
#define IRIVER_H300_PAD 5
|
2007-03-16 23:02:39 +00:00
|
|
|
#define IAUDIO_X5M5_PAD 6
|
2006-02-05 16:52:22 +00:00
|
|
|
#define IPOD_4G_PAD 7
|
|
|
|
#define IPOD_3G_PAD 8
|
2007-07-26 22:42:31 +00:00
|
|
|
#define IPOD_1G2G_PAD 9
|
|
|
|
#define IRIVER_IFP7XX_PAD 10
|
|
|
|
#define GIGABEAT_PAD 11
|
|
|
|
#define IRIVER_H10_PAD 12
|
|
|
|
#define SANSA_E200_PAD 13
|
2007-09-06 03:28:58 +00:00
|
|
|
#define SANSA_C200_PAD 14
|
2009-12-07 16:12:49 +00:00
|
|
|
#define TATUNG_TPJ1022_PAD 15
|
2007-09-06 03:28:58 +00:00
|
|
|
#define ARCHOS_AV300_PAD 16
|
2008-01-09 07:24:43 +00:00
|
|
|
#define MROBE100_PAD 17
|
|
|
|
#define MROBE500_PAD 18
|
|
|
|
#define GIGABEAT_S_PAD 19
|
|
|
|
#define LOGIK_DAX_PAD 20
|
2008-01-14 22:04:48 +00:00
|
|
|
#define IAUDIO67_PAD 21
|
2009-12-15 20:51:41 +00:00
|
|
|
#define COWON_D2_PAD 22
|
2008-03-10 00:56:50 +00:00
|
|
|
#define IAUDIO_M3_PAD 23
|
2008-04-24 20:08:28 +00:00
|
|
|
#define CREATIVEZVM_PAD 24
|
2008-05-02 19:12:09 +00:00
|
|
|
#define SANSA_M200_PAD 25
|
2008-05-15 18:01:14 +00:00
|
|
|
#define CREATIVEZV_PAD 26
|
2008-05-21 03:55:17 +00:00
|
|
|
#define PHILIPS_SA9200_PAD 27
|
2008-06-21 15:18:36 +00:00
|
|
|
#define SANSA_C100_PAD 28
|
2008-06-27 18:40:25 +00:00
|
|
|
#define PHILIPS_HDD1630_PAD 29
|
2008-06-27 23:24:34 +00:00
|
|
|
#define MEIZU_M6SL_PAD 30
|
2008-07-14 15:03:10 +00:00
|
|
|
#define ONDAVX747_PAD 31
|
2008-09-05 15:09:40 +00:00
|
|
|
#define ONDAVX767_PAD 32
|
2008-09-17 23:22:11 +00:00
|
|
|
#define MEIZU_M6SP_PAD 33
|
|
|
|
#define MEIZU_M3_PAD 34
|
2008-10-12 16:46:01 +00:00
|
|
|
#define SANSA_CLIP_PAD 35
|
2008-11-01 10:29:23 +00:00
|
|
|
#define SANSA_FUZE_PAD 36
|
2009-03-30 12:20:47 +00:00
|
|
|
#define LYRE_PROTO1_PAD 37
|
2009-05-25 21:10:45 +00:00
|
|
|
#define SAMSUNG_YH_PAD 38
|
2009-06-20 10:54:13 +00:00
|
|
|
#define ONDAVX777_PAD 39
|
2009-07-29 20:42:02 +00:00
|
|
|
#define SAMSUNG_YPS3_PAD 40
|
2009-10-19 18:14:27 +00:00
|
|
|
#define MINI2440_PAD 41
|
2009-12-25 04:05:01 +00:00
|
|
|
#define PHILIPS_HDD6330_PAD 42
|
2010-01-18 19:05:20 +00:00
|
|
|
#define PBELL_VIBE500_PAD 43
|
2010-04-26 21:40:00 +00:00
|
|
|
#define MPIO_HD200_PAD 44
|
2010-08-16 20:12:06 +00:00
|
|
|
#define ANDROID_PAD 45
|
2010-08-26 11:43:51 +00:00
|
|
|
#define SDL_PAD 46
|
2010-11-26 23:28:08 +00:00
|
|
|
#define MPIO_HD300_PAD 47
|
2011-05-01 13:02:46 +00:00
|
|
|
#define SANSA_FUZEPLUS_PAD 48
|
2011-09-06 12:39:28 +00:00
|
|
|
#define RK27XX_GENERIC_PAD 49
|
2011-10-17 10:32:19 +00:00
|
|
|
#define HM60X_PAD 50
|
2011-11-03 11:53:02 +00:00
|
|
|
#define HM801_PAD 51
|
2011-11-16 14:08:01 +00:00
|
|
|
#define SANSA_CONNECT_PAD 52
|
Initial commit of the Samsung YP-R0 port.
This port is a hybrid native/RaaA port. It runs on a embedded linux system,
but is the only application. It therefore can implement lots of stuff that
native targets also implement, while leveraging the underlying linux kernel.
The port is quite advanced. User interface, audio playback, plugins work
mostly fine. Missing is e.g. power mangement and USB (see SamsungYPR0 wiki page).
Included in utils/ypr0tools are scripts and programs required to generate
a patched firmware. The patched firmware has the rootfs modified to load
Rockbox. It includes a early/safe USB mode.
This port needs a new toolchain, one that includes glibc headers and libraries.
rockboxdev.sh can generate it, but e.g. codesourcey and distro packages may
also work.
Most of the initial effort is done by Lorenzo Miori and others (on ABI),
including reverse engineering and patching of the original firmware,
initial drivers, and more. Big thanks to you.
Flyspray: FS#12348
Author: Lorenzo Miori, myself
Merry christmas to ypr0 owners! :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31415 a1c6a512-1295-4272-9138-f99709370657
2011-12-24 11:56:46 +00:00
|
|
|
#define SAMSUNG_YPR0_PAD 53
|
2004-09-28 22:13:26 +00:00
|
|
|
|
2005-06-02 11:08:55 +00:00
|
|
|
/* CONFIG_REMOTE_KEYPAD */
|
2010-07-23 20:20:40 +00:00
|
|
|
#define H100_REMOTE 1
|
|
|
|
#define H300_REMOTE 2
|
|
|
|
#define IAUDIO_REMOTE 3
|
|
|
|
#define MROBE_REMOTE 4
|
2005-06-02 11:08:55 +00:00
|
|
|
|
2009-01-26 23:21:49 +00:00
|
|
|
/* CONFIG_BACKLIGHT_FADING */
|
|
|
|
/* No fading capabilities at all (yet) */
|
|
|
|
#define BACKLIGHT_NO_FADING 0x0
|
|
|
|
/* Backlight fading is controlled using a hardware PWM mechanism */
|
|
|
|
#define BACKLIGHT_FADING_PWM 0x1
|
|
|
|
/* Backlight is controlled using a software implementation
|
|
|
|
* BACKLIGHT_FADING_SW_SETTING means that backlight is turned on by only setting
|
|
|
|
* the brightness (i.e. no real difference between backlight_on and
|
|
|
|
* backlight_set_brightness)
|
2009-12-30 19:10:22 +00:00
|
|
|
* BACKLIGHT_FADING_SW_HW_REG means that backlight brightness is restored
|
2009-01-26 23:21:49 +00:00
|
|
|
* "in hardware", from a hardware register upon backlight_on
|
|
|
|
* Both types need to have minor adjustments in the software fading code */
|
|
|
|
#define BACKLIGHT_FADING_SW_SETTING 0x2
|
|
|
|
#define BACKLIGHT_FADING_SW_HW_REG 0x4
|
|
|
|
/* Backlight fading is done in a target specific way
|
|
|
|
* for example in hardware, but not controllable*/
|
|
|
|
#define BACKLIGHT_FADING_TARGET 0x8
|
|
|
|
|
2006-06-06 22:23:52 +00:00
|
|
|
/* CONFIG_CHARGING */
|
2008-12-24 16:58:41 +00:00
|
|
|
|
|
|
|
/* Generic types */
|
2008-12-24 19:36:37 +00:00
|
|
|
#define CHARGING_SIMPLE 1 /* Simple, hardware controlled charging
|
|
|
|
* (CPU cannot read charger state but may read
|
|
|
|
* when power is plugged-in). */
|
|
|
|
#define CHARGING_MONITOR 2 /* Hardware controlled charging with monitoring
|
|
|
|
* (CPU is able to read HW charging state and
|
|
|
|
* when power is plugged-in). */
|
2008-12-24 16:58:41 +00:00
|
|
|
|
|
|
|
/* Mostly target-specific code in the /target tree */
|
2008-12-24 19:36:37 +00:00
|
|
|
#define CHARGING_TARGET 3 /* Any algorithm - usually software controlled
|
|
|
|
* charging or specific programming is required to
|
|
|
|
* use the charging hardware. */
|
2009-03-30 12:20:47 +00:00
|
|
|
|
2012-01-03 23:44:38 +00:00
|
|
|
/* CONFIG_BATTERY_MEASURE bits */
|
|
|
|
#define VOLTAGE_MEASURE 1 /* Target can report battery voltage
|
|
|
|
* Usually native ports */
|
|
|
|
#define PERCENTAGE_MEASURE 2 /* Target can report remaining capacity in %
|
|
|
|
* Usually application/hosted ports */
|
|
|
|
#define TIME_MEASURE 4 /* Target can report remaining time estimation
|
|
|
|
Usually application ports, and only
|
|
|
|
if the estimation is better that ours
|
|
|
|
(which it probably is) */
|
2005-01-10 21:54:28 +00:00
|
|
|
/* CONFIG_LCD */
|
2005-11-07 23:07:19 +00:00
|
|
|
#define LCD_SSD1815 1 /* as used by Archos Recorders and Ondios */
|
|
|
|
#define LCD_SSD1801 2 /* as used by Archos Player/Studio */
|
|
|
|
#define LCD_S1D15E06 3 /* as used by iRiver H100 series */
|
|
|
|
#define LCD_H300 4 /* as used by iRiver H300 series, exact model name is
|
|
|
|
unknown at the time of this writing */
|
|
|
|
#define LCD_X5 5 /* as used by iAudio X5 series, exact model name is
|
2005-07-15 21:22:10 +00:00
|
|
|
unknown at the time of this writing */
|
2005-11-07 23:07:19 +00:00
|
|
|
#define LCD_IPODCOLOR 6 /* as used by iPod Color/Photo */
|
|
|
|
#define LCD_IPODNANO 7 /* as used by iPod Nano */
|
2005-12-18 13:04:00 +00:00
|
|
|
#define LCD_IPODVIDEO 8 /* as used by iPod Video */
|
2006-08-07 01:46:42 +00:00
|
|
|
#define LCD_IPOD2BPP 9 /* as used by all fullsize greyscale iPods */
|
|
|
|
#define LCD_IPODMINI 10 /* as used by iPod Mini g1/g2 */
|
|
|
|
#define LCD_IFP7XX 11 /* as used by iRiver iFP 7xx/8xx */
|
|
|
|
#define LCD_GIGABEAT 12
|
2007-02-17 23:49:07 +00:00
|
|
|
#define LCD_H10_20GB 13 /* as used by iriver H10 20Gb */
|
2006-08-19 19:21:17 +00:00
|
|
|
#define LCD_H10_5GB 14 /* as used by iriver H10 5Gb */
|
2006-08-31 19:19:35 +00:00
|
|
|
#define LCD_TPJ1022 15 /* as used by Tatung Elio TPJ-1022 */
|
2007-01-14 13:48:09 +00:00
|
|
|
#define LCD_DSC25 16 /* as used by Archos AV300 */
|
2007-09-06 03:28:58 +00:00
|
|
|
#define LCD_C200 17 /* as used by Sandisk Sansa c200 */
|
2007-09-20 04:46:41 +00:00
|
|
|
#define LCD_MROBE500 18 /* as used by Olympus M:Robe 500i */
|
2008-01-09 07:24:43 +00:00
|
|
|
#define LCD_MROBE100 19 /* as used by Olympus M:Robe 100 */
|
|
|
|
#define LCD_LOGIKDAX 20 /* as used by Logik DAX - SSD1815 */
|
|
|
|
#define LCD_IAUDIO67 21 /* as used by iAudio 6/7 - unknown */
|
2008-02-18 19:08:29 +00:00
|
|
|
#define LCD_CREATIVEZVM 22 /* as used by Creative Zen Vision:M */
|
2008-03-10 00:56:50 +00:00
|
|
|
#define LCD_TL0350A 23 /* as used by the iAudio M3 remote, treated as main LCD */
|
2008-03-10 21:39:04 +00:00
|
|
|
#define LCD_COWOND2 24 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */
|
2008-05-21 03:55:17 +00:00
|
|
|
#define LCD_SA9200 25 /* as used by the Philips SA9200 */
|
2008-06-21 15:18:36 +00:00
|
|
|
#define LCD_S6B33B2 26 /* as used by the Sansa c100 */
|
2008-06-27 18:40:25 +00:00
|
|
|
#define LCD_HDD1630 27 /* as used by the Philips HDD1630 */
|
2008-06-27 23:24:34 +00:00
|
|
|
#define LCD_MEIZUM6 28 /* as used by the Meizu M6SP and M6SL (various models) */
|
2008-07-14 15:03:10 +00:00
|
|
|
#define LCD_ONDAVX747 29 /* as used by the Onda VX747 */
|
2008-09-05 15:09:40 +00:00
|
|
|
#define LCD_ONDAVX767 30 /* as used by the Onda VX767 */
|
2008-10-12 16:46:01 +00:00
|
|
|
#define LCD_SSD1303 31 /* as used by the Sansa Clip */
|
2008-11-01 10:29:23 +00:00
|
|
|
#define LCD_FUZE 32 /* as used by the Sansa Fuze */
|
2009-10-19 18:14:27 +00:00
|
|
|
#define LCD_LYRE_PROTO1 33 /* as used by the Lyre prototype 1 */
|
2009-05-25 21:10:45 +00:00
|
|
|
#define LCD_YH925 34 /* as used by Samsung YH-925 (similar to the H10 20GB) */
|
2009-10-19 18:14:27 +00:00
|
|
|
#define LCD_VIEW 35 /* as used by the Sansa View */
|
2009-09-17 07:36:09 +00:00
|
|
|
#define LCD_NANO2G 36 /* as used by the iPod Nano 2nd Generation */
|
2009-10-19 18:14:27 +00:00
|
|
|
#define LCD_MINI2440 37 /* as used by the Mini2440 */
|
2009-12-25 04:05:01 +00:00
|
|
|
#define LCD_HDD6330 38 /* as used by the Philips HDD6330 */
|
2010-01-18 19:05:20 +00:00
|
|
|
#define LCD_VIBE500 39 /* as used by the Packard Bell Vibe 500 */
|
2010-12-12 01:03:14 +00:00
|
|
|
#define LCD_IPOD6G 40 /* as used by the iPod Nano 2nd Generation */
|
2011-05-01 13:02:46 +00:00
|
|
|
#define LCD_FUZEPLUS 41
|
2011-05-30 21:10:37 +00:00
|
|
|
#define LCD_SPFD5420A 42 /* rk27xx */
|
2011-08-27 16:21:19 +00:00
|
|
|
#define LCD_CLIPZIP 43 /* as used by the Sandisk Sansa Clip Zip */
|
2011-10-17 10:32:19 +00:00
|
|
|
#define LCD_HX8340B 44 /* as used by the HiFiMAN HM-601/HM-602/HM-801 */
|
2011-11-16 14:08:01 +00:00
|
|
|
#define LCD_CONNECT 45 /* as used by the Sandisk Sansa Connect */
|
2011-12-15 20:16:05 +00:00
|
|
|
#define LCD_GIGABEATS 46
|
Initial commit of the Samsung YP-R0 port.
This port is a hybrid native/RaaA port. It runs on a embedded linux system,
but is the only application. It therefore can implement lots of stuff that
native targets also implement, while leveraging the underlying linux kernel.
The port is quite advanced. User interface, audio playback, plugins work
mostly fine. Missing is e.g. power mangement and USB (see SamsungYPR0 wiki page).
Included in utils/ypr0tools are scripts and programs required to generate
a patched firmware. The patched firmware has the rootfs modified to load
Rockbox. It includes a early/safe USB mode.
This port needs a new toolchain, one that includes glibc headers and libraries.
rockboxdev.sh can generate it, but e.g. codesourcey and distro packages may
also work.
Most of the initial effort is done by Lorenzo Miori and others (on ABI),
including reverse engineering and patching of the original firmware,
initial drivers, and more. Big thanks to you.
Flyspray: FS#12348
Author: Lorenzo Miori, myself
Merry christmas to ypr0 owners! :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31415 a1c6a512-1295-4272-9138-f99709370657
2011-12-24 11:56:46 +00:00
|
|
|
#define LCD_YPR0 47
|
2009-07-13 21:09:39 +00:00
|
|
|
|
2005-11-19 02:06:46 +00:00
|
|
|
/* LCD_PIXELFORMAT */
|
2006-02-09 00:48:53 +00:00
|
|
|
#define HORIZONTAL_PACKING 1
|
|
|
|
#define VERTICAL_PACKING 2
|
2006-07-28 07:35:45 +00:00
|
|
|
#define HORIZONTAL_INTERLEAVED 3
|
|
|
|
#define VERTICAL_INTERLEAVED 4
|
2005-11-19 02:06:46 +00:00
|
|
|
#define RGB565 565
|
|
|
|
#define RGB565SWAPPED 3553
|
|
|
|
|
2009-08-29 19:31:29 +00:00
|
|
|
/* LCD_STRIDEFORMAT */
|
|
|
|
#define VERTICAL_STRIDE 1
|
|
|
|
#define HORIZONTAL_STRIDE 2
|
|
|
|
|
2007-11-11 04:48:33 +00:00
|
|
|
/* CONFIG_ORIENTATION */
|
2008-04-29 01:09:39 +00:00
|
|
|
#define SCREEN_PORTRAIT 0
|
2007-11-11 04:48:33 +00:00
|
|
|
#define SCREEN_LANDSCAPE 1
|
|
|
|
#define SCREEN_SQUARE 2
|
|
|
|
|
2005-01-27 12:16:45 +00:00
|
|
|
/* CONFIG_I2C */
|
2009-03-30 12:20:47 +00:00
|
|
|
#define I2C_NONE 0 /* For targets that do not use I2C - as the
|
2009-10-19 18:14:27 +00:00
|
|
|
Lyre prototype 1 */
|
2006-11-10 20:26:01 +00:00
|
|
|
#define I2C_PLAYREC 1 /* Archos Player/Recorder style */
|
|
|
|
#define I2C_ONDIO 2 /* Ondio style */
|
2005-07-31 17:31:33 +00:00
|
|
|
#define I2C_COLDFIRE 3 /* Coldfire style */
|
2006-02-05 16:52:22 +00:00
|
|
|
#define I2C_PP5002 4 /* PP5002 style */
|
|
|
|
#define I2C_PP5020 5 /* PP5020 style */
|
|
|
|
#define I2C_PNX0101 6 /* PNX0101 style */
|
2006-02-24 15:42:52 +00:00
|
|
|
#define I2C_S3C2440 7
|
2007-05-17 22:49:27 +00:00
|
|
|
#define I2C_PP5024 8 /* PP5024 style */
|
2007-09-21 15:51:53 +00:00
|
|
|
#define I2C_IMX31L 9
|
2007-10-28 11:08:10 +00:00
|
|
|
#define I2C_TCC77X 10
|
2008-01-14 22:04:48 +00:00
|
|
|
#define I2C_TCC780X 11
|
2008-04-24 20:08:28 +00:00
|
|
|
#define I2C_DM320 12 /* DM320 style */
|
2008-06-28 00:02:03 +00:00
|
|
|
#define I2C_S5L8700 13
|
2008-07-14 15:03:10 +00:00
|
|
|
#define I2C_JZ47XX 14 /* Ingenic Jz47XX style */
|
2008-10-19 14:11:01 +00:00
|
|
|
#define I2C_AS3525 15
|
2010-12-12 01:03:14 +00:00
|
|
|
#define I2C_S5L8702 16 /* Same as S5L8700, but with two channels */
|
2011-05-01 13:02:46 +00:00
|
|
|
#define I2C_IMX233 17
|
2011-05-30 21:10:37 +00:00
|
|
|
#define I2C_RK27XX 18
|
2005-01-27 12:16:45 +00:00
|
|
|
|
2005-06-04 23:15:52 +00:00
|
|
|
/* CONFIG_LED */
|
2006-11-10 20:26:01 +00:00
|
|
|
#define LED_REAL 1 /* SW controlled LED (Archos recorders, player) */
|
2005-06-04 23:15:52 +00:00
|
|
|
#define LED_VIRTUAL 2 /* Virtual LED (icon) (Archos Ondio) */
|
2006-06-16 17:34:18 +00:00
|
|
|
/* else HW controlled LED (iRiver H1x0) */
|
2005-12-04 13:05:56 +00:00
|
|
|
|
2008-10-31 21:25:04 +00:00
|
|
|
/* CONFIG_NAND */
|
2008-11-01 17:25:49 +00:00
|
|
|
#define NAND_IFP7XX 1
|
|
|
|
#define NAND_TCC 2
|
|
|
|
#define NAND_SAMSUNG 3
|
2008-11-04 20:30:01 +00:00
|
|
|
#define NAND_CC 4 /* ChinaChip */
|
2011-05-30 21:10:37 +00:00
|
|
|
#define NAND_RK27XX 5
|
2006-01-12 00:35:50 +00:00
|
|
|
|
2005-12-04 13:05:56 +00:00
|
|
|
/* CONFIG_RTC */
|
2005-12-11 10:52:17 +00:00
|
|
|
#define RTC_M41ST84W 1 /* Archos Recorder */
|
2006-02-27 12:35:05 +00:00
|
|
|
#define RTC_PCF50605 2 /* iPod 3G, 4G & Mini */
|
2005-12-11 10:52:17 +00:00
|
|
|
#define RTC_PCF50606 3 /* iriver H300 */
|
2006-02-24 15:42:52 +00:00
|
|
|
#define RTC_S3C2440 4
|
2006-08-03 20:21:29 +00:00
|
|
|
#define RTC_E8564 5 /* iriver H10 */
|
2008-11-10 18:18:27 +00:00
|
|
|
#define RTC_AS3514 6 /* Sandisk Sansa series */
|
2007-02-28 13:20:36 +00:00
|
|
|
#define RTC_DS1339_DS3231 7 /* h1x0 RTC mod */
|
2007-09-21 15:51:53 +00:00
|
|
|
#define RTC_IMX31L 8
|
2007-10-01 05:27:43 +00:00
|
|
|
#define RTC_RX5X348AB 9
|
2007-10-28 11:08:10 +00:00
|
|
|
#define RTC_TCC77X 10
|
2008-01-14 22:04:48 +00:00
|
|
|
#define RTC_TCC780X 11
|
2008-02-03 18:15:39 +00:00
|
|
|
#define RTC_MR100 12
|
2008-04-24 09:22:39 +00:00
|
|
|
#define RTC_MC13783 13 /* Freescale MC13783 PMIC */
|
2008-06-27 23:24:34 +00:00
|
|
|
#define RTC_S5L8700 14
|
|
|
|
#define RTC_S35390A 15
|
2008-07-14 15:03:10 +00:00
|
|
|
#define RTC_JZ47XX 16 /* Ingenic Jz47XX */
|
2009-10-11 17:46:00 +00:00
|
|
|
#define RTC_NANO2G 17 /* This seems to be a PCF5063x */
|
2010-11-28 22:51:14 +00:00
|
|
|
#define RTC_D2 18 /* Either PCF50606 or PCF50635 */
|
2011-05-01 13:02:46 +00:00
|
|
|
#define RTC_S35380A 19
|
|
|
|
#define RTC_IMX233 20
|
2011-11-16 14:08:01 +00:00
|
|
|
#define RTC_STM41T62 21 /* ST M41T62 */
|
2005-12-04 13:05:56 +00:00
|
|
|
|
2006-06-16 17:34:18 +00:00
|
|
|
/* USB On-the-go */
|
2009-10-20 09:54:08 +00:00
|
|
|
#define USBOTG_M66591 6591 /* M:Robe 500 */
|
|
|
|
#define USBOTG_ISP1362 1362 /* iriver H300 */
|
|
|
|
#define USBOTG_ISP1583 1583 /* Creative Zen Vision:M */
|
|
|
|
#define USBOTG_M5636 5636 /* iAudio X5 */
|
2011-05-01 13:02:46 +00:00
|
|
|
#define USBOTG_ARC 5020 /* PortalPlayer 502x and IMX233 */
|
2009-10-20 09:54:08 +00:00
|
|
|
#define USBOTG_JZ4740 4740 /* Ingenic Jz4740/Jz4732 */
|
|
|
|
#define USBOTG_AS3525 3525 /* AMS AS3525 */
|
2010-12-12 01:03:14 +00:00
|
|
|
#define USBOTG_S3C6400X 6400 /* Samsung S3C6400X, also used in the S5L8701/S5L8702/S5L8720 */
|
2011-09-06 12:39:28 +00:00
|
|
|
#define USBOTG_RK27XX 2700 /* Rockchip rk27xx */
|
2011-11-16 14:08:01 +00:00
|
|
|
#define USBOTG_TNETV105 105 /* TI TNETV105 */
|
2005-06-04 23:15:52 +00:00
|
|
|
|
2006-08-21 17:35:35 +00:00
|
|
|
/* Multiple cores */
|
|
|
|
#define CPU 0
|
|
|
|
#define COP 1
|
|
|
|
|
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)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/archosplayer.h"
|
2003-02-07 09:41:57 +00:00
|
|
|
#elif defined(ARCHOS_RECORDER)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/archosrecorder.h"
|
2003-02-07 09:41:57 +00:00
|
|
|
#elif defined(ARCHOS_FMRECORDER)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/archosfmrecorder.h"
|
2003-11-19 06:41:43 +00:00
|
|
|
#elif defined(ARCHOS_RECORDERV2)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/archosrecorderv2.h"
|
2004-09-09 06:01:46 +00:00
|
|
|
#elif defined(ARCHOS_ONDIOSP)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/archosondiosp.h"
|
2004-09-09 06:01:46 +00:00
|
|
|
#elif defined(ARCHOS_ONDIOFM)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/archosondiofm.h"
|
2007-01-14 13:48:09 +00:00
|
|
|
#elif defined(ARCHOS_AV300)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/archosav300.h"
|
2004-09-16 14:36:08 +00:00
|
|
|
#elif defined(IRIVER_H100)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/iriverh100.h"
|
2005-07-08 06:31:13 +00:00
|
|
|
#elif defined(IRIVER_H120)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/iriverh120.h"
|
2005-06-15 11:28:25 +00:00
|
|
|
#elif defined(IRIVER_H300)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/iriverh300.h"
|
2005-07-15 21:22:10 +00:00
|
|
|
#elif defined(IAUDIO_X5)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/iaudiox5.h"
|
2007-03-04 14:09:21 +00:00
|
|
|
#elif defined(IAUDIO_M5)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/iaudiom5.h"
|
2008-03-10 00:56:50 +00:00
|
|
|
#elif defined(IAUDIO_M3)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/iaudiom3.h"
|
2005-11-07 23:07:19 +00:00
|
|
|
#elif defined(IPOD_COLOR)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/ipodcolor.h"
|
2005-11-07 23:07:19 +00:00
|
|
|
#elif defined(IPOD_NANO)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/ipodnano1g.h"
|
2005-12-18 13:04:00 +00:00
|
|
|
#elif defined(IPOD_VIDEO)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/ipodvideo.h"
|
2007-07-26 22:42:31 +00:00
|
|
|
#elif defined(IPOD_1G2G)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/ipod1g2g.h"
|
2006-02-05 16:52:22 +00:00
|
|
|
#elif defined(IPOD_3G)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/ipod3g.h"
|
2006-02-05 18:25:41 +00:00
|
|
|
#elif defined(IPOD_4G)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/ipod4g.h"
|
2009-07-12 22:16:51 +00:00
|
|
|
#elif defined(IPOD_NANO2G)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/ipodnano2g.h"
|
2010-12-12 01:03:14 +00:00
|
|
|
#elif defined(IPOD_6G)
|
|
|
|
#include "config/ipod6g.h"
|
2006-01-12 00:35:50 +00:00
|
|
|
#elif defined(IRIVER_IFP7XX)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/iriverifp7xx.h"
|
2006-02-24 15:42:52 +00:00
|
|
|
#elif defined(GIGABEAT_F)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/gigabeatfx.h"
|
2007-09-21 15:51:53 +00:00
|
|
|
#elif defined(GIGABEAT_S)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/gigabeats.h"
|
2006-02-21 15:01:25 +00:00
|
|
|
#elif defined(IPOD_MINI)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/ipodmini1g.h"
|
2006-03-30 17:29:21 +00:00
|
|
|
#elif defined(IPOD_MINI2G)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/ipodmini2g.h"
|
2006-08-01 22:28:14 +00:00
|
|
|
#elif defined(IRIVER_H10)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/iriverh10.h"
|
2006-08-19 19:21:17 +00:00
|
|
|
#elif defined(IRIVER_H10_5GB)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/iriverh10_5gb.h"
|
2006-08-01 22:28:14 +00:00
|
|
|
#elif defined(SANSA_E200)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/sansae200.h"
|
2007-09-06 03:28:58 +00:00
|
|
|
#elif defined(SANSA_C200)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/sansac200.h"
|
2008-05-02 19:12:09 +00:00
|
|
|
#elif defined(SANSA_M200)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/sansam200.h"
|
2009-12-07 16:12:49 +00:00
|
|
|
#elif defined(TATUNG_TPJ1022)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/tatungtpj1022.h"
|
2008-01-09 07:24:43 +00:00
|
|
|
#elif defined(MROBE_100)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/mrobe100.h"
|
2007-09-20 04:46:41 +00:00
|
|
|
#elif defined(MROBE_500)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/mrobe500.h"
|
2007-10-28 11:08:10 +00:00
|
|
|
#elif defined(LOGIK_DAX)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/logikdax.h"
|
2007-10-28 11:08:10 +00:00
|
|
|
#elif defined(IAUDIO_7)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/iaudio7.h"
|
2008-01-14 22:04:48 +00:00
|
|
|
#elif defined(COWON_D2)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/cowond2.h"
|
2008-02-18 19:08:29 +00:00
|
|
|
#elif defined(CREATIVE_ZVM)
|
2010-01-24 19:21:51 +00:00
|
|
|
#include "config/zenvisionm30gb.h"
|
2008-05-14 18:55:19 +00:00
|
|
|
#elif defined(CREATIVE_ZVM60GB)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/zenvisionm60gb.h"
|
2008-05-14 18:55:19 +00:00
|
|
|
#elif defined(CREATIVE_ZV)
|
2010-01-24 19:33:51 +00:00
|
|
|
#include "config/zenvision.h"
|
2008-05-21 03:55:17 +00:00
|
|
|
#elif defined(PHILIPS_SA9200)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/gogearsa9200.h"
|
2008-06-27 18:40:25 +00:00
|
|
|
#elif defined(PHILIPS_HDD1630)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/gogearhdd1630.h"
|
2009-12-25 04:05:01 +00:00
|
|
|
#elif defined(PHILIPS_HDD6330)
|
|
|
|
#include "config/gogearhdd6330.h"
|
2008-06-21 15:18:36 +00:00
|
|
|
#elif defined(SANSA_C100)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/sansac100.h"
|
2008-06-27 23:24:34 +00:00
|
|
|
#elif defined(MEIZU_M6SL)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/meizum6sl.h"
|
2008-09-17 23:22:11 +00:00
|
|
|
#elif defined(MEIZU_M6SP)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/meizum6sp.h"
|
2008-09-17 23:22:11 +00:00
|
|
|
#elif defined(MEIZU_M3)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/meizum3.h"
|
2010-01-24 19:28:52 +00:00
|
|
|
#elif defined(ONDA_VX747) || defined(ONDA_VX747P)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/ondavx747.h"
|
2010-01-24 19:28:52 +00:00
|
|
|
#elif defined(ONDA_VX777)
|
|
|
|
#include "config/ondavx777.h"
|
2008-09-05 15:09:40 +00:00
|
|
|
#elif defined(ONDA_VX767)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/ondavx767.h"
|
2008-10-12 16:46:01 +00:00
|
|
|
#elif defined(SANSA_CLIP)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/sansaclip.h"
|
2009-12-31 19:15:20 +00:00
|
|
|
#elif defined(SANSA_CLIPV2)
|
|
|
|
#include "config/sansaclipv2.h"
|
2010-02-05 12:40:25 +00:00
|
|
|
#elif defined(SANSA_CLIPPLUS)
|
|
|
|
#include "config/sansaclipplus.h"
|
2008-10-19 14:11:01 +00:00
|
|
|
#elif defined(SANSA_E200V2)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/sansae200v2.h"
|
2008-11-10 09:27:40 +00:00
|
|
|
#elif defined(SANSA_M200V4)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/sansam200v4.h"
|
2008-11-01 10:29:23 +00:00
|
|
|
#elif defined(SANSA_FUZE)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/sansafuze.h"
|
2010-02-25 13:26:46 +00:00
|
|
|
#elif defined(SANSA_FUZEV2)
|
|
|
|
#include "config/sansafuzev2.h"
|
2011-05-01 13:02:46 +00:00
|
|
|
#elif defined(SANSA_FUZEPLUS)
|
|
|
|
#include "config/sansafuzeplus.h"
|
2011-08-27 16:21:19 +00:00
|
|
|
#elif defined(SANSA_CLIPZIP)
|
|
|
|
#include "config/sansaclipzip.h"
|
2008-12-24 04:10:18 +00:00
|
|
|
#elif defined(SANSA_C200V2)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/sansac200v2.h"
|
2009-07-13 21:09:39 +00:00
|
|
|
#elif defined(SANSA_VIEW)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/sansaview.h"
|
2009-03-30 12:20:47 +00:00
|
|
|
#elif defined(LYRE_PROTO1)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/lyreproto1.h"
|
2009-10-19 18:14:27 +00:00
|
|
|
#elif defined(MINI2440)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/mini2440.h"
|
2009-05-25 21:10:45 +00:00
|
|
|
#elif defined(SAMSUNG_YH820)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/samsungyh820.h"
|
2009-05-25 21:10:45 +00:00
|
|
|
#elif defined(SAMSUNG_YH920)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/samsungyh920.h"
|
2009-05-25 21:10:45 +00:00
|
|
|
#elif defined(SAMSUNG_YH925)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/samsungyh925.h"
|
2009-07-29 20:42:02 +00:00
|
|
|
#elif defined(SAMSUNG_YPS3)
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/samsungyps3.h"
|
2010-01-18 19:05:20 +00:00
|
|
|
#elif defined(PBELL_VIBE500)
|
|
|
|
#include "config/vibe500.h"
|
2010-04-26 21:40:00 +00:00
|
|
|
#elif defined(MPIO_HD200)
|
|
|
|
#include "config/mpiohd200.h"
|
2010-11-26 23:28:08 +00:00
|
|
|
#elif defined(MPIO_HD300)
|
|
|
|
#include "config/mpiohd300.h"
|
2011-05-30 21:10:37 +00:00
|
|
|
#elif defined(RK27_GENERIC)
|
|
|
|
#include "config/rk27generic.h"
|
2011-10-17 10:32:19 +00:00
|
|
|
#elif defined(HM60X)
|
|
|
|
#include "config/hifimanhm60x.h"
|
2011-11-03 11:53:02 +00:00
|
|
|
#elif defined(HM801)
|
|
|
|
#include "config/hifimanhm801.h"
|
2011-11-16 14:08:01 +00:00
|
|
|
#elif defined(SANSA_CONNECT)
|
|
|
|
#include "config/sansaconnect.h"
|
2011-02-27 11:37:39 +00:00
|
|
|
#elif defined(SDLAPP)
|
|
|
|
#include "config/sdlapp.h"
|
|
|
|
#elif defined(ANDROID)
|
|
|
|
#include "config/android.h"
|
|
|
|
#elif defined(NOKIAN8XX)
|
|
|
|
#include "config/nokian8xx.h"
|
|
|
|
#elif defined(NOKIAN900)
|
|
|
|
#include "config/nokian900.h"
|
2011-02-27 23:42:37 +00:00
|
|
|
#elif defined(PANDORA)
|
|
|
|
#include "config/pandora.h"
|
Initial commit of the Samsung YP-R0 port.
This port is a hybrid native/RaaA port. It runs on a embedded linux system,
but is the only application. It therefore can implement lots of stuff that
native targets also implement, while leveraging the underlying linux kernel.
The port is quite advanced. User interface, audio playback, plugins work
mostly fine. Missing is e.g. power mangement and USB (see SamsungYPR0 wiki page).
Included in utils/ypr0tools are scripts and programs required to generate
a patched firmware. The patched firmware has the rootfs modified to load
Rockbox. It includes a early/safe USB mode.
This port needs a new toolchain, one that includes glibc headers and libraries.
rockboxdev.sh can generate it, but e.g. codesourcey and distro packages may
also work.
Most of the initial effort is done by Lorenzo Miori and others (on ABI),
including reverse engineering and patching of the original firmware,
initial drivers, and more. Big thanks to you.
Flyspray: FS#12348
Author: Lorenzo Miori, myself
Merry christmas to ypr0 owners! :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31415 a1c6a512-1295-4272-9138-f99709370657
2011-12-24 11:56:46 +00:00
|
|
|
#elif defined(SAMSUNG_YPR0)
|
2011-12-24 13:13:17 +00:00
|
|
|
#include "config/samsungypr0.h"
|
2011-02-27 11:37:39 +00:00
|
|
|
#else
|
|
|
|
/* no known platform */
|
|
|
|
#endif
|
2010-07-06 15:11:56 +00:00
|
|
|
|
2011-02-27 11:37:39 +00:00
|
|
|
#ifdef APPLICATION
|
2010-08-02 20:34:47 +00:00
|
|
|
#define CONFIG_CPU 0
|
|
|
|
#define CONFIG_STORAGE 0
|
2003-02-07 09:41:57 +00:00
|
|
|
#endif
|
|
|
|
|
2009-11-07 10:48:05 +00:00
|
|
|
/* keep this include after the target configs */
|
|
|
|
#ifdef SIMULATOR
|
2009-12-07 12:19:08 +00:00
|
|
|
#include "config/sim.h"
|
2009-11-07 10:48:05 +00:00
|
|
|
#endif
|
|
|
|
|
2010-12-03 00:06:06 +00:00
|
|
|
#ifndef CONFIG_PLATFORM
|
|
|
|
#define CONFIG_PLATFORM PLATFORM_NATIVE
|
|
|
|
#endif
|
|
|
|
|
2007-05-20 20:26:36 +00:00
|
|
|
/* setup basic macros from capability masks */
|
|
|
|
#include "config_caps.h"
|
|
|
|
|
2009-07-15 21:34:31 +00:00
|
|
|
/* setup CPU-specific defines */
|
|
|
|
|
|
|
|
/* define for all cpus from SH family */
|
|
|
|
#if (CONFIG_CPU == SH7034)
|
|
|
|
#define CPU_SH
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* define for all cpus from coldfire family */
|
|
|
|
#if (CONFIG_CPU == MCF5249) || (CONFIG_CPU == MCF5250)
|
|
|
|
#define CPU_COLDFIRE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* define for all cpus from PP family */
|
|
|
|
#if (CONFIG_CPU == PP5002)
|
|
|
|
#define CPU_PP
|
|
|
|
#elif (CONFIG_CPU == PP5020) || (CONFIG_CPU == PP5022) \
|
|
|
|
|| (CONFIG_CPU == PP5024) || (CONFIG_CPU == PP6100)
|
|
|
|
#define CPU_PP
|
|
|
|
#define CPU_PP502x
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* define for all cpus from S5L870X family */
|
2010-12-12 01:03:14 +00:00
|
|
|
#if (CONFIG_CPU == S5L8700) || (CONFIG_CPU == S5L8701) || (CONFIG_CPU == S5L8702)
|
2009-07-15 21:34:31 +00:00
|
|
|
#define CPU_S5L870X
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* define for all cpus from TCC77X family */
|
|
|
|
#if (CONFIG_CPU == TCC771L) || (CONFIG_CPU == TCC773L) || (CONFIG_CPU == TCC770)
|
|
|
|
#define CPU_TCC77X
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* define for all cpus from TCC780 family */
|
|
|
|
#if (CONFIG_CPU == TCC7801)
|
|
|
|
#define CPU_TCC780X
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* define for all cpus from ARM7TDMI family (for specific optimisations) */
|
|
|
|
#if defined(CPU_PP) || (CONFIG_CPU == PNX0101) || (CONFIG_CPU == DSC25)
|
|
|
|
#define CPU_ARM7TDMI
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* define for all cpus from ARM family */
|
2011-02-27 23:42:37 +00:00
|
|
|
#if ((CONFIG_PLATFORM & PLATFORM_MAEMO5) && defined(MAEMO_ARM_BUILD)) \
|
|
|
|
|| (CONFIG_PLATFORM & PLATFORM_PANDORA)
|
2011-02-08 20:05:25 +00:00
|
|
|
#define CPU_ARM
|
|
|
|
#define ARM_ARCH 7 /* ARMv7 */
|
|
|
|
|
2012-01-18 06:43:05 +00:00
|
|
|
#elif (CONFIG_CPU == IMX31L) || defined(SAMSUNG_YPR0) \
|
2011-02-08 20:05:25 +00:00
|
|
|
|| ((CONFIG_PLATFORM & PLATFORM_MAEMO4) && defined(MAEMO_ARM_BUILD))
|
2009-07-15 21:34:31 +00:00
|
|
|
#define CPU_ARM
|
|
|
|
#define ARM_ARCH 6 /* ARMv6 */
|
|
|
|
|
2009-12-31 19:15:20 +00:00
|
|
|
#elif defined(CPU_TCC77X) || defined(CPU_TCC780X) || (CONFIG_CPU == DM320) \
|
2010-12-02 22:33:47 +00:00
|
|
|
|| (CONFIG_CPU == AT91SAM9260) || (CONFIG_CPU == AS3525v2) \
|
2011-05-30 21:10:37 +00:00
|
|
|
|| (CONFIG_CPU == S5L8702) || (CONFIG_CPU == IMX233) \
|
|
|
|
|| (CONFIG_CPU == RK27XX) ||(CONFIG_PLATFORM & PLATFORM_ANDROID)
|
2009-07-15 21:34:31 +00:00
|
|
|
#define CPU_ARM
|
|
|
|
#define ARM_ARCH 5 /* ARMv5 */
|
|
|
|
|
2009-12-31 19:15:20 +00:00
|
|
|
#elif defined(CPU_PP) || (CONFIG_CPU == PNX0101) || (CONFIG_CPU == S3C2440) \
|
2009-07-15 21:34:31 +00:00
|
|
|
|| (CONFIG_CPU == DSC25) || defined(CPU_S5L870X) || (CONFIG_CPU == AS3525)
|
|
|
|
#define CPU_ARM
|
|
|
|
#define ARM_ARCH 4 /* ARMv4 */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if (CONFIG_CPU == JZ4732)
|
|
|
|
#define CPU_MIPS 32
|
|
|
|
#endif
|
|
|
|
|
2007-02-18 02:04:47 +00:00
|
|
|
/* now set any CONFIG_ defines correctly if they are not used,
|
2009-01-26 23:21:49 +00:00
|
|
|
No need to do this on CONFIG_'s which are compulsory (e.g CONFIG_CODEC ) */
|
|
|
|
|
|
|
|
#if !defined(CONFIG_BACKLIGHT_FADING)
|
|
|
|
#define CONFIG_BACKLIGHT_FADING BACKLIGHT_NO_FADING
|
|
|
|
#endif
|
|
|
|
|
Initial commit of the Samsung YP-R0 port.
This port is a hybrid native/RaaA port. It runs on a embedded linux system,
but is the only application. It therefore can implement lots of stuff that
native targets also implement, while leveraging the underlying linux kernel.
The port is quite advanced. User interface, audio playback, plugins work
mostly fine. Missing is e.g. power mangement and USB (see SamsungYPR0 wiki page).
Included in utils/ypr0tools are scripts and programs required to generate
a patched firmware. The patched firmware has the rootfs modified to load
Rockbox. It includes a early/safe USB mode.
This port needs a new toolchain, one that includes glibc headers and libraries.
rockboxdev.sh can generate it, but e.g. codesourcey and distro packages may
also work.
Most of the initial effort is done by Lorenzo Miori and others (on ABI),
including reverse engineering and patching of the original firmware,
initial drivers, and more. Big thanks to you.
Flyspray: FS#12348
Author: Lorenzo Miori, myself
Merry christmas to ypr0 owners! :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31415 a1c6a512-1295-4272-9138-f99709370657
2011-12-24 11:56:46 +00:00
|
|
|
#ifndef CONFIG_I2C
|
|
|
|
#define CONFIG_I2C I2C_NONE
|
|
|
|
#endif
|
|
|
|
|
2007-02-18 02:04:47 +00:00
|
|
|
#ifndef CONFIG_TUNER
|
|
|
|
#define CONFIG_TUNER 0
|
|
|
|
#endif
|
|
|
|
|
2007-02-18 04:57:28 +00:00
|
|
|
#ifndef CONFIG_USBOTG
|
|
|
|
#define CONFIG_USBOTG 0
|
|
|
|
#endif
|
|
|
|
|
2007-02-18 05:07:19 +00:00
|
|
|
#ifndef CONFIG_LED
|
2009-09-06 17:12:09 +00:00
|
|
|
#define CONFIG_LED LED_VIRTUAL
|
2007-02-18 05:07:19 +00:00
|
|
|
#endif
|
|
|
|
|
2007-02-18 05:32:06 +00:00
|
|
|
#ifndef CONFIG_CHARGING
|
|
|
|
#define CONFIG_CHARGING 0
|
|
|
|
#endif
|
|
|
|
|
2012-01-03 23:44:38 +00:00
|
|
|
#ifndef CONFIG_BATTERY_MEASURE
|
|
|
|
#define CONFIG_BATTERY_MEASURE 0
|
|
|
|
#define NO_LOW_BATTERY_SHUTDOWN
|
|
|
|
#endif
|
|
|
|
|
2007-03-16 23:47:03 +00:00
|
|
|
#ifndef CONFIG_RTC
|
|
|
|
#define CONFIG_RTC 0
|
|
|
|
#endif
|
|
|
|
|
Initial commit of the Samsung YP-R0 port.
This port is a hybrid native/RaaA port. It runs on a embedded linux system,
but is the only application. It therefore can implement lots of stuff that
native targets also implement, while leveraging the underlying linux kernel.
The port is quite advanced. User interface, audio playback, plugins work
mostly fine. Missing is e.g. power mangement and USB (see SamsungYPR0 wiki page).
Included in utils/ypr0tools are scripts and programs required to generate
a patched firmware. The patched firmware has the rootfs modified to load
Rockbox. It includes a early/safe USB mode.
This port needs a new toolchain, one that includes glibc headers and libraries.
rockboxdev.sh can generate it, but e.g. codesourcey and distro packages may
also work.
Most of the initial effort is done by Lorenzo Miori and others (on ABI),
including reverse engineering and patching of the original firmware,
initial drivers, and more. Big thanks to you.
Flyspray: FS#12348
Author: Lorenzo Miori, myself
Merry christmas to ypr0 owners! :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31415 a1c6a512-1295-4272-9138-f99709370657
2011-12-24 11:56:46 +00:00
|
|
|
#ifndef BATTERY_TYPES_COUNT
|
|
|
|
#define BATTERY_TYPES_COUNT 0
|
|
|
|
#endif
|
|
|
|
|
2012-01-03 23:44:38 +00:00
|
|
|
#ifndef BATTERY_CAPACITY_DEFAULT
|
|
|
|
#define BATTERY_CAPACITY_DEFAULT 0
|
|
|
|
#endif
|
|
|
|
|
Initial commit of the Samsung YP-R0 port.
This port is a hybrid native/RaaA port. It runs on a embedded linux system,
but is the only application. It therefore can implement lots of stuff that
native targets also implement, while leveraging the underlying linux kernel.
The port is quite advanced. User interface, audio playback, plugins work
mostly fine. Missing is e.g. power mangement and USB (see SamsungYPR0 wiki page).
Included in utils/ypr0tools are scripts and programs required to generate
a patched firmware. The patched firmware has the rootfs modified to load
Rockbox. It includes a early/safe USB mode.
This port needs a new toolchain, one that includes glibc headers and libraries.
rockboxdev.sh can generate it, but e.g. codesourcey and distro packages may
also work.
Most of the initial effort is done by Lorenzo Miori and others (on ABI),
including reverse engineering and patching of the original firmware,
initial drivers, and more. Big thanks to you.
Flyspray: FS#12348
Author: Lorenzo Miori, myself
Merry christmas to ypr0 owners! :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31415 a1c6a512-1295-4272-9138-f99709370657
2011-12-24 11:56:46 +00:00
|
|
|
#ifndef BATTERY_CAPACITY_INC
|
|
|
|
#define BATTERY_CAPACITY_INC 0
|
|
|
|
#endif
|
|
|
|
|
2007-11-11 04:48:33 +00:00
|
|
|
#ifndef CONFIG_ORIENTATION
|
|
|
|
#if LCD_HEIGHT > LCD_WIDTH
|
2008-04-29 01:09:39 +00:00
|
|
|
#define CONFIG_ORIENTATION SCREEN_PORTRAIT
|
2007-11-11 04:48:33 +00:00
|
|
|
#elif LCD_HEIGHT < LCD_WIDTH
|
|
|
|
#define CONFIG_ORIENTATION SCREEN_LANDSCAPE
|
|
|
|
#else
|
|
|
|
#define CONFIG_ORIENTATION SCREEN_SQUARE
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2009-01-13 14:41:29 +00:00
|
|
|
/* Pixel aspect ratio is defined in terms of a multiplier for pixel width and
|
|
|
|
* height, and is set to 1:1 if the target does not set a value
|
|
|
|
*/
|
|
|
|
#ifndef LCD_PIXEL_ASPECT_HEIGHT
|
|
|
|
#define LCD_PIXEL_ASPECT_HEIGHT 1
|
|
|
|
#endif
|
|
|
|
#ifndef LCD_PIXEL_ASPECT_WIDTH
|
|
|
|
#define LCD_PIXEL_ASPECT_WIDTH 1
|
|
|
|
#endif
|
|
|
|
|
2009-02-09 00:32:59 +00:00
|
|
|
/* Used for split displays (Sansa Clip). Set to 0 otherwise */
|
|
|
|
#ifndef LCD_SPLIT_LINES
|
|
|
|
#define LCD_SPLIT_LINES 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Simulator LCD dimensions. Set to standard dimensions if undefined */
|
|
|
|
#ifndef SIM_LCD_WIDTH
|
|
|
|
#define SIM_LCD_WIDTH LCD_WIDTH
|
|
|
|
#endif
|
|
|
|
#ifndef SIM_LCD_HEIGHT
|
|
|
|
#define SIM_LCD_HEIGHT (LCD_HEIGHT + LCD_SPLIT_LINES)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_REMOTE_LCD
|
|
|
|
#ifndef SIM_REMOTE_WIDTH
|
|
|
|
#define SIM_REMOTE_WIDTH LCD_REMOTE_WIDTH
|
|
|
|
#endif
|
|
|
|
#ifndef SIM_REMOTE_HEIGHT
|
|
|
|
#define SIM_REMOTE_HEIGHT LCD_REMOTE_HEIGHT
|
|
|
|
#endif
|
|
|
|
#endif /* HAVE_REMOTE_LCD */
|
|
|
|
|
2007-04-16 09:14:36 +00:00
|
|
|
/* define this in the target config.h to use a different size */
|
|
|
|
#ifndef CONFIG_DEFAULT_ICON_HEIGHT
|
|
|
|
#define CONFIG_DEFAULT_ICON_HEIGHT 8
|
|
|
|
#endif
|
|
|
|
#ifndef CONFIG_DEFAULT_ICON_WIDTH
|
|
|
|
#define CONFIG_DEFAULT_ICON_WIDTH 6
|
|
|
|
#endif
|
|
|
|
#ifndef CONFIG_REMOTE_DEFAULT_ICON_HEIGHT
|
|
|
|
#define CONFIG_REMOTE_DEFAULT_ICON_HEIGHT 8
|
|
|
|
#endif
|
|
|
|
#ifndef CONFIG_REMOTE_DEFAULT_ICON_WIDTH
|
|
|
|
#define CONFIG_REMOTE_DEFAULT_ICON_WIDTH 6
|
|
|
|
#endif
|
|
|
|
|
2011-11-19 13:46:25 +00:00
|
|
|
#if LCD_DEPTH > 1 || defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
|
|
|
|
#define HAVE_BACKDROP_IMAGE
|
|
|
|
#endif
|
|
|
|
|
2007-07-14 11:20:31 +00:00
|
|
|
#if (CONFIG_TUNER & (CONFIG_TUNER - 1)) != 0
|
|
|
|
/* Multiple possible tuners */
|
|
|
|
#define CONFIG_TUNER_MULTI
|
|
|
|
#endif
|
|
|
|
|
2010-01-19 22:07:28 +00:00
|
|
|
/* deactivate fading in bootloader */
|
|
|
|
#if defined(BOOTLOADER)
|
2009-01-26 23:21:49 +00:00
|
|
|
#undef CONFIG_BACKLIGHT_FADING
|
|
|
|
#define CONFIG_BACKLIGHT_FADING BACKLIGHT_NO_FADING
|
|
|
|
#endif
|
|
|
|
|
2009-03-23 00:05:56 +00:00
|
|
|
/* determine which setting/manual text to use */
|
2009-01-26 23:21:49 +00:00
|
|
|
#if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_PWM)
|
|
|
|
|
2009-03-23 00:05:56 +00:00
|
|
|
/* possibly overridden in target config */
|
|
|
|
#if !defined(HAVE_BACKLIGHT_FADING_BOOL_SETTING) \
|
|
|
|
&& !defined(HAVE_BACKLIGHT_FADING_INT_SETTING)
|
2009-01-26 23:21:49 +00:00
|
|
|
#define HAVE_BACKLIGHT_FADING_INT_SETTING
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#elif (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_SETTING) \
|
|
|
|
|| (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG) \
|
|
|
|
|| (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_TARGET)
|
|
|
|
|
2009-03-23 00:05:56 +00:00
|
|
|
/* possibly overridden in target config */
|
2009-01-26 23:21:49 +00:00
|
|
|
#if !defined(HAVE_BACKLIGHT_FADING_BOOL_SETTING) \
|
|
|
|
&& !defined(HAVE_BACKLIGHT_FADING_INT_SETTING)
|
|
|
|
#define HAVE_BACKLIGHT_FADING_BOOL_SETTING
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* CONFIG_BACKLIGHT_FADING */
|
|
|
|
|
2009-07-17 22:28:49 +00:00
|
|
|
/* Storage related config handling */
|
|
|
|
|
|
|
|
#if (CONFIG_STORAGE & (CONFIG_STORAGE - 1)) != 0
|
|
|
|
/* Multiple storage drivers */
|
|
|
|
#define CONFIG_STORAGE_MULTI
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Explicit HAVE_MULTIVOLUME in the config file. Allow the maximum number */
|
|
|
|
#ifdef HAVE_MULTIVOLUME
|
|
|
|
#define NUM_VOLUMES_PER_DRIVE 4
|
|
|
|
#else
|
|
|
|
#define NUM_VOLUMES_PER_DRIVE 1
|
|
|
|
#endif
|
|
|
|
#if defined(CONFIG_STORAGE_MULTI) && !defined(HAVE_MULTIDRIVE)
|
|
|
|
#define HAVE_MULTIDRIVE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(HAVE_MULTIDRIVE) && !defined(HAVE_MULTIVOLUME)
|
|
|
|
#define HAVE_MULTIVOLUME
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(HAVE_MULTIDRIVE) && !defined(NUM_DRIVES)
|
|
|
|
#error HAVE_MULTIDRIVE needs to have an explicit NUM_DRIVES
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef NUM_DRIVES
|
|
|
|
#define NUM_DRIVES 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define NUM_VOLUMES (NUM_DRIVES * NUM_VOLUMES_PER_DRIVE)
|
|
|
|
|
2007-07-26 21:51:44 +00:00
|
|
|
#if defined(BOOTLOADER) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
|
|
|
|
/* Bootloaders don't use CPU frequency adjustment */
|
|
|
|
#undef HAVE_ADJUSTABLE_CPU_FREQ
|
|
|
|
#endif
|
|
|
|
|
2006-08-16 22:04:39 +00:00
|
|
|
/* Enable the directory cache and tagcache in RAM if we have
|
|
|
|
* plenty of RAM. Both features can be enabled independently. */
|
2010-09-17 20:13:13 +00:00
|
|
|
#if (MEMORYSIZE >= 8) && !defined(BOOTLOADER) && !defined(__PCTOOL__) \
|
|
|
|
&& !defined(APPLICATION)
|
2006-09-16 16:18:11 +00:00
|
|
|
#define HAVE_DIRCACHE
|
2006-10-25 10:17:57 +00:00
|
|
|
#ifdef HAVE_TAGCACHE
|
2006-09-16 16:18:11 +00:00
|
|
|
#define HAVE_TC_RAMCACHE
|
|
|
|
#endif
|
2006-10-25 10:17:57 +00:00
|
|
|
#endif
|
2006-09-16 16:18:11 +00:00
|
|
|
|
2010-06-09 08:14:41 +00:00
|
|
|
#if defined(HAVE_TAGCACHE) && defined(HAVE_LCD_BITMAP)
|
2010-06-09 08:51:29 +00:00
|
|
|
#define HAVE_PICTUREFLOW_INTEGRATION
|
2010-06-09 08:14:41 +00:00
|
|
|
#endif
|
|
|
|
|
2007-05-22 15:56:05 +00:00
|
|
|
/* Add one HAVE_ define for all mas35xx targets */
|
|
|
|
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3507D) || (CONFIG_CODEC == MAS3539F)
|
|
|
|
#define HAVE_MAS35XX
|
|
|
|
#endif
|
|
|
|
|
2008-04-15 13:35:41 +00:00
|
|
|
#if (CONFIG_CODEC == SWCODEC)
|
2008-05-21 08:42:11 +00:00
|
|
|
#ifdef BOOTLOADER
|
|
|
|
|
2011-01-15 08:19:30 +00:00
|
|
|
#ifdef HAVE_BOOTLOADER_USB_MODE
|
2008-05-21 08:42:11 +00:00
|
|
|
/* Priority in bootloader is wanted */
|
|
|
|
#define HAVE_PRIORITY_SCHEDULING
|
2009-01-22 22:05:04 +00:00
|
|
|
#define USB_STATUS_BY_EVENT
|
2012-01-04 21:55:09 +00:00
|
|
|
#define USB_DETECT_BY_REQUEST
|
2011-01-17 06:50:27 +00:00
|
|
|
#if defined(HAVE_USBSTACK) && CONFIG_USBOTG == USBOTG_ARC
|
|
|
|
#define INCLUDE_TIMEOUT_API
|
2011-12-31 18:44:27 +00:00
|
|
|
#define USB_DRIVER_CLOSE
|
2011-01-17 06:50:27 +00:00
|
|
|
#endif
|
2008-05-21 08:42:11 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#else /* !BOOTLOADER */
|
2008-04-15 13:35:41 +00:00
|
|
|
|
2008-04-18 16:42:50 +00:00
|
|
|
#define HAVE_EXTENDED_MESSAGING_AND_NAME
|
2010-04-16 22:21:09 +00:00
|
|
|
#define HAVE_WAKEUP_EXT_CB
|
2008-04-18 16:42:50 +00:00
|
|
|
|
2010-08-02 20:34:47 +00:00
|
|
|
|
2011-02-18 22:46:01 +00:00
|
|
|
#if defined(ASSEMBLER_THREADS) \
|
|
|
|
|| defined(HAVE_WIN32_FIBER_THREADS) \
|
|
|
|
|| defined(HAVE_SIGALTSTACK_THREADS)
|
2010-08-02 20:34:47 +00:00
|
|
|
#define HAVE_PRIORITY_SCHEDULING
|
|
|
|
#endif
|
|
|
|
|
2010-06-21 16:53:00 +00:00
|
|
|
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
2006-09-16 16:18:11 +00:00
|
|
|
#define HAVE_PRIORITY_SCHEDULING
|
2006-10-15 11:57:52 +00:00
|
|
|
#define HAVE_SCHEDULER_BOOSTCTRL
|
2010-06-21 16:53:00 +00:00
|
|
|
#endif /* PLATFORM_NATIVE */
|
2008-04-15 13:35:41 +00:00
|
|
|
|
2010-08-02 20:34:47 +00:00
|
|
|
|
2011-01-29 00:44:59 +00:00
|
|
|
#ifdef HAVE_USBSTACK
|
|
|
|
#if CONFIG_USBOTG == USBOTG_ARC
|
2009-01-22 22:05:04 +00:00
|
|
|
#define USB_STATUS_BY_EVENT
|
2012-01-04 21:55:09 +00:00
|
|
|
#define USB_DETECT_BY_REQUEST
|
2009-01-22 22:05:04 +00:00
|
|
|
#define INCLUDE_TIMEOUT_API
|
2011-01-29 00:44:59 +00:00
|
|
|
#elif CONFIG_USBOTG == USBOTG_AS3525
|
|
|
|
#define USB_STATUS_BY_EVENT
|
2012-01-04 21:55:09 +00:00
|
|
|
#define USB_DETECT_BY_REQUEST
|
2011-12-31 20:08:34 +00:00
|
|
|
#elif CONFIG_USBOTG == USBOTG_S3C6400X /* FIXME */ && CONFIG_CPU == AS3525v2
|
2011-01-29 00:44:59 +00:00
|
|
|
#define USB_STATUS_BY_EVENT
|
2012-01-04 21:55:09 +00:00
|
|
|
#define USB_DETECT_BY_REQUEST
|
2011-09-06 12:39:28 +00:00
|
|
|
#elif CONFIG_USBOTG == USBOTG_RK27XX
|
|
|
|
#define USB_STATUS_BY_EVENT
|
2012-01-04 21:55:09 +00:00
|
|
|
#define USB_DETECT_BY_REQUEST
|
2011-01-29 00:44:59 +00:00
|
|
|
#endif /* CONFIG_USB == */
|
|
|
|
#endif /* HAVE_USBSTACK */
|
2009-05-23 14:30:20 +00:00
|
|
|
|
2008-04-15 13:35:41 +00:00
|
|
|
#endif /* BOOTLOADER */
|
|
|
|
|
2009-01-22 22:05:04 +00:00
|
|
|
#if defined(HAVE_USBSTACK) || (CONFIG_CPU == JZ4732) \
|
2009-12-31 19:15:20 +00:00
|
|
|
|| (CONFIG_CPU == AS3525) || (CONFIG_CPU == AS3525v2) \
|
2010-11-06 01:01:01 +00:00
|
|
|
|| defined(CPU_S5L870X) || (CONFIG_CPU == S3C2440) \
|
2011-05-30 21:10:37 +00:00
|
|
|
|| defined(APPLICATION) || (CONFIG_CPU == PP5002) \
|
2011-07-02 02:12:10 +00:00
|
|
|
|| (CONFIG_CPU == RK27XX) || (CONFIG_CPU == IMX233)
|
2011-03-02 08:49:38 +00:00
|
|
|
#define HAVE_SEMAPHORE_OBJECTS
|
2008-03-30 04:59:51 +00:00
|
|
|
#endif
|
2008-04-18 16:42:50 +00:00
|
|
|
|
2009-11-12 05:04:23 +00:00
|
|
|
/*include support for crossfading - requires significant PCM buffer space*/
|
|
|
|
#if MEMORYSIZE > 2
|
|
|
|
#define HAVE_CROSSFADE
|
|
|
|
#endif
|
|
|
|
|
2008-04-18 16:42:50 +00:00
|
|
|
#endif /* (CONFIG_CODEC == SWCODEC) */
|
2006-07-10 16:22:03 +00:00
|
|
|
|
2006-03-26 18:24:36 +00:00
|
|
|
/* Determine if accesses should be strictly long aligned. */
|
2009-02-26 21:15:40 +00:00
|
|
|
#if (CONFIG_CPU == SH7034) || defined(CPU_ARM) || defined(CPU_MIPS)
|
2006-03-26 18:24:36 +00:00
|
|
|
#define ROCKBOX_STRICT_ALIGN 1
|
|
|
|
#endif
|
|
|
|
|
2010-06-11 04:41:36 +00:00
|
|
|
#if defined(CPU_ARM) && defined(__ASSEMBLER__)
|
|
|
|
/* ARMv4T doesn't switch the T bit when popping pc directly, we must use BX */
|
2010-06-11 04:50:51 +00:00
|
|
|
.macro ldmpc cond="", order="ia", regs
|
2010-06-11 04:41:36 +00:00
|
|
|
#if ARM_ARCH == 4 && defined(USE_THUMB)
|
|
|
|
ldm\cond\order sp!, { \regs, lr }
|
|
|
|
bx\cond lr
|
|
|
|
#else
|
|
|
|
ldm\cond\order sp!, { \regs, pc }
|
|
|
|
#endif
|
|
|
|
.endm
|
|
|
|
.macro ldrpc cond=""
|
|
|
|
#if ARM_ARCH == 4 && defined(USE_THUMB)
|
|
|
|
ldr\cond lr, [sp], #4
|
|
|
|
bx\cond lr
|
|
|
|
#else
|
|
|
|
ldr\cond pc, [sp], #4
|
|
|
|
#endif
|
|
|
|
.endm
|
|
|
|
#endif
|
|
|
|
|
2005-06-27 21:23:03 +00:00
|
|
|
#ifndef CODEC_SIZE
|
|
|
|
#define CODEC_SIZE 0
|
|
|
|
#endif
|
|
|
|
|
2006-01-18 20:54:13 +00:00
|
|
|
/* This attribute can be used to ensure that certain symbols are never profiled
|
|
|
|
* which can be important as profiling a function de-inlines it */
|
|
|
|
#ifdef RB_PROFILE
|
|
|
|
#define NO_PROF_ATTR __attribute__ ((no_instrument_function))
|
|
|
|
#else
|
|
|
|
#define NO_PROF_ATTR
|
|
|
|
#endif
|
|
|
|
|
2005-07-03 14:05:12 +00:00
|
|
|
/* IRAM usage */
|
2010-06-21 16:53:00 +00:00
|
|
|
#if (CONFIG_PLATFORM & PLATFORM_NATIVE) && /* Not for hosted environments */ \
|
2005-07-03 14:05:12 +00:00
|
|
|
(((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \
|
2006-03-28 12:48:56 +00:00
|
|
|
defined(CPU_COLDFIRE) || /* Coldfire: core, plugins, codecs */ \
|
2006-11-22 00:41:30 +00:00
|
|
|
defined(CPU_PP) || /* PortalPlayer: core, plugins, codecs */ \
|
2010-06-18 17:33:51 +00:00
|
|
|
(CONFIG_CPU == AS3525 && MEMORYSIZE > 2 && !defined(BOOTLOADER)) || /* AS3525 +2MB: core, plugins, codecs */ \
|
|
|
|
(CONFIG_CPU == AS3525 && MEMORYSIZE <= 2 && !defined(PLUGIN) && !defined(CODEC) && !defined(BOOTLOADER)) || /* AS3525 2MB: core only */ \
|
|
|
|
(CONFIG_CPU == AS3525v2 && !defined(PLUGIN) && !defined(CODEC) && !defined(BOOTLOADER)) || /* AS3525v2: core only */ \
|
2008-06-27 23:24:34 +00:00
|
|
|
(CONFIG_CPU == PNX0101) || \
|
2010-05-31 21:00:25 +00:00
|
|
|
(CONFIG_CPU == TCC7801) || \
|
2011-10-02 15:39:30 +00:00
|
|
|
(CONFIG_CPU == IMX233 && !defined(PLUGIN) && !defined(CODEC)) || /* IMX233: core only */ \
|
2009-07-15 21:34:31 +00:00
|
|
|
defined(CPU_S5L870X)) || /* Samsung S5L8700: core, plugins, codecs */ \
|
2009-06-18 18:16:15 +00:00
|
|
|
(CONFIG_CPU == JZ4732 && !defined(PLUGIN) && !defined(CODEC)) /* Jz4740: core only */
|
2006-02-05 16:52:22 +00:00
|
|
|
#define ICODE_ATTR __attribute__ ((section(".icode")))
|
|
|
|
#define ICONST_ATTR __attribute__ ((section(".irodata")))
|
|
|
|
#define IDATA_ATTR __attribute__ ((section(".idata")))
|
|
|
|
#define IBSS_ATTR __attribute__ ((section(".ibss")))
|
2005-07-03 14:05:12 +00:00
|
|
|
#define USE_IRAM
|
2010-04-05 19:18:15 +00:00
|
|
|
#if CONFIG_CPU != SH7034 && (CONFIG_CPU != AS3525 || MEMORYSIZE > 2) \
|
2011-10-02 15:39:30 +00:00
|
|
|
&& CONFIG_CPU != JZ4732 && CONFIG_CPU != AS3525v2 && CONFIG_CPU != IMX233
|
2007-11-18 17:12:19 +00:00
|
|
|
#define PLUGIN_USE_IRAM
|
2006-11-18 02:18:29 +00:00
|
|
|
#endif
|
2010-06-11 19:42:21 +00:00
|
|
|
#if defined(CPU_ARM) && !defined(__ARM_EABI__)
|
2007-02-17 11:19:14 +00:00
|
|
|
/* GCC quirk workaround: arm-elf-gcc treats static functions as short_call
|
|
|
|
* when not compiling with -ffunction-sections, even when the function has
|
2010-06-11 19:42:21 +00:00
|
|
|
* a section attribute.
|
|
|
|
* This is fixed with eabi since all calls are short ones by default */
|
2007-02-17 11:19:14 +00:00
|
|
|
#define STATICIRAM
|
|
|
|
#else
|
|
|
|
#define STATICIRAM static
|
|
|
|
#endif
|
2005-07-03 14:05:12 +00:00
|
|
|
#else
|
|
|
|
#define ICODE_ATTR
|
2005-10-19 19:35:24 +00:00
|
|
|
#define ICONST_ATTR
|
2005-07-03 14:05:12 +00:00
|
|
|
#define IDATA_ATTR
|
2005-10-19 19:35:24 +00:00
|
|
|
#define IBSS_ATTR
|
2007-02-17 11:19:14 +00:00
|
|
|
#define STATICIRAM static
|
2005-07-03 14:05:12 +00:00
|
|
|
#endif
|
2010-06-21 16:53:00 +00:00
|
|
|
|
2010-06-11 14:39:35 +00:00
|
|
|
#if (defined(CPU_PP) || (CONFIG_CPU == AS3525) || (CONFIG_CPU == AS3525v2) || \
|
2011-07-23 11:45:22 +00:00
|
|
|
(CONFIG_CPU == IMX31L) || (CONFIG_CPU == IMX233)) \
|
2010-06-21 16:53:00 +00:00
|
|
|
&& (CONFIG_PLATFORM & PLATFORM_NATIVE) && !defined(BOOTLOADER)
|
2010-03-04 17:44:57 +00:00
|
|
|
/* Functions that have INIT_ATTR attached are NOT guaranteed to survive after
|
|
|
|
* root_menu() has been called. Their code may be overwritten by other data or
|
|
|
|
* code in order to save RAM, and references to them might point into
|
|
|
|
* zombie area.
|
|
|
|
*
|
|
|
|
* It is critical that you make sure these functions are only called before
|
|
|
|
* the final call to root_menu() (see apps/main.c) is called (i.e. basically
|
|
|
|
* only while main() runs), otherwise things may go wild,
|
|
|
|
* from crashes to freezes to exploding daps.
|
|
|
|
*/
|
2010-03-03 23:20:32 +00:00
|
|
|
#define INIT_ATTR __attribute__ ((section(".init")))
|
2011-01-08 20:42:51 +00:00
|
|
|
#define INITDATA_ATTR __attribute__ ((section(".initdata")))
|
2010-03-03 23:52:36 +00:00
|
|
|
#define HAVE_INIT_ATTR
|
2010-03-03 23:20:32 +00:00
|
|
|
#else
|
|
|
|
#define INIT_ATTR
|
2011-01-08 20:42:51 +00:00
|
|
|
#define INITDATA_ATTR
|
2010-03-03 23:20:32 +00:00
|
|
|
#endif
|
2005-07-03 14:05:12 +00:00
|
|
|
|
2011-11-20 18:44:40 +00:00
|
|
|
/* We need to call storage_init more than once only if USB storage mode is
|
|
|
|
* handled in hardware:
|
|
|
|
* Deinit storage -> let hardware handle USB mode -> storage_init() again
|
|
|
|
*/
|
|
|
|
#if defined(HAVE_USBSTACK) || defined(USB_NONE)
|
|
|
|
#define STORAGE_INIT_ATTR INIT_ATTR
|
|
|
|
#else
|
|
|
|
#define STORAGE_INIT_ATTR
|
|
|
|
#endif
|
|
|
|
|
2010-06-21 16:53:00 +00:00
|
|
|
#if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__)
|
2009-10-09 17:55:46 +00:00
|
|
|
#define DATA_ATTR __attribute__ ((section("__DATA, .data")))
|
2009-02-27 23:15:59 +00:00
|
|
|
#else
|
|
|
|
#define DATA_ATTR __attribute__ ((section(".data")))
|
|
|
|
#endif
|
|
|
|
|
2006-04-11 10:37:37 +00:00
|
|
|
#ifndef IRAM_LCDFRAMEBUFFER
|
|
|
|
/* if the LCD framebuffer has not been moved to IRAM, define it empty here */
|
|
|
|
#define IRAM_LCDFRAMEBUFFER
|
|
|
|
#endif
|
|
|
|
|
2007-10-16 01:25:17 +00:00
|
|
|
/* Change this if you want to build a single-core firmware for a multicore
|
|
|
|
* target for debugging */
|
2009-07-13 21:09:39 +00:00
|
|
|
#if defined(BOOTLOADER) || (CONFIG_CPU == PP6100)
|
2007-10-16 01:25:17 +00:00
|
|
|
#define FORCE_SINGLE_CORE
|
|
|
|
#endif
|
|
|
|
|
2007-09-29 06:56:21 +00:00
|
|
|
#if defined(CPU_PP)
|
|
|
|
#define IDLE_STACK_SIZE 0x80
|
|
|
|
#define IDLE_STACK_WORDS 0x20
|
|
|
|
|
2008-04-06 04:34:57 +00:00
|
|
|
/* Attributes to place data in uncached DRAM */
|
|
|
|
/* These are useful beyond dual-core and ultimately beyond PP since they may
|
|
|
|
* be used for DMA buffers and such without cache maintenence calls. */
|
|
|
|
#define NOCACHEBSS_ATTR __attribute__((section(".ncbss"),nocommon))
|
|
|
|
#define NOCACHEDATA_ATTR __attribute__((section(".ncdata"),nocommon))
|
|
|
|
|
2007-11-27 01:20:26 +00:00
|
|
|
#if !defined(FORCE_SINGLE_CORE)
|
2007-10-16 01:25:17 +00:00
|
|
|
|
2007-03-04 20:06:41 +00:00
|
|
|
#define NUM_CORES 2
|
2010-06-10 17:31:45 +00:00
|
|
|
#define HAVE_CORELOCK_OBJECT
|
2007-03-04 20:06:41 +00:00
|
|
|
#define CURRENT_CORE current_core()
|
2008-04-06 04:34:57 +00:00
|
|
|
/* Attributes for core-shared data in DRAM where IRAM is better used for other
|
|
|
|
* purposes. */
|
|
|
|
#define SHAREDBSS_ATTR NOCACHEBSS_ATTR
|
|
|
|
#define SHAREDDATA_ATTR NOCACHEDATA_ATTR
|
2007-03-04 20:06:41 +00:00
|
|
|
|
2007-10-16 01:25:17 +00:00
|
|
|
#define IF_COP(...) __VA_ARGS__
|
|
|
|
#define IF_COP_VOID(...) __VA_ARGS__
|
|
|
|
#define IF_COP_CORE(core) core
|
|
|
|
|
2010-06-10 17:31:45 +00:00
|
|
|
#endif /* !defined(FORCE_SINGLE_CORE) */
|
2007-10-16 01:25:17 +00:00
|
|
|
|
2007-09-29 06:56:21 +00:00
|
|
|
#endif /* CPU_PP */
|
2007-03-04 20:06:41 +00:00
|
|
|
|
2011-09-05 11:29:32 +00:00
|
|
|
#if CONFIG_CPU == IMX31L || CONFIG_CPU == IMX233
|
2010-05-08 07:45:34 +00:00
|
|
|
#define NOCACHEBSS_ATTR __attribute__((section(".ncbss"),nocommon))
|
|
|
|
#define NOCACHEDATA_ATTR __attribute__((section(".ncdata"),nocommon))
|
|
|
|
#endif
|
|
|
|
|
2007-09-29 06:56:21 +00:00
|
|
|
#ifndef NUM_CORES
|
|
|
|
/* Default to single core */
|
2007-03-04 20:06:41 +00:00
|
|
|
#define NUM_CORES 1
|
2008-04-06 04:34:57 +00:00
|
|
|
#define CURRENT_CORE CPU
|
|
|
|
/* Attributes for core-shared data in DRAM - no caching considerations */
|
|
|
|
#define SHAREDBSS_ATTR
|
|
|
|
#define SHAREDDATA_ATTR
|
2008-04-16 19:07:10 +00:00
|
|
|
#ifndef NOCACHEBSS_ATTR
|
2008-04-16 18:58:06 +00:00
|
|
|
#define NOCACHEBSS_ATTR
|
|
|
|
#define NOCACHEDATA_ATTR
|
2008-04-16 19:07:10 +00:00
|
|
|
#endif
|
2007-03-04 20:06:41 +00:00
|
|
|
|
2007-09-28 10:20:02 +00:00
|
|
|
#define IF_COP(...)
|
2007-10-16 01:25:17 +00:00
|
|
|
#define IF_COP_VOID(...) void
|
|
|
|
#define IF_COP_CORE(core) CURRENT_CORE
|
|
|
|
|
2007-09-29 06:56:21 +00:00
|
|
|
#endif /* NUM_CORES */
|
2007-03-04 20:06:41 +00:00
|
|
|
|
2008-01-27 21:13:04 +00:00
|
|
|
#ifdef HAVE_HEADPHONE_DETECTION
|
|
|
|
/* Timeout objects required if headphone detection is enabled */
|
|
|
|
#define INCLUDE_TIMEOUT_API
|
|
|
|
#endif /* HAVE_HEADPHONE_DETECTION */
|
|
|
|
|
2010-10-31 11:11:46 +00:00
|
|
|
#ifdef HAVE_TOUCHSCREEN
|
|
|
|
/* Timeout objects required for kinetic list scrolling */
|
|
|
|
#define INCLUDE_TIMEOUT_API
|
2011-03-27 08:01:58 +00:00
|
|
|
/* Enable skin variable system, may not be the best place for this #define. */
|
|
|
|
#define HAVE_SKIN_VARIABLES
|
2010-10-31 11:11:46 +00:00
|
|
|
#endif /* HAVE_TOUCHSCREEN */
|
|
|
|
|
2010-06-05 20:43:30 +00:00
|
|
|
#if defined(HAVE_USB_CHARGING_ENABLE) && defined(HAVE_USBSTACK)
|
|
|
|
/* USB charging support in the USB stack requires timeout objects */
|
|
|
|
#define INCLUDE_TIMEOUT_API
|
|
|
|
#endif /* HAVE_USB_CHARGING_ENABLE && HAVE_USBSTACK */
|
|
|
|
|
2011-11-13 18:00:28 +00:00
|
|
|
#if defined(HAVE_GUI_BOOST) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
|
|
|
|
/* Timeout objects required if GUI boost is enabled */
|
|
|
|
#define INCLUDE_TIMEOUT_API
|
|
|
|
#endif /* HAVE_GUI_BOOST && HAVE_ADJUSTABLE_CPU_FREQ */
|
|
|
|
|
2008-11-01 17:33:21 +00:00
|
|
|
#if defined(HAVE_USBSTACK) || (CONFIG_STORAGE & STORAGE_NAND)
|
|
|
|
#define STORAGE_GET_INFO
|
|
|
|
#endif
|
|
|
|
|
2008-12-19 11:13:58 +00:00
|
|
|
#ifdef CPU_MIPS
|
|
|
|
#include <stdbool.h> /* MIPS GCC fix? */
|
|
|
|
#endif
|
|
|
|
|
2009-05-23 14:30:20 +00:00
|
|
|
#if defined(HAVE_USBSTACK)
|
|
|
|
/* Define the implemented USB transport classes */
|
|
|
|
#if CONFIG_USBOTG == USBOTG_ISP1583
|
|
|
|
#define USB_HAS_BULK
|
2009-07-17 03:44:01 +00:00
|
|
|
#elif (CONFIG_USBOTG == USBOTG_ARC) || \
|
|
|
|
(CONFIG_USBOTG == USBOTG_JZ4740) || \
|
2010-06-28 09:46:13 +00:00
|
|
|
(CONFIG_USBOTG == USBOTG_M66591) || \
|
|
|
|
(CONFIG_USBOTG == USBOTG_AS3525)
|
2009-05-23 14:30:20 +00:00
|
|
|
#define USB_HAS_BULK
|
|
|
|
#define USB_HAS_INTERRUPT
|
2009-07-17 03:44:01 +00:00
|
|
|
#elif defined(CPU_TCC780X) || defined(CPU_TCC77X)
|
2009-05-23 14:30:20 +00:00
|
|
|
#define USB_HAS_BULK
|
2011-12-31 20:08:34 +00:00
|
|
|
#elif CONFIG_USBOTG == USBOTG_S3C6400X
|
2009-10-20 09:54:08 +00:00
|
|
|
#define USB_HAS_BULK
|
2010-03-10 03:20:48 +00:00
|
|
|
//#define USB_HAS_INTERRUPT -- seems to be broken
|
2009-05-23 14:30:20 +00:00
|
|
|
#endif /* CONFIG_USBOTG */
|
|
|
|
|
2010-06-28 09:46:13 +00:00
|
|
|
#if (CONFIG_USBOTG == USBOTG_ARC) || \
|
|
|
|
(CONFIG_USBOTG == USBOTG_AS3525)
|
2010-03-12 10:59:34 +00:00
|
|
|
#define USB_HAS_ISOCHRONOUS
|
|
|
|
#endif
|
|
|
|
|
2009-05-23 14:30:20 +00:00
|
|
|
/* define the class drivers to enable */
|
2009-05-23 15:19:11 +00:00
|
|
|
#ifdef BOOTLOADER
|
2009-05-23 14:30:20 +00:00
|
|
|
|
|
|
|
/* enable usb storage for targets that do bootloader usb */
|
2011-01-15 08:19:30 +00:00
|
|
|
#if defined(HAVE_BOOTLOADER_USB_MODE) || \
|
2011-12-31 20:08:34 +00:00
|
|
|
defined(CREATIVE_ZVx) || defined(CPU_TCC77X) || defined(CPU_TCC780X) || \
|
|
|
|
CONFIG_USBOTG == USBOTG_JZ4740 || CONFIG_USBOTG == USBOTG_AS3525 || \
|
2011-12-31 20:14:49 +00:00
|
|
|
CONFIG_USBOTG == USBOTG_S3C6400X
|
2009-05-23 14:30:20 +00:00
|
|
|
#define USB_ENABLE_STORAGE
|
|
|
|
#endif
|
|
|
|
|
2009-05-23 15:19:11 +00:00
|
|
|
#else /* BOOTLOADER */
|
|
|
|
|
2010-06-21 16:53:00 +00:00
|
|
|
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
2010-09-17 20:00:04 +00:00
|
|
|
#ifdef USB_HAS_BULK
|
2009-05-23 15:19:11 +00:00
|
|
|
//#define USB_ENABLE_SERIAL
|
2010-09-17 20:00:04 +00:00
|
|
|
#ifdef USE_ROCKBOX_USB
|
2010-05-18 10:04:32 +00:00
|
|
|
#define USB_ENABLE_STORAGE
|
2010-09-17 20:00:04 +00:00
|
|
|
#endif /* USE_ROCKBOX_USB */
|
|
|
|
#endif /* USB_HAS_BULK */
|
2009-05-23 15:19:11 +00:00
|
|
|
|
|
|
|
#ifdef USB_HAS_INTERRUPT
|
2010-05-18 10:04:32 +00:00
|
|
|
#define USB_ENABLE_HID
|
2009-05-23 15:19:11 +00:00
|
|
|
#else
|
|
|
|
#define USB_ENABLE_CHARGING_ONLY
|
|
|
|
#endif
|
2009-10-20 18:33:23 +00:00
|
|
|
#endif
|
2009-05-23 15:19:11 +00:00
|
|
|
|
2009-05-23 14:30:20 +00:00
|
|
|
#endif /* BOOTLOADER */
|
|
|
|
|
|
|
|
#endif /* HAVE_USBSTACK */
|
|
|
|
|
2010-02-11 19:15:37 +00:00
|
|
|
/* This attribute can be used to enable to detection of plugin file handles leaks.
|
|
|
|
* When enabled, the plugin core will monitor open/close/creat and when the plugin exits
|
|
|
|
* will display an error message if the plugin leaked some file handles */
|
2010-06-21 16:53:00 +00:00
|
|
|
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
2010-02-11 19:15:37 +00:00
|
|
|
#define HAVE_PLUGIN_CHECK_OPEN_CLOSE
|
|
|
|
#endif
|
2009-05-23 14:30:20 +00:00
|
|
|
|
2010-06-21 16:53:00 +00:00
|
|
|
#if defined(HAVE_DIRCACHE) && (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
2010-04-03 22:02:09 +00:00
|
|
|
#define HAVE_IO_PRIORITY
|
|
|
|
#endif
|
|
|
|
|
2011-06-29 06:37:04 +00:00
|
|
|
#if defined(CPU_COLDIRE) || CONFIG_CPU == IMX31L
|
|
|
|
/* Can record and play simultaneously */
|
|
|
|
#define HAVE_PCM_FULL_DUPLEX
|
|
|
|
#endif
|
|
|
|
|
2007-09-29 06:56:21 +00:00
|
|
|
#endif /* __CONFIG_H__ */
|