Do some #ifdef'ing to make the Player happy.
[kugel-rb.git] / firmware / export / config-ifp7xx.h
blob1c85252ebaabc6eb4aeedcc38a292f4c2ded7e7a
1 /*
2 * This config file is for iriver iFP-799
3 */
4 #define TARGET_TREE
6 #define IRIVER_IFP7XX_SERIES 1
8 #define MODEL_NAME "iriver iFP-799"
10 /* For Rolo and boot loader */
11 #define MODEL_NUMBER 6
13 /* define this if you have recording possibility */
14 /*#define HAVE_RECORDING*/
16 /* define this if you have a bitmap LCD display */
17 #define HAVE_LCD_BITMAP
19 /* define this if you have a colour LCD */
20 /* #define HAVE_LCD_COLOR */
22 /* define this if you would like tagcache to build on this target */
23 /* #define HAVE_TAGCACHE */
25 /* LCD dimensions */
26 #define LCD_WIDTH 128
27 #define LCD_HEIGHT 64
28 #define LCD_DEPTH 1
30 #define LCD_PIXELFORMAT VERTICAL_PACKING
32 /* Display colours, for screenshots and sim (0xRRGGBB) */
33 #define LCD_DARKCOLOR 0x000000
34 #define LCD_BRIGHTCOLOR 0x5e6854
35 #define LCD_BL_DARKCOLOR 0x000000
36 #define LCD_BL_BRIGHTCOLOR 0x3ca0e6
38 #define CONFIG_KEYPAD IRIVER_IFP7XX_PAD
40 #define CONFIG_STORAGE STORAGE_NAND
42 #define CONFIG_NAND NAND_IFP7XX
44 #define HAVE_FAT16SUPPORT
46 /* Define this if you do software codec */
47 #define CONFIG_CODEC SWCODEC
49 /* Define this if you have a software controlled poweroff */
50 #define HAVE_SW_POWEROFF
52 /* The number of bytes reserved for loadable codecs */
53 #define CODEC_SIZE 0x38000
55 /* The number of bytes reserved for loadable plugins */
56 #define PLUGIN_BUFFER_SIZE 0x10000
58 /* Define this if you have the WM8975 audio codec */
59 /* #define HAVE_WM8975 */
61 /* Virtual LED (icon) */
62 #define CONFIG_LED LED_VIRTUAL
64 #define HAVE_LCD_CONTRAST
66 #define MIN_CONTRAST_SETTING 5
67 #define MAX_CONTRAST_SETTING 63
68 #define DEFAULT_CONTRAST_SETTING 40
70 /* define this if you have a flash memory storage */
71 #define HAVE_FLASH_STORAGE
73 #define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */
74 #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
75 #define BATTERY_CAPACITY_MAX 2800 /* max. capacity selectable */
76 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
77 #define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */
79 /* define this if the unit should not shut down on low battery. */
80 #define NO_LOW_BATTERY_SHUTDOWN
82 #ifndef SIMULATOR
84 /* Define this if you have a Philips PNX0101 */
85 #define CONFIG_CPU PNX0101
87 /* Define this if you want to use the PNX0101 i2c interface */
88 #define CONFIG_I2C I2C_PNX0101
90 /* The start address index for ROM builds */
91 #define ROM_START 0x00000000
93 /* Define this for LCD backlight available */
94 #define HAVE_BACKLIGHT
96 /* Define this to the CPU frequency */
97 #define CPU_FREQ 48000000
99 #define CONFIG_LCD LCD_IFP7XX
101 /* Offset ( in the firmware file's header ) to the file length */
102 #define FIRMWARE_OFFSET_FILE_LENGTH 0
104 /* Offset ( in the firmware file's header ) to the file CRC */
105 #define FIRMWARE_OFFSET_FILE_CRC 0
107 /* Offset ( in the firmware file's header ) to the real data */
108 #define FIRMWARE_OFFSET_FILE_DATA 8
110 #define USB_ISP1582
112 #define HAVE_GDB_API
114 /* Define this if you have adjustable CPU frequency */
115 #define HAVE_ADJUSTABLE_CPU_FREQ
117 #define BOOTFILE_EXT "iriver"
118 #define BOOTFILE "rockbox." BOOTFILE_EXT
119 #define BOOTDIR "/.rockbox"
121 #define IBSS_ATTR_VOICE_STACK
122 #define ICODE_ATTR_TREMOR_NOT_MDCT
123 #define ICODE_ATTR_TREMOR_MDCT
124 #define ICODE_ATTR_FLAC
125 #define IBSS_ATTR_FLAC_DECODED0
126 #define ICONST_ATTR_MPA_HUFFMAN
127 #define IBSS_ATTR_MPC_SAMPLE_BUF
128 #define ICODE_ATTR_ALAC
129 #define IBSS_ATTR_SHORTEN_DECODED0
131 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
133 #endif