2018-11-05 12:01:55 +00:00
|
|
|
/*
|
|
|
|
* This config file is for the xDuoo X20
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* For Rolo and boot loader */
|
|
|
|
#define MODEL_NUMBER 111
|
|
|
|
|
|
|
|
#define MODEL_NAME "xDuoo X20"
|
|
|
|
|
|
|
|
/* 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_X20_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 PERCENTAGE_MEASURE
|
|
|
|
|
|
|
|
/* Define this to the CPU frequency */
|
2020-09-29 01:17:39 +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 2400 /* default battery capacity */
|
|
|
|
#define BATTERY_CAPACITY_MIN 2400 /* min. capacity selectable */
|
|
|
|
#define BATTERY_CAPACITY_MAX 2400 /* max. capacity selectable */
|
|
|
|
#define BATTERY_CAPACITY_INC 0 /* capacity increment */
|
2020-10-11 13:30:41 +00:00
|
|
|
|
|
|
|
/* ROLO */
|
|
|
|
#define BOOTFILE_EXT "x20"
|
|
|
|
#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" // XXX this is probably wrong
|
|
|
|
|
2020-10-17 22:32:43 +00:00
|
|
|
/* Generic HiBy stuff */
|
|
|
|
#include "hibylinux.h"
|