diff options
Diffstat (limited to 'firmware/export/config/sonynwze370.h')
-rw-r--r-- | firmware/export/config/sonynwze370.h | 182 |
1 files changed, 182 insertions, 0 deletions
diff --git a/firmware/export/config/sonynwze370.h b/firmware/export/config/sonynwze370.h new file mode 100644 index 0000000000..45fa289e0d --- /dev/null +++ b/firmware/export/config/sonynwze370.h | |||
@@ -0,0 +1,182 @@ | |||
1 | /* | ||
2 | * This config file is for the Sony NWZ-E370 series | ||
3 | */ | ||
4 | #define IMX233_SUBTARGET 3780 | ||
5 | #define IMX233_PACKAGE IMX233_BGA169 | ||
6 | |||
7 | /* For Rolo and boot loader */ | ||
8 | #define MODEL_NUMBER 88 | ||
9 | #define MODEL_NAME "Sony NWZ-E370 series" | ||
10 | |||
11 | #define HW_SAMPR_CAPS SAMPR_CAP_ALL | ||
12 | |||
13 | /* Define bitmask of input sources - recordable bitmask can be defined | ||
14 | explicitly if different */ | ||
15 | #define INPUT_SRC_CAPS SRC_CAP_FMRADIO | ||
16 | |||
17 | /* define this if you have a bitmap LCD display */ | ||
18 | #define HAVE_LCD_BITMAP | ||
19 | /* define this if you have a colour LCD */ | ||
20 | #define HAVE_LCD_COLOR | ||
21 | |||
22 | #ifndef BOOTLOADER | ||
23 | #define HAVE_ALBUMART | ||
24 | |||
25 | /* define this to enable bitmap scaling */ | ||
26 | #define HAVE_BMP_SCALING | ||
27 | |||
28 | /* define this to enable JPEG decoding */ | ||
29 | #define HAVE_JPEG | ||
30 | |||
31 | /* Define this if a programmable hotkey is mapped */ | ||
32 | #define HAVE_HOTKEY | ||
33 | |||
34 | /* define this if you have access to the quickscreen */ | ||
35 | #define HAVE_QUICKSCREEN | ||
36 | |||
37 | /* define this if you have a light associated with the buttons */ | ||
38 | |||
39 | /* define this if you would like tagcache to build on this target */ | ||
40 | #define HAVE_TAGCACHE | ||
41 | |||
42 | /* define this if you have LCD enable function */ | ||
43 | #define HAVE_LCD_ENABLE | ||
44 | |||
45 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
46 | should be defined as well. | ||
47 | #define HAVE_LCD_SLEEP | ||
48 | #define HAVE_LCD_SLEEP_SETTING | ||
49 | */ | ||
50 | |||
51 | /* define this if you can flip your LCD | ||
52 | #define HAVE_LCD_FLIP | ||
53 | */ | ||
54 | |||
55 | /* define this if you can invert the colours on your LCD | ||
56 | #define HAVE_LCD_INVERT | ||
57 | */ | ||
58 | |||
59 | /* define this if you have a real-time clock */ | ||
60 | #define CONFIG_RTC RTC_IMX233 | ||
61 | |||
62 | /* define this if you have a real-time clock with alarm facilities */ | ||
63 | #define HAVE_RTC_ALARM | ||
64 | |||
65 | #endif /* !BOOTLOADER */ | ||
66 | |||
67 | /* define this if you have an i.MX23 codec */ | ||
68 | #define HAVE_IMX233_CODEC | ||
69 | |||
70 | #define CONFIG_TUNER STFM1000 | ||
71 | |||
72 | /* There is no hardware tone control */ | ||
73 | #define HAVE_SW_TONE_CONTROLS | ||
74 | |||
75 | #define CONFIG_KEYPAD SONY_NWZ_PAD | ||
76 | |||
77 | /* Define this to enable morse code input */ | ||
78 | #define HAVE_MORSE_INPUT | ||
79 | |||
80 | /* Define this if you do software codec */ | ||
81 | #define CONFIG_CODEC SWCODEC | ||
82 | |||
83 | /* LCD dimensions */ | ||
84 | #define LCD_WIDTH 128 | ||
85 | #define LCD_HEIGHT 160 | ||
86 | #define LCD_DEPTH 16 /* 65536 colours */ | ||
87 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
88 | |||
89 | /* Define this if you have a software controlled poweroff */ | ||
90 | #define HAVE_SW_POWEROFF | ||
91 | |||
92 | /* The number of bytes reserved for loadable codecs */ | ||
93 | #define CODEC_SIZE 0x100000 | ||
94 | |||
95 | /* The number of bytes reserved for loadable plugins */ | ||
96 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
97 | |||
98 | #define AB_REPEAT_ENABLE | ||
99 | |||
100 | /* Define this for LCD backlight available */ | ||
101 | #define HAVE_BACKLIGHT | ||
102 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
103 | |||
104 | /* Main LCD backlight brightness range and defaults */ | ||
105 | #define MIN_BRIGHTNESS_SETTING 0 | ||
106 | #define MAX_BRIGHTNESS_SETTING 100 | ||
107 | #define DEFAULT_BRIGHTNESS_SETTING 50 | ||
108 | |||
109 | /* Which backlight fading type? */ | ||
110 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | ||
111 | |||
112 | /* define this if you have a flash memory storage */ | ||
113 | #define HAVE_FLASH_STORAGE | ||
114 | |||
115 | /* define this if the flash memory uses the SecureDigital Memory Card protocol */ | ||
116 | #define CONFIG_STORAGE STORAGE_MMC | ||
117 | |||
118 | /* todo */ | ||
119 | #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */ | ||
120 | #define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */ | ||
121 | #define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */ | ||
122 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | ||
123 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
124 | |||
125 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE | ||
126 | |||
127 | /* Charging implemented in a target-specific algorithm */ | ||
128 | #define CONFIG_CHARGING CHARGING_TARGET | ||
129 | |||
130 | /* define this if the unit can be powered or charged via USB */ | ||
131 | #define HAVE_USB_POWER | ||
132 | |||
133 | /* Define this if you have an IMX233*/ | ||
134 | #define CONFIG_CPU IMX233 | ||
135 | |||
136 | /* Define this if you want to use the IMX233 i2c interface */ | ||
137 | #define CONFIG_I2C I2C_IMX233 | ||
138 | |||
139 | /* define current usage levels (based on battery bench) */ | ||
140 | #define CURRENT_NORMAL 35 | ||
141 | #define CURRENT_BACKLIGHT 30 | ||
142 | #define CURRENT_RECORD CURRENT_NORMAL | ||
143 | |||
144 | /* maximum charging current */ | ||
145 | #define CURRENT_MAX_CHG 200 | ||
146 | |||
147 | /* Define this to the CPU frequency */ | ||
148 | #define CPU_FREQ 454000000 | ||
149 | |||
150 | /* Type of LCD */ | ||
151 | #define CONFIG_LCD LCD_NWZE370 | ||
152 | |||
153 | /* Offset ( in the firmware file's header ) to the file CRC and data. These are | ||
154 | only used when loading the old format rockbox.e200 file */ | ||
155 | #define FIRMWARE_OFFSET_FILE_CRC 0x0 | ||
156 | #define FIRMWARE_OFFSET_FILE_DATA 0x8 | ||
157 | |||
158 | /* USB On-the-go */ | ||
159 | #define CONFIG_USBOTG USBOTG_ARC | ||
160 | |||
161 | /* enable these for the experimental usb stack */ | ||
162 | #define HAVE_USBSTACK | ||
163 | //#define USB_HANDLED_BY_OF | ||
164 | #define USE_ROCKBOX_USB | ||
165 | #define USB_VENDOR_ID 0x054c | ||
166 | #define USB_PRODUCT_ID 0x068a | ||
167 | #define HAVE_USB_HID_MOUSE | ||
168 | #define HAVE_BOOTLOADER_USB_MODE | ||
169 | |||
170 | /* The fuze+ actually interesting partition table does not use 512-byte sector | ||
171 | * (usually 2048 logical sector size) */ | ||
172 | #define MAX_LOG_SECTOR_SIZE 2048 | ||
173 | |||
174 | /* Define this if you have adjustable CPU frequency */ | ||
175 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
176 | |||
177 | #define BOOTFILE_EXT "sony" | ||
178 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
179 | #define BOOTDIR "/.rockbox" | ||
180 | |||
181 | #define INCLUDE_TIMEOUT_API | ||
182 | |||