Philips GoGear SA9200 port. Working bootloader and normal builds, including sound...
[Rockbox.git] / firmware / export / config-sa9200.h
blob9cdfe6bba79898ce6e9a65566b8a05102548c16c
1 /*
2 * This config file is for the Philips GoGear SA9200
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 26
8 #define MODEL_NAME "Philips GoGear SA200"
10 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
12 /* define this if you have a bitmap LCD display */
13 #define HAVE_LCD_BITMAP
15 /* define this if you have a colour LCD */
16 #define HAVE_LCD_COLOR
18 /* define this if you want album art for this target */
19 #define HAVE_ALBUMART
21 /* define this if you have a light associated with the buttons */
22 #define HAVE_BUTTON_LIGHT
24 /* define this if you have access to the quickscreen */
25 #define HAVE_QUICKSCREEN
27 /* define this if you have access to the pitchscreen */
28 #define HAVE_PITCHSCREEN
30 /* define this if you would like tagcache to build on this target */
31 #define HAVE_TAGCACHE
33 /* LCD dimensions */
34 #define LCD_WIDTH 128
35 #define LCD_HEIGHT 160
36 #define LCD_DEPTH 16 /* 65536 colours */
37 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
39 /* define this if you have LCD enable function */
40 /* #define HAVE_LCD_ENABLE */
42 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
43 should be defined as well. */
44 /* #define HAVE_LCD_SLEEP */
46 /* define this if you can flip your LCD */
47 /* #define HAVE_LCD_FLIP */
49 /* define this if you can invert the colours on your LCD */
50 /* #define HAVE_LCD_INVERT */
52 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
54 #define CONFIG_KEYPAD PHILIPS_SA9200_PAD
56 /* Define this if you do software codec */
57 #define CONFIG_CODEC SWCODEC
59 /* There is no hardware tone control */
60 #define HAVE_SW_TONE_CONTROLS
62 /* The PP5024 has a built-in AustriaMicrosystems AS3514 */
63 #define HAVE_AS3514
65 /* define this if you have a real-time clock */
66 #ifndef BOOTLOADER
67 #define CONFIG_RTC RTC_AS3514
68 #endif
70 /* Define this if you have a software controlled poweroff */
71 #define HAVE_SW_POWEROFF
73 /* Some Sansa E200s seem to be FAT16 formatted */
74 #define HAVE_FAT16SUPPORT
76 /* The number of bytes reserved for loadable codecs */
77 #define CODEC_SIZE 0x80000
79 /* The number of bytes reserved for loadable plugins */
80 #define PLUGIN_BUFFER_SIZE 0x80000
82 #define AB_REPEAT_ENABLE 1
84 /* Define this for LCD backlight available */
85 #define HAVE_BACKLIGHT
86 #define HAVE_BACKLIGHT_BRIGHTNESS
88 /* Main LCD backlight brightness range and defaults */
89 #define MIN_BRIGHTNESS_SETTING 1
90 #define MAX_BRIGHTNESS_SETTING 12
91 #define DEFAULT_BRIGHTNESS_SETTING 6
93 /* define this if you have a flash memory storage */
94 #define HAVE_FLASH_STORAGE
96 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
97 #define HAVE_ATA_SD
99 #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
100 #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
101 #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
102 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
103 #define BATTERY_TYPES_COUNT 1 /* only one type */
105 /* Hardware controlled charging? FIXME */
106 #define CONFIG_CHARGING CHARGING_SIMPLE
108 /* define this if the unit can be powered or charged via USB */
109 #define HAVE_USB_POWER
111 /** Non-simulator section **/
112 #ifndef SIMULATOR
114 /* Define this if you have a PortalPlayer PP5024 */
115 #define CONFIG_CPU PP5024
117 /* Define this if you want to use the PP5024 i2c interface */
118 #define CONFIG_I2C I2C_PP5024
120 /* define this if the hardware can be powered off while charging */
121 /* Sansa can't be powered off while charging */
122 /* #define HAVE_POWEROFF_WHILE_CHARGING */
124 /* The start address index for ROM builds */
125 #define ROM_START 0x00000000
127 /* Define this to the CPU frequency */
128 #define CPU_FREQ 75000000
130 /* Type of LCD TODO: hopefully the same as the x5 but check this*/
131 #define CONFIG_LCD LCD_SA9200
133 /* #define USB_IPODSTYLE */
135 /* USB On-the-go */
136 #define CONFIG_USBOTG USBOTG_ARC
138 /* enable these for the experimental usb stack */
139 #define HAVE_USBSTACK
140 #define USB_VENDOR_ID 0x0471
141 #define USB_PRODUCT_ID 0x014f
143 /* WARNING! Enable Rockbox USB mass storage. */
144 #ifndef BOOTLOADER
145 #define USE_ROCKBOX_USB
146 #endif
148 /* Virtual LED (icon) */
149 #define CONFIG_LED LED_VIRTUAL
151 /* Define this if you have adjustable CPU frequency */
152 #define HAVE_ADJUSTABLE_CPU_FREQ
154 #define MI4_FORMAT
155 #define BOOTFILE_EXT "mi4"
156 #define BOOTFILE "rockbox." BOOTFILE_EXT
157 #define BOOTDIR "/.rockbox"
159 /* These values are unused, but need to be defined */
160 #define FIRMWARE_OFFSET_FILE_CRC 0x0
161 #define FIRMWARE_OFFSET_FILE_DATA 0x8
163 #define ICODE_ATTR_TREMOR_NOT_MDCT
165 #define INCLUDE_TIMEOUT_API
167 #endif /* SIMULATOR */