2018-11-05 12:01:55 +00:00
|
|
|
/*
|
|
|
|
* This config file is for the xDuoo X3ii
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* For Rolo and boot loader */
|
|
|
|
#define MODEL_NUMBER 110
|
|
|
|
|
|
|
|
#define MODEL_NAME "xDuoo X3ii"
|
|
|
|
|
|
|
|
/* LCD dimensions */
|
|
|
|
#define LCD_WIDTH 240
|
|
|
|
#define LCD_HEIGHT 320
|
|
|
|
/* sqrt(240^2 + 320^2) / 2.4 = 166 */
|
|
|
|
#define LCD_DPI 166
|
|
|
|
|
|
|
|
|
|
|
|
/* define this if you have access to the quickscreen */
|
|
|
|
#define HAVE_QUICKSCREEN
|
|
|
|
|
|
|
|
#define HAVE_HEADPHONE_DETECTION
|
2020-10-01 18:06:48 +00:00
|
|
|
#define HAVE_LINEOUT_DETECTION
|
2018-11-05 12:01:55 +00:00
|
|
|
|
|
|
|
/* KeyPad configuration for plugins */
|
|
|
|
#define CONFIG_KEYPAD XDUOO_X3II_PAD
|
|
|
|
|
|
|
|
/* define this if the target has volume keys which can be used in the lists */
|
|
|
|
#define HAVE_VOLUME_IN_LIST
|
|
|
|
|
|
|
|
#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
|
|
|
|
|
|
|
|
/* Define this to the CPU frequency */
|
2020-10-17 21:03:13 +00:00
|
|
|
#define CPU_FREQ 1008000000
|
2018-11-05 12:01:55 +00:00
|
|
|
|
|
|
|
/* Battery */
|
|
|
|
#define BATTERY_TYPES_COUNT 1
|
|
|
|
|
|
|
|
/* Audio codec */
|
|
|
|
#define HAVE_XDUOO_LINUX_CODEC
|
|
|
|
|
|
|
|
/* We don't have hardware controls */
|
|
|
|
#define HAVE_SW_TONE_CONTROLS
|
|
|
|
|
2020-08-09 18:55:52 +00:00
|
|
|
/* HW codec is flexible */
|
2020-09-30 22:21:38 +00:00
|
|
|
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
|
2020-08-09 18:55:52 +00:00
|
|
|
|
2018-11-05 12:01:55 +00:00
|
|
|
/* Battery */
|
|
|
|
#define BATTERY_CAPACITY_DEFAULT 2000 /* default battery capacity */
|
|
|
|
#define BATTERY_CAPACITY_MIN 2000 /* min. capacity selectable */
|
|
|
|
#define BATTERY_CAPACITY_MAX 2000 /* max. capacity selectable */
|
|
|
|
#define BATTERY_CAPACITY_INC 0 /* capacity increment */
|
2020-10-11 13:30:41 +00:00
|
|
|
|
2020-10-13 15:38:45 +00:00
|
|
|
#define CURRENT_NORMAL 167 // 2.78mA * 60s
|
|
|
|
#define CURRENT_BACKLIGHT 180
|
|
|
|
#define CURRENT_MAX_CHG 500 // bursts higher if needed
|
|
|
|
|
2020-10-11 13:30:41 +00:00
|
|
|
/* ROLO */
|
|
|
|
#define BOOTFILE_EXT "x3ii"
|
|
|
|
#define BOOTFILE "rockbox." BOOTFILE_EXT
|
|
|
|
#define BOOTDIR "/.rockbox"
|
2020-10-15 14:18:16 +00:00
|
|
|
|
|
|
|
/* USB */
|
|
|
|
#define USB_VID_STR "C502"
|
|
|
|
#define USB_PID_STR "003C"
|
2020-10-17 22:32:43 +00:00
|
|
|
|
|
|
|
/* Generic HiBy stuff */
|
|
|
|
#include "hibylinux.h"
|