mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
* Devices with ADB now have HAVE_USB_ADB
* DX50/DX90 no longer set USB_NONE
* stub out necessary functions
* usb_set_mode() and global_settings.usb_mode are now:
* called for all devices with (HAVE_USB_ADB | HAVE_USB_POWER)
* wrapped with consistent #ifdefs
Fixes regression in ce88de54b8
Change-Id: Ib0c16082fe237e8159cd42847355186ea5c74589
92 lines
2.1 KiB
C
92 lines
2.1 KiB
C
/*
|
|
* This config file is for the HiBy R1
|
|
*/
|
|
|
|
/* For Rolo and boot loader */
|
|
#define MODEL_NUMBER 124
|
|
#define MODEL_NAME "HIBY R1"
|
|
|
|
#define PIVOT_ROOT "/data/mnt/sd_0"
|
|
#define MULTIDRIVE_DIR "/data/mnt/usb"
|
|
|
|
/* LCD dimensions */
|
|
/* sqrt(width^2 + height^2) / 4 = 233 */
|
|
#define LCD_WIDTH 480
|
|
#define LCD_HEIGHT 800
|
|
#define LCD_DPI 233
|
|
|
|
#define HAVE_LCD_SLEEP
|
|
#define LCD_SLEEP_TIMEOUT (2*HZ)
|
|
|
|
#define LCD_DEPTH 16 /* 65536 colours */
|
|
#define LCD_PIXELFORMAT RGB565 /* rgb565 */
|
|
|
|
#define CPU_FREQ 1008000000
|
|
|
|
#ifndef SIMULATOR
|
|
#define HAVE_GENERAL_PURPOSE_LED
|
|
#endif
|
|
|
|
/* define this if you have access to the quickscreen */
|
|
#define HAVE_QUICKSCREEN
|
|
#define HAVE_HOTKEY
|
|
|
|
#define HAVE_HEADPHONE_DETECTION
|
|
#define NO_BUTTON_LR
|
|
|
|
#ifndef BOOTLOADER
|
|
#define HAVE_BUTTON_DATA
|
|
#define HAVE_TOUCHSCREEN
|
|
#endif
|
|
|
|
#ifndef CONFIG_BACKLIGHT_FADING
|
|
#undef CONFIG_BACKLIGHT_FADING
|
|
#endif
|
|
|
|
/* KeyPad configuration for plugins */
|
|
#define CONFIG_KEYPAD HIBY_R3PROII_PAD
|
|
|
|
/* define this if the target has volume keys which can be used in the lists */
|
|
#define HAVE_VOLUME_IN_LIST
|
|
|
|
/* Battery */
|
|
#define BATTERY_TYPES_COUNT 1
|
|
|
|
/* Audio codec */
|
|
#define HAVE_HIBY_LINUX_CODEC
|
|
|
|
/* We don't have hardware controls */
|
|
#define HAVE_SW_TONE_CONTROLS
|
|
|
|
/* HW codec is flexible */
|
|
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
|
|
|
|
/* Battery */
|
|
#define CONFIG_BATTERY_MEASURE (VOLTAGE_MEASURE|PERCENTAGE_MEASURE|TIME_MEASURE)
|
|
|
|
#define BATTERY_CAPACITY_DEFAULT 100 /* default battery capacity */
|
|
#define BATTERY_CAPACITY_MIN 100 /* min. capacity selectable */
|
|
#define BATTERY_CAPACITY_MAX 100 /* max. capacity selectable */
|
|
#define BATTERY_CAPACITY_INC 0 /* capacity increment */
|
|
|
|
/* Special backlight paths */
|
|
#define BACKLIGHT_HIBY
|
|
|
|
#define MIN_BRIGHTNESS_SETTING 1
|
|
#define MAX_BRIGHTNESS_SETTING 100
|
|
#define BRIGHTNESS_STEP 5
|
|
#define DEFAULT_BRIGHTNESS_SETTING 100
|
|
|
|
/* ROLO */
|
|
#define BOOTFILE_EXT "r1"
|
|
#define BOOTFILE "rockbox." BOOTFILE_EXT
|
|
#define BOOTDIR "/.rockbox"
|
|
|
|
/* USB */
|
|
#define HAVE_USB_ADB
|
|
#define HAVE_USB_POWER
|
|
#define USB_VID_STR "32BB"
|
|
#define USB_PID_STR "0101"
|
|
|
|
/* Generic HiBy stuff */
|
|
#include "hibylinux.h"
|