Deprecate -ML label, fix X55.

This commit is contained in:
fewtarius 2023-12-27 18:20:38 +00:00
parent f35722d368
commit c2f2e37596
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
73 changed files with 1440 additions and 15873 deletions

View file

@ -57,15 +57,6 @@ RK3566-X55:
DEVICE_ROOT=RK3566 PROJECT=Rockchip DEVICE=RK3566-X55 ARCH=arm ./scripts/build_distro
DEVICE_ROOT=RK3566 PROJECT=Rockchip DEVICE=RK3566-X55 ARCH=aarch64 ./scripts/build_distro
RK3566-ML:
unset DEVICE_ROOT
PROJECT=Rockchip DEVICE=RK3566-ML ARCH=arm ./scripts/build_distro
PROJECT=Rockchip DEVICE=RK3566-ML ARCH=aarch64 ./scripts/build_distro
RK3566-X55-ML:
DEVICE_ROOT=RK3566-ML PROJECT=Rockchip DEVICE=RK3566-X55-ML ARCH=arm ./scripts/build_distro
DEVICE_ROOT=RK3566-ML PROJECT=Rockchip DEVICE=RK3566-X55-ML ARCH=aarch64 ./scripts/build_distro
RK3326:
unset DEVICE_ROOT
PROJECT=Rockchip DEVICE=RK3326 ARCH=arm ./scripts/build_distro

View file

@ -1,43 +0,0 @@
diff -rupN flycast.orig/Makefile flycast/Makefile
--- flycast.orig/Makefile 2022-06-18 13:29:52.675787687 -0400
+++ flycast/Makefile 2022-06-18 13:53:23.564624927 -0400
@@ -403,26 +403,30 @@ else ifeq ($(platform), arm64_cortex_a53
#######################################
-# ARM64 SM1 Odroid C4
-else ifeq ($(platform), odroidc4)
+# ARM64 RK3566
+else ifeq ($(platform), RK3566-ML)
EXT ?= so
TARGET := $(TARGET_NAME)_libretro.$(EXT)
SHARED += -shared -Wl,--version-script=link.T
- LDFLAGS += -Wl,--no-undefined
fpic = -fPIC
LIBS += -lrt
ARM_FLOAT_ABI_HARD = 0
FORCE_GLES = 1
SINGLE_PREC_FLAGS = 1
- CPUFLAGS += -DHOST_CPU=0x20000006 -DTARGET_LINUX_ARMv8 -frename-registers
- CFLAGS += -mcpu=cortex-a55 -mtune=cortex-a55 $(CPUFLAGS)
- CXXFLAGS += -mcpu=cortex-a55 -mtune=cortex-a55 $(CPUFLAGS)
- ASFLAGS += $(CFLAGS) -c -frename-registers -fno-strict-aliasing -ffast-math -ftree-vectorize
+ HAVE_LTCG = 0
+ HAVE_OPENMP = 0
+ CFLAGS += -Ofast \
+ -fuse-linker-plugin \
+ -fno-stack-protector -fno-ident -fomit-frame-pointer \
+ -fmerge-all-constants -ffast-math -funroll-all-loops \
+ -mcpu=cortex-a55 -mtune=cortex-a55
+ CXXFLAGS += $(CFLAGS)
+ LDFLAGS += -mcpu=cortex-a55 -mtune=cortex-a55 -Ofast -flto -fuse-linker-plugin
PLATFORM_EXT := unix
+ CORE_DEFINES += -DLOW_END -DLOW_RES
WITH_DYNAREC=arm64
+ PLATFORM_EXT := unix
HAVE_GENERIC_JIT = 0
- HAVE_VULKAN = 0
- HAVE_LTCG = 0
#######################################

View file

@ -33,6 +33,7 @@ PKG_CONFIGURE_OPTS_TARGET=" --disable-qt \
--disable-vg \
--disable-sdl \
--enable-sdl2 \
--disable-odroidgo2 \
--enable-ffmpeg"
case ${PROJECT} in
@ -41,16 +42,6 @@ case ${PROJECT} in
;;
esac
case ${DEVICE} in
RK3566-X55)
PKG_DEPENDS_TARGET+=" libgo2"
PKG_CONFIGURE_OPTS_TARGET+=" --enable-odroidgo2"
;;
*)
PKG_CONFIGURE_OPTS_TARGET+=" --disable-odroidgo2"
;;
esac
case ${ARCH} in
arm)
PKG_CONFIGURE_OPTS_TARGET+=" --enable-neon"

View file

@ -1,12 +0,0 @@
diff -rupN retroarch.orig/gfx/drivers/oga_gfx.c retroarch/gfx/drivers/oga_gfx.c
--- retroarch.orig/gfx/drivers/oga_gfx.c 2022-02-28 19:40:46.222185295 -0500
+++ retroarch/gfx/drivers/oga_gfx.c 2022-02-28 19:44:14.187909576 -0500
@@ -22,7 +22,7 @@
#include "../../verbosity.h"
#include <fcntl.h>
#include <rga/RgaApi.h>
-#include <rga/RockchipRgaMacro.h>
+#include <rga/drmrga.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
#include <drm/drm_fourcc.h>

View file

@ -1,35 +0,0 @@
Correct DRM format on Powkiddy x55, extracted from PowKiddy x55 sources.
diff --git a/deps/libgo2/src/display.c b/deps/libgo2/src/display.c
index b91cf0624b..936b677fc4 100644
--- a/deps/libgo2/src/display.c
+++ b/deps/libgo2/src/display.c
@@ -550,7 +550,7 @@ static uint32_t go2_rkformat_get(uint32_t drm_fourcc)
case DRM_FORMAT_ARGB8888:
case DRM_FORMAT_XRGB8888:
- return RK_FORMAT_BGRA_8888;
+ return RK_FORMAT_RGBA_8888;
case DRM_FORMAT_RGB565:
return RK_FORMAT_RGB_565;
@@ -586,6 +586,7 @@ void go2_surface_blit(go2_surface_t* srcSurface, int srcX, int srcY, int srcWidt
dst.rect.hstride = dstSurface->height;
dst.rect.format = go2_rkformat_get(dstSurface->format);
+
rga_info_t src = { 0 };
src.fd = go2_surface_prime_fd(srcSurface);
src.mmuFlag = 1;
diff --git a/gfx/drivers_context/drm_go2_ctx.c b/gfx/drivers_context/drm_go2_ctx.c
index b758137703..dbcb992279 100644
--- a/gfx/drivers_context/drm_go2_ctx.c
+++ b/gfx/drivers_context/drm_go2_ctx.c
@@ -133,7 +133,7 @@ static void *gfx_ctx_go2_drm_init(void *video_driver)
}
drm->presenter = go2_presenter_create(drm->display,
- DRM_FORMAT_RGB565, 0xff000000, true);
+ DRM_FORMAT_XRGB8888, 0xff000000, true);
return drm;
}

View file

@ -1,27 +0,0 @@
input_libretro_device_p1 = "1"
input_libretro_device_p2 = "1"
input_libretro_device_p3 = "1"
input_libretro_device_p4 = "1"
input_libretro_device_p5 = "1"
input_player1_analog_dpad_mode = "1"
input_player1_btn_down = "6"
input_player1_btn_left = "4"
input_player1_btn_right = "5"
input_player1_btn_up = "7"
input_player1_stk_l_x+ = "5"
input_player1_stk_l_x- = "4"
input_player1_stk_l_y+ = "6"
input_player1_stk_l_y- = "7"
input_player1_stk_r_x+ = "5"
input_player1_stk_r_x- = "4"
input_player1_stk_r_y+ = "6"
input_player1_stk_r_y- = "7"
input_player2_analog_dpad_mode = "0"
input_player3_analog_dpad_mode = "0"
input_player4_analog_dpad_mode = "0"
input_player5_analog_dpad_mode = "0"
input_remap_port_p1 = "0"
input_remap_port_p2 = "1"
input_remap_port_p3 = "2"
input_remap_port_p4 = "3"
input_remap_port_p5 = "4"

View file

@ -1,153 +0,0 @@
mupen64plus-alt-map = "False"
mupen64plus-aspect = "4:3"
mupen64plus-astick-deadzone = "15"
mupen64plus-astick-sensitivity = "100"
mupen64plus-BackgroundMode = "Stripped"
mupen64plus-BilinearMode = "standard"
mupen64plus-CorrectTexrectCoords = "Auto"
mupen64plus-CountPerOp = "0"
mupen64plus-CountPerOpDenomPot = "0"
mupen64plus-cpucore = "dynamic_recompiler"
mupen64plus-d-cbutton = "C3"
mupen64plus-DitheringPattern = "True"
mupen64plus-DitheringQuantization = "True"
mupen64plus-EnableCopyAuxToRDRAM = "True"
mupen64plus-EnableCopyColorToRDRAM = "Async"
mupen64plus-EnableCopyDepthToRDRAM = "Software"
mupen64plus-EnableEnhancedHighResStorage = "False"
mupen64plus-EnableEnhancedTextureStorage = "False"
mupen64plus-EnableFBEmulation = "True"
mupen64plus-EnableFragmentDepthWrite = "True"
mupen64plus-EnableHiResAltCRC = "False"
mupen64plus-EnableHWLighting = "False"
mupen64plus-EnableInaccurateTextureCoordinates = "False"
mupen64plus-EnableLegacyBlending = "False"
mupen64plus-EnableLODEmulation = "True"
mupen64plus-EnableNativeResFactor = "1"
mupen64plus-EnableNativeResTexrects = "Optimized"
mupen64plus-EnableOverscan = "Enabled"
mupen64plus-EnableTexCoordBounds = "False"
mupen64plus-EnableTextureCache = "True"
mupen64plus-ForceDisableExtraMem = "False"
mupen64plus-FrameDuping = "True"
mupen64plus-Framerate = "Original"
mupen64plus-FXAA = "0"
mupen64plus-GLideN64IniBehaviour = "late"
mupen64plus-HybridFilter = "True"
mupen64plus-IgnoreTLBExceptions = "False"
mupen64plus-l-cbutton = "C2"
mupen64plus-MaxHiResTxVramLimit = "0"
mupen64plus-MaxTxCacheSize = "8000"
mupen64plus-MultiSampling = "0"
mupen64plus-OverscanBottom = "0"
mupen64plus-OverscanLeft = "0"
mupen64plus-OverscanRight = "0"
mupen64plus-OverscanTop = "0"
mupen64plus-pak1 = "memory"
mupen64plus-pak2 = "none"
mupen64plus-pak3 = "none"
mupen64plus-pak4 = "none"
mupen64plus-r-cbutton = "C1"
mupen64plus-rdp-plugin = "gliden64"
mupen64plus-RDRAMImageDitheringMode = "BlueNoise"
mupen64plus-rsp-plugin = "hle"
mupen64plus-ThreadedRenderer = "True"
mupen64plus-txCacheCompression = "True"
mupen64plus-txEnhancementMode = "None"
mupen64plus-txFilterIgnoreBG = "True"
mupen64plus-txFilterMode = "None"
mupen64plus-txHiresEnable = "False"
mupen64plus-txHiresFullAlphaChannel = "False"
mupen64plus-u-cbutton = "C4"
mupen64plus-virefresh = "Auto"
pcsx_rearmed_analog_axis_modifier = "circle"
pcsx_rearmed_async_cd = "sync"
pcsx_rearmed_bios = "auto"
pcsx_rearmed_display_internal_fps = "disabled"
pcsx_rearmed_dithering = "enabled"
pcsx_rearmed_drc = "enabled"
pcsx_rearmed_duping_enable = "enabled"
pcsx_rearmed_frameskip_type = "disabled"
pcsx_rearmed_gteregsunneeded = "disabled"
pcsx_rearmed_gunconadjustratiox = "1"
pcsx_rearmed_gunconadjustratioy = "1"
pcsx_rearmed_gunconadjustx = "0"
pcsx_rearmed_gunconadjusty = "0"
pcsx_rearmed_idiablofix = "disabled"
pcsx_rearmed_input_sensitivity = "1.00"
pcsx_rearmed_inuyasha_fix = "disabled"
pcsx_rearmed_memcard2 = "disabled"
pcsx_rearmed_multitap1 = "auto"
pcsx_rearmed_multitap2 = "auto"
pcsx_rearmed_negcon_deadzone = "0"
pcsx_rearmed_negcon_response = "linear"
pcsx_rearmed_neon_enhancement_enable = "disabled"
pcsx_rearmed_neon_enhancement_no_main = "disabled"
pcsx_rearmed_neon_interlace_enable = "disabled"
pcsx_rearmed_nocdaudio = "enabled"
pcsx_rearmed_nogteflags = "disabled"
pcsx_rearmed_nosmccheck = "disabled"
pcsx_rearmed_noxadecoding = "enabled"
pcsx_rearmed_pad1type = "standard"
pcsx_rearmed_pad2type = "standard"
pcsx_rearmed_pad3type = "none"
pcsx_rearmed_pad4type = "none"
pcsx_rearmed_pad5type = "none"
pcsx_rearmed_pad6type = "none"
pcsx_rearmed_pad7type = "none"
pcsx_rearmed_pad8type = "none"
pcsx_rearmed_pe2_fix = "disabled"
pcsx_rearmed_psxclock = "57"
pcsx_rearmed_region = "auto"
pcsx_rearmed_show_bios_bootlogo = "disabled"
pcsx_rearmed_show_other_input_settings = "disabled"
pcsx_rearmed_spu_interpolation = "simple"
pcsx_rearmed_spu_reverb = "enabled"
pcsx_rearmed_spuirq = "disabled"
pcsx_rearmed_vibration = "enabled"
gambatte_gb_colorization = "disabled"
gambatte_gb_internal_palette = ""
mame2003-plus_analog = "digital"
mame2003-plus_art_resolution = "1"
mame2003-plus_brightness = "1.0"
mame2003-plus_cheat_input_ports = "disabled"
mame2003-plus_core_save_subfolder = "enabled"
mame2003-plus_core_sys_subfolder = "enabled"
mame2003-plus_dcs_speedhack = "enabled"
mame2003-plus_deadzone = "20"
mame2003-plus_digital_joy_centering = "enabled"
mame2003-plus_display_artwork = "enabled"
mame2003-plus_display_setup = "disabled"
mame2003-plus_four_way_emulation = "disabled"
mame2003-plus_frameskip = "0"
mame2003-plus_gamma = "1.0"
mame2003-plus_input_interface = "retropad"
mame2003-plus_machine_timing = "enabled"
mame2003-plus_mame_remapping = "enabled"
mame2003-plus_mouse_device = "mouse"
mame2003-plus_sample_rate = "48000"
mame2003-plus_skip_disclaimer = "disabled"
mame2003-plus_skip_warnings = "disabled"
flycast_internal_resolution = "640x480"
flycast_alpha_sorting = "per-strip (fast, least accurate)"
flycast_enable_dsp = "disabled"
flycast_threaded_rendering = "enabled"
flycast_anisotropic_filtering = "off"
flycast_synchronous_rendering = "enabled"
flycast_enable_rtt = "disabled"
flycast_enable_rttb = "disabled"
flycast_delay_frame_swapping = "disabled"
flycast_div_matching = "auto"
flycast_texupscale = "off"
flycast_auto_skip_frame = "normal"
opera_swi_hle = "enabled"
opera_dsp_threaded = "enabled"
opera_madam_matrix_engine = "software"
puae_deadzone = "25"
melonds_screen_layout = "Left/Right"
melonds_swapscreen_mode = "Toggle"
melonds_threaded_renderer = "enabled"
melonds_touch_mode = "Joystick"
duckstation_GPU.Renderer = "Software"
virtualjaguar_bios = "enabled"
virtualjaguar_usefastblitter = "enabled"

View file

@ -1,822 +0,0 @@
accessibility_enable = "false"
accessibility_narrator_speech_speed = "5"
ai_service_enable = "true"
ai_service_mode = "1"
ai_service_pause = "false"
ai_service_source_lang = "0"
ai_service_target_lang = "0"
ai_service_url = "http://localhost:4404/"
all_users_control_menu = "true"
apply_cheats_after_load = "false"
apply_cheats_after_toggle = "false"
aspect_ratio_index = "22"
assets_directory = "/tmp/assets"
audio_block_frames = "0"
audio_device = ""
audio_driver = "pulse"
audio_dsp_plugin = ""
audio_enable_menu_bgm = "false"
audio_enable_menu_cancel = "false"
audio_enable_menu = "false"
audio_enable_menu_notice = "false"
audio_enable_menu_ok = "false"
audio_enable = "true"
audio_fastforward_mute = "false"
audio_filter_dir = "~/.config/retroarch/filters/audio"
audio_latency = "32"
audio_max_timing_skew = "0.049999"
audio_mixer_mute_enable = "false"
audio_mixer_volume = "0.000000"
audio_mute_enable = "false"
audio_out_rate = "48000"
audio_rate_control_delta = "0.004999"
audio_rate_control = "true"
audio_resampler_quality = "2"
audio_resampler = "sinc"
audio_sync = "true"
audio_volume = "0.000000"
auto_overrides_enable = "true"
auto_remaps_enable = "true"
autosave_interval = "10"
auto_screenshot_filename = "true"
auto_shaders_enable = "true"
block_sram_overwrite = "false"
bluetooth_driver = "null"
builtin_imageviewer_enable = "true"
builtin_mediaplayer_enable = "true"
bundle_assets_dst_path = ""
bundle_assets_dst_path_subdir = ""
bundle_assets_extract_enable = "false"
bundle_assets_extract_last_version = "0"
bundle_assets_extract_version_current = "0"
bundle_assets_src_path = ""
cache_directory = "/tmp/cache"
camera_allow = "false"
camera_device = ""
camera_driver = "null"
cheat_database_path = "/tmp/database/cht"
check_firmware_before_loading = "false"
cheevos_auto_screenshot = "false"
cheevos_badges_enable = "false"
cheevos_challenge_indicators = "true"
cheevos_enable = "false"
cheevos_hardcore_mode_enable = "false"
cheevos_leaderboards_enable = ""
cheevos_password = ""
cheevos_richpresence_enable = "true"
cheevos_start_active = "false"
cheevos_test_unofficial = "false"
cheevos_token = ""
cheevos_unlock_sound_enable = "false"
cheevos_username = ""
cheevos_verbose_enable = "false"
config_save_on_exit = "true"
content_database_path = "/tmp/database/rdb"
content_favorites_directory = "default"
content_favorites_path = "~/.config/retroarch/content_favorites.lpl"
content_favorites_size = "200"
content_history_dir = ""
content_history_directory = "default"
content_history_path = "~/.config/retroarch/content_history.lpl"
content_history_size = "200"
content_image_history_directory = "default"
content_image_history_path = "~/.config/retroarch/content_image_history.lpl"
content_music_history_directory = "default"
content_music_history_path = "~/.config/retroarch/content_music_history.lpl"
content_runtime_log_aggregate = "false"
content_runtime_log = "true"
content_show_add_entry = "2"
content_show_add = "true"
content_show_explore = "true"
content_show_favorites = "true"
content_show_history = "true"
content_show_images = "false"
content_show_music = "false"
content_show_netplay = "true"
content_show_playlists = "true"
content_show_settings_password = ""
content_show_settings = "true"
content_show_video = "false"
content_video_directory = "default"
content_video_history_path = "~/.config/retroarch/content_video_history.lpl"
core_assets_directory = "~/roms/downloads"
core_info_cache_enable = "true"
core_option_category_enable = "true"
core_options_path = ""
core_set_supports_no_game_enable = "true"
core_updater_auto_backup = "false"
core_updater_auto_backup_history_size = "1"
core_updater_auto_extract_archive = "true"
core_updater_buildbot_assets_url = "http://buildbot.libretro.com/assets/"
core_updater_buildbot_cores_url = ""
core_updater_buildbot_url = "http://buildbot.libretro.com/nightly/linux/armhf/latest/"
core_updater_show_experimental_cores = "false"
cpu_main_gov = "performance"
cpu_max_freq = "-1"
cpu_menu_gov = "interactive"
cpu_min_freq = "1"
cpu_scaling_mode = "0"
crt_switch_center_adjust = "0"
crt_switch_hires_menu = "false"
crt_switch_porch_adjust = "0"
crt_switch_resolution = "0"
crt_switch_resolution_super = "2560"
crt_switch_resolution_use_custom_refresh_rate = "false"
crt_switch_timings = ""
crt_video_refresh_rate = "60.000000"
current_resolution_id = "0"
cursor_directory = "~/.config/retroarch/database/cursors"
desktop_menu_enable = "true"
discord_allow = "false"
discord_app_id = "475456035851599874"
driver_switch_enable = "true"
dynamic_wallpapers_directory = "default"
emuelec_exit_to_kodi = "false"
enable_device_vibration = "true"
facebook_stream_key = ""
fastforward_ratio = "0.000000"
filter_by_current_core = "false"
flicker_filter_enable = "false"
flicker_filter_index = "0"
fps_show = "false"
fps_update_interval = "256"
framecount_show = "false"
frame_time_counter_reset_after_fastforwarding = "false"
frame_time_counter_reset_after_load_state = "false"
frame_time_counter_reset_after_save_state = "false"
frontend_log_level = "1"
game_specific_options = "true"
gamma_correction = "0"
global_core_options = "false"
history_list_enable = "true"
input_ai_service_axis = "nul"
input_ai_service_btn = "nul"
input_ai_service_mbtn = "nul"
input_ai_service = "nul"
input_analog_deadzone = "0.000000"
input_analog_sensitivity = "1.500000"
input_audio_mute_axis = "nul"
input_audio_mute_btn = "nul"
input_audio_mute = "f9"
input_audio_mute_mbtn = "nul"
input_autodetect_enable = "true"
input_auto_game_focus = "0"
input_auto_mouse_grab = "false"
input_axis_threshold = "0.500000"
input_bind_hold = "2"
input_bind_timeout = "5"
input_cheat_index_minus_axis = "nul"
input_cheat_index_minus_btn = "nul"
input_cheat_index_minus_mbtn = "nul"
input_cheat_index_minus = "t"
input_cheat_index_plus_axis = "nul"
input_cheat_index_plus_btn = "nul"
input_cheat_index_plus_mbtn = "nul"
input_cheat_index_plus = "y"
input_cheat_toggle_axis = "nul"
input_cheat_toggle_btn = "nul"
input_cheat_toggle_mbtn = "nul"
input_cheat_toggle = "u"
input_close_content_axis = "nul"
input_close_content_btn = "nul"
input_close_content_mbtn = "nul"
input_close_content = "nul"
input_descriptor_hide_unbound = "false"
input_descriptor_label_show = "true"
input_desktop_menu_toggle_axis = "nul"
input_desktop_menu_toggle_btn = "nul"
input_desktop_menu_toggle = "f5"
input_desktop_menu_toggle_mbtn = "nul"
input_device_p1 = "0"
input_device_p10 = "0"
input_device_p11 = "0"
input_device_p12 = "0"
input_device_p13 = "0"
input_device_p14 = "0"
input_device_p15 = "0"
input_device_p16 = "0"
input_device_p2 = "0"
input_device_p3 = "0"
input_device_p4 = "0"
input_device_p5 = "0"
input_device_p6 = "0"
input_device_p7 = "0"
input_device_p8 = "0"
input_device_p9 = "0"
input_disk_eject_toggle_axis = "nul"
input_disk_eject_toggle_btn = "nul"
input_disk_eject_toggle_mbtn = "nul"
input_disk_eject_toggle = "nul"
input_disk_next_axis = "nul"
input_disk_next_btn = "nul"
input_disk_next_mbtn = "nul"
input_disk_next = "nul"
input_disk_prev_axis = "nul"
input_disk_prev_btn = "nul"
input_disk_prev_mbtn = "nul"
input_disk_prev = "nul"
input_driver = "udev"
input_duty_cycle = "3"
input_enable_hotkey_axis = "nul"
input_enable_hotkey_btn = "8"
input_enable_hotkey_mbtn = "nul"
input_enable_hotkey = "nul"
input_exit_emulator_axis = "nul"
input_exit_emulator_btn = "9"
input_exit_emulator = "escape"
input_exit_emulator_mbtn = "nul"
input_fps_toggle_axis = "nul"
input_fps_toggle_btn = "3"
input_fps_toggle = "f3"
input_fps_toggle_mbtn = "nul"
input_frame_advance_axis = "nul"
input_frame_advance_btn = "nul"
input_frame_advance = "k"
input_frame_advance_mbtn = "nul"
input_game_focus_toggle_axis = "nul"
input_game_focus_toggle_btn = "nul"
input_game_focus_toggle_mbtn = "nul"
input_game_focus_toggle = "scroll_lock"
input_grab_mouse_toggle_axis = "nul"
input_grab_mouse_toggle_btn = "nul"
input_grab_mouse_toggle = "f11"
input_grab_mouse_toggle_mbtn = "nul"
input_hold_fast_forward_axis = "nul"
input_hold_fast_forward_btn = "nul"
input_hold_fast_forward = "l"
input_hold_fast_forward_mbtn = "nul"
input_hold_slowmotion_axis = "nul"
input_hold_slowmotion_btn = "nul"
input_hold_slowmotion = "e"
input_hold_slowmotion_mbtn = "nul"
input_hotkey_block_delay = "5"
input_joypad_driver = "udev"
input_keyboard_layout = ""
input_libretro_device_p10 = "1"
input_libretro_device_p1 = "1"
input_libretro_device_p11 = "1"
input_libretro_device_p12 = "1"
input_libretro_device_p13 = "1"
input_libretro_device_p14 = "1"
input_libretro_device_p15 = "1"
input_libretro_device_p16 = "1"
input_libretro_device_p2 = "1"
input_libretro_device_p3 = "1"
input_libretro_device_p4 = "1"
input_libretro_device_p5 = "1"
input_libretro_device_p6 = "1"
input_libretro_device_p7 = "1"
input_libretro_device_p8 = "1"
input_libretro_device_p9 = "1"
input_load_state_axis = "nul"
input_load_state_btn = "4"
input_load_state = "f4"
input_load_state_mbtn = "nul"
input_max_users = "5"
input_menu_toggle_axis = "nul"
input_menu_toggle_btn = "2"
input_menu_toggle = "f1"
input_menu_toggle_gamepad_combo = "2"
input_menu_toggle_mbtn = "nul"
input_movie_record_toggle_axis = "nul"
input_movie_record_toggle_btn = "nul"
input_movie_record_toggle_mbtn = "nul"
input_movie_record_toggle = "o"
input_netplay_game_watch_axis = "nul"
input_netplay_game_watch_btn = "nul"
input_netplay_game_watch = "i"
input_netplay_game_watch_mbtn = "nul"
input_netplay_host_toggle_axis = "nul"
input_netplay_host_toggle_btn = "nul"
input_netplay_host_toggle_mbtn = "nul"
input_netplay_host_toggle = "nul"
input_nowinkey_enable = "false"
input_osk_toggle_axis = "nul"
input_osk_toggle_btn = "nul"
input_osk_toggle = "f12"
input_osk_toggle_mbtn = "nul"
input_overlay = ""
input_overlay_aspect_adjust_landscape = "0.000000"
input_overlay_aspect_adjust_portrait = "0.000000"
input_overlay_auto_rotate = "false"
input_overlay_auto_scale = "false"
input_overlay_enable_autopreferred = "true"
input_overlay_enable = "false"
input_overlay_hide_in_menu = "true"
input_overlay_hide_when_gamepad_connected = "false"
input_overlay_next_axis = "nul"
input_overlay_next_btn = "nul"
input_overlay_next_mbtn = "nul"
input_overlay_next = "nul"
input_overlay_opacity = "0.700000"
input_overlay_scale_landscape = "1.000000"
input_overlay_scale_portrait = "1.000000"
input_overlay_show_inputs = "2"
input_overlay_show_inputs_port = "0"
input_overlay_show_mouse_cursor = "true"
input_overlay_x_offset_landscape = "0.000000"
input_overlay_x_offset_portrait = "0.000000"
input_overlay_x_separation_landscape = "0.000000"
input_overlay_x_separation_portrait = "0.000000"
input_overlay_y_offset_landscape = "0.000000"
input_overlay_y_offset_portrait = "0.000000"
input_overlay_y_separation_landscape = "0.000000"
input_overlay_y_separation_portrait = "0.000000"
input_pause_toggle_axis = "nul"
input_pause_toggle_btn = "nul"
input_pause_toggle_mbtn = "nul"
input_pause_toggle = "p"
input_poll_type_behavior = "2"
input_quit_gamepad_combo = "0"
input_recording_toggle_axis = "nul"
input_recording_toggle_btn = "nul"
input_recording_toggle_mbtn = "nul"
input_recording_toggle = "nul"
input_remap_binds_enable = "true"
input_remapping_directory = "~/remappings"
input_reset_axis = "nul"
input_reset_btn = "nul"
input_reset = "h"
input_reset_mbtn = "nul"
input_rewind_axis = "nul"
input_rewind_btn = "6"
input_rewind_mbtn = "nul"
input_rewind = "r"
input_rumble_gain = "100"
input_runahead_toggle_axis = "nul"
input_runahead_toggle_btn = "nul"
input_runahead_toggle_mbtn = "nul"
input_runahead_toggle = "nul"
input_save_state_axis = "nul"
input_save_state_btn = "5"
input_save_state = "f2"
input_save_state_mbtn = "nul"
input_screenshot_axis = "nul"
input_screenshot_btn = "nul"
input_screenshot = "f8"
input_screenshot_mbtn = "nul"
input_send_debug_info_axis = "nul"
input_send_debug_info_btn = "nul"
input_send_debug_info = "f10"
input_send_debug_info_mbtn = "nul"
input_sensors_enable = "true"
input_shader_next_axis = "nul"
input_shader_next_btn = "nul"
input_shader_next = "m"
input_shader_next_mbtn = "nul"
input_shader_prev_axis = "nul"
input_shader_prev_btn = "nul"
input_shader_prev_mbtn = "nul"
input_shader_prev = "n"
input_state_slot_decrease_axis = "nul"
input_state_slot_decrease_btn = "nul"
input_state_slot_decrease = "f6"
input_state_slot_decrease_mbtn = "nul"
input_state_slot_increase_axis = "nul"
input_state_slot_increase_btn = "nul"
input_state_slot_increase = "f7"
input_state_slot_increase_mbtn = "nul"
input_streaming_toggle_axis = "nul"
input_streaming_toggle_btn = "nul"
input_streaming_toggle_mbtn = "nul"
input_streaming_toggle = "nul"
input_toggle_fast_forward_axis = "nul"
input_toggle_fast_forward_btn = "7"
input_toggle_fast_forward_mbtn = "nul"
input_toggle_fast_forward = "space"
input_toggle_fullscreen_axis = "nul"
input_toggle_fullscreen_btn = "nul"
input_toggle_fullscreen = "f"
input_toggle_fullscreen_mbtn = "nul"
input_toggle_slowmotion_axis = "nul"
input_toggle_slowmotion_btn = "nul"
input_toggle_slowmotion_mbtn = "nul"
input_toggle_slowmotion = "nul"
input_touch_scale = "1"
input_turbo_default_button = "0"
input_turbo_mode = "0"
input_turbo_period = "6"
input_volume_down_axis = "nul"
input_volume_down_btn = "nul"
input_volume_down_mbtn = "nul"
input_volume_down = "subtract"
input_volume_up = "add"
input_volume_up_axis = "nul"
input_volume_up_btn = "nul"
input_volume_up_mbtn = "nul"
joypad_autoconfig_dir = "/tmp/joypads"
keyboard_gamepad_enable = "true"
keyboard_gamepad_mapping_type = "1"
kiosk_mode_enable = "false"
kiosk_mode_password = ""
led_driver = "null"
libretro_directory = "/tmp/cores"
libretro_info_path = "/tmp/cores"
libretro_log_level = "1"
load_dummy_on_core_shutdown = "true"
location_allow = "false"
location_driver = "null"
log_dir = "~/.config/retroarch/logs"
log_to_file = "false"
log_to_file_timestamp = "false"
log_verbosity = "true"
materialui_auto_rotate_nav_bar = "true"
materialui_dual_thumbnail_list_view_enable = "true"
materialui_icons_enable = "true"
materialui_landscape_layout_optimization = "1"
materialui_menu_color_theme = "9"
materialui_menu_transition_animation = "0"
materialui_playlist_icons_enable = "true"
materialui_show_nav_bar = "true"
materialui_thumbnail_background_enable = "true"
materialui_thumbnail_view_landscape = "2"
materialui_thumbnail_view_portrait = "1"
memory_show = "false"
memory_update_interval = "256"
menu_battery_level_enable = "true"
menu_core_enable = "true"
menu_driver = "xmb"
menu_dynamic_wallpaper_enable = "false"
menu_enable_widgets = "true"
menu_font_color_blue = "255"
menu_font_color_green = "255"
menu_font_color_red = "255"
menu_footer_opacity = "1.000000"
menu_framebuffer_opacity = "0.899999"
menu_header_opacity = "1.000000"
menu_horizontal_animation = "true"
menu_insert_disk_resume = "true"
menu_left_thumbnails = "0"
menu_linear_filter = "false"
menu_mouse_enable = "true"
menu_navigation_browser_filter_supported_extensions_enable = "true"
menu_navigation_wraparound_enable = "true"
menu_pause_libretro = "true"
menu_pointer_enable = "true"
menu_rgui_full_width_layout = "true"
menu_rgui_shadows = "false"
menu_rgui_transparency = "true"
menu_savestate_resume = "true"
menu_scale_factor = "0.800000"
menu_screensaver_animation = "0"
menu_screensaver_animation_speed = "1.000000"
menu_screensaver_timeout = "0"
menu_scroll_delay = "256"
menu_scroll_fast = "false"
menu_shader_pipeline = "2"
menu_show_advanced_settings = "true"
menu_show_configurations = "true"
menu_show_core_updater = "false"
menu_show_dump_disc = "true"
menu_show_help = "true"
menu_show_information = "true"
menu_show_latency = "true"
menu_show_legacy_thumbnail_updater = "false"
menu_show_load_content_animation = "false"
menu_show_load_content = "true"
menu_show_load_core = "true"
menu_show_load_disc = "true"
menu_show_online_updater = "true"
menu_show_overlays = "true"
menu_show_quit_retroarch = "true"
menu_show_reboot = "false"
menu_show_restart_retroarch = "true"
menu_show_rewind = "true"
menu_show_shutdown = "false"
menu_show_sublabels = "true"
menu_show_video_layout = "true"
menu_swap_ok_cancel_buttons = "false"
menu_throttle_framerate = "true"
menu_thumbnails = "3"
menu_thumbnail_upscale_threshold = "0"
menu_ticker_smooth = "true"
menu_ticker_speed = "2.000000"
menu_ticker_type = "1"
menu_timedate_date_separator = "0"
menu_timedate_enable = "true"
menu_timedate_style = "11"
menu_unified_controls = "false"
menu_use_preferred_system_color_theme = "false"
menu_wallpaper = ""
menu_wallpaper_opacity = "1.000000"
menu_widget_scale_auto = "false"
menu_widget_scale_factor = "1.000000"
menu_widget_scale_factor_windowed = "1.000000"
menu_xmb_animation_horizontal_highlight = "0"
menu_xmb_animation_move_up_down = "0"
menu_xmb_animation_opening_main_menu = "0"
menu_xmb_thumbnail_scale_factor = "100"
midi_driver = "alsa"
midi_input = "Off"
midi_output = "Off"
midi_volume = "100"
netplay_allow_slaves = "true"
netplay_check_frames = "600"
netplay_input_latency_frames_min = "0"
netplay_input_latency_frames_range = "0"
netplay_ip_address = ""
netplay_ip_port = "55435"
netplay_max_connections = "3"
netplay_mitm_server = "nyc"
netplay_nat_traversal = "true"
netplay_nickname = ""
netplay_password = ""
netplay_public_announce = "true"
netplay_request_device_p10 = "false"
netplay_request_device_p11 = "false"
netplay_request_device_p12 = "false"
netplay_request_device_p13 = "false"
netplay_request_device_p14 = "false"
netplay_request_device_p15 = "false"
netplay_request_device_p16 = "false"
netplay_request_device_p1 = "false"
netplay_request_device_p2 = "false"
netplay_request_device_p3 = "false"
netplay_request_device_p4 = "false"
netplay_request_device_p5 = "false"
netplay_request_device_p6 = "false"
netplay_request_device_p7 = "false"
netplay_request_device_p8 = "false"
netplay_request_device_p9 = "false"
netplay_require_slaves = "false"
netplay_share_analog = "1"
netplay_share_digital = "1"
netplay_spectate_password = ""
netplay_start_as_spectator = "false"
netplay_stateless_mode = "false"
netplay_use_mitm_server = "false"
network_cmd_enable = "false"
network_cmd_port = "55355"
network_on_demand_thumbnails = "false"
network_remote_base_port = "55400"
network_remote_enable = "false"
network_remote_enable_user_p10 = "false"
network_remote_enable_user_p11 = "false"
network_remote_enable_user_p12 = "false"
network_remote_enable_user_p13 = "false"
network_remote_enable_user_p14 = "false"
network_remote_enable_user_p15 = "false"
network_remote_enable_user_p16 = "false"
network_remote_enable_user_p1 = "false"
network_remote_enable_user_p2 = "false"
network_remote_enable_user_p3 = "false"
network_remote_enable_user_p4 = "false"
network_remote_enable_user_p5 = "false"
network_remote_enable_user_p6 = "false"
network_remote_enable_user_p7 = "false"
network_remote_enable_user_p8 = "false"
network_remote_enable_user_p9 = "false"
notification_show_autoconfig = "false"
notification_show_cheats_applied = "true"
notification_show_config_override_load = "false"
notification_show_fast_forward = "true"
notification_show_netplay_extra = "false"
notification_show_patch_applied = "true"
notification_show_refresh_rate = "true"
notification_show_remap_load = "false"
notification_show_screenshot_duration = "2"
notification_show_screenshot = "false"
notification_show_screenshot_flash = "1"
notification_show_set_initial_disk = "true"
overlay_directory = "/tmp/overlays"
ozone_collapse_sidebar = "false"
ozone_menu_color_theme = "1"
ozone_scroll_content_metadata = "false"
ozone_sort_after_truncate_playlist_name = "true"
ozone_truncate_playlist_name = "true"
pause_nonactive = "true"
perfcnt_enable = "false"
playlist_compression = "false"
playlist_cores = ""
playlist_directory = "~/playlists"
playlist_entry_remove_enable = "1"
playlist_entry_remove = "false"
playlist_entry_rename = "false"
playlist_fuzzy_archive_match = "false"
playlist_names = ""
playlist_portable_paths = "false"
playlist_show_entry_idx = "true"
playlist_show_inline_core_name = "0"
playlist_show_sublabels = "true"
playlist_sort_alphabetical = "true"
playlist_sublabel_last_played_style = "0"
playlist_sublabel_runtime_type = "0"
playlist_use_old_format = "false"
quick_menu_show_add_to_favorites = "true"
quick_menu_show_cheats = "true"
quick_menu_show_close_content = "true"
quick_menu_show_controls = "true"
quick_menu_show_core_options_flush = "false"
quick_menu_show_download_thumbnails = "true"
quick_menu_show_information = "true"
quick_menu_show_options = "true"
quick_menu_show_recording = "true"
quick_menu_show_reset_core_association = "true"
quick_menu_show_restart_content = "true"
quick_menu_show_resume_content = "true"
quick_menu_show_save_content_dir_overrides = "true"
quick_menu_show_save_core_overrides = "false"
quick_menu_show_save_game_overrides = "false"
quick_menu_show_save_load_state = "true"
quick_menu_show_set_core_association = "true"
quick_menu_show_shaders = "true"
quick_menu_show_start_recording = "true"
quick_menu_show_start_streaming = "true"
quick_menu_show_streaming = "true"
quick_menu_show_take_screenshot = "true"
quick_menu_show_undo_save_load_state = "false"
quit_on_close_content = "0"
quit_press_twice = "true"
record_driver = "null"
recording_config_directory = ""
recording_output_directory = "~/roms/screenshots"
resampler_directory = ""
rewind_buffer_size = "20971520"
rewind_buffer_size_step = "10"
rewind_enable = "false"
rewind_granularity = "1"
rgui_aspect_ratio = "0"
rgui_aspect_ratio_lock = "0"
rgui_background_filler_thickness_enable = "true"
rgui_border_filler_enable = "true"
rgui_border_filler_thickness_enable = "true"
rgui_browser_directory = "~/roms"
rgui_config_directory = "~/.config/retroarch/config"
rgui_extended_ascii = "false"
rgui_inline_thumbnails = "false"
rgui_internal_upscale_level = "0"
rgui_menu_color_theme = "4"
rgui_menu_theme_preset = ""
rgui_particle_effect = "0"
rgui_particle_effect_screensaver = "true"
rgui_particle_effect_speed = "1.000000"
rgui_show_start_screen = "false"
rgui_swap_thumbnails = "false"
rgui_switch_icons = "true"
rgui_thumbnail_delay = "0"
rgui_thumbnail_downscaler = "0"
run_ahead_enabled = "false"
run_ahead_frames = "1"
run_ahead_hide_warnings = "false"
run_ahead_secondary_instance = "true"
runtime_log_directory = "default"
save_file_compression = "false"
savefile_directory = "~/.config/retroarch/saves"
savefiles_in_content_dir = "true"
savestate_auto_index = "false"
savestate_auto_load = "false"
savestate_auto_save = "false"
savestate_directory = "~/.config/retroarch/states"
savestate_file_compression = "true"
savestate_max_keep = "0"
savestates_in_content_dir = "false"
savestate_thumbnail_enable = "true"
scan_without_core_match = "false"
screen_brightness = "100"
screen_orientation = "0"
screenshot_directory = "~/roms/screenshots"
screenshots_in_content_dir = "false"
settings_show_accessibility = "true"
settings_show_achievements = "true"
settings_show_ai_service = "true"
settings_show_audio = "true"
settings_show_configuration = "true"
settings_show_core = "true"
settings_show_directory = "true"
settings_show_drivers = "true"
settings_show_file_browser = "true"
settings_show_frame_throttle = "true"
settings_show_input = "true"
settings_show_latency = "true"
settings_show_logging = "true"
settings_show_network = "true"
settings_show_onscreen_display = "true"
settings_show_playlists = "true"
settings_show_power_management = "true"
settings_show_recording = "true"
settings_show_saving = "true"
settings_show_user_interface = "true"
settings_show_user = "true"
settings_show_video = "true"
show_hidden_files = "false"
slowmotion_ratio = "3.000000"
soft_filter_enable = "false"
soft_filter_index = "0"
sort_savefiles_by_content_enable = "false"
sort_savefiles_enable = "false"
sort_savestates_by_content_enable = "false"
sort_savestates_enable = "false"
sort_screenshots_by_content_enable = "false"
state_slot = "0"
statistics_show = "false"
stdin_cmd_enable = "false"
streaming_mode = "0"
suspend_screensaver_enable = "true"
sustained_performance_mode = "false"
system_directory = "~/roms/bios"
systemfiles_in_content_dir = "false"
threaded_data_runloop_enable = "true"
thumbnails_directory = "~/thumbnails"
twitch_stream_key = ""
ui_companion_enable = "false"
ui_companion_start_on_boot = "true"
ui_companion_toggle = "false"
ui_menubar_enable = "true"
use_last_start_directory = "false"
user_language = "0"
vibrate_on_keypress = "true"
video_adaptive_vsync = "false"
video_allow_rotate = "true"
video_aspect_ratio = "-1.000000"
video_aspect_ratio_auto = "true"
video_black_frame_insertion = "0"
video_context_driver = ""
video_crop_overscan = "true"
video_ctx_scaling = "false"
video_disable_composition = "false"
video_driver = "gl"
video_filter = ""
video_filter_dir = "~/.config/retroarch/filters/video"
video_font_enable = "true"
video_font_path = "/usr/share/retroarch-assets/xmb/monochrome/font.ttf"
video_font_size = "32.000000"
video_force_aspect = "true"
video_force_srgb_disable = "false"
video_frame_delay = "0"
video_frame_delay_auto = "false"
video_fullscreen = "true"
video_fullscreen_x = "0"
video_fullscreen_y = "0"
video_gpu_record = "false"
video_gpu_screenshot = "false"
video_hard_sync = "false"
video_hard_sync_frames = "0"
video_hdr_display_contrast = "5.000000"
video_hdr_enable = "false"
video_hdr_expand_gamut = "true"
video_hdr_max_nits = "1000.000000"
video_hdr_paper_white_nits = "200.000000"
video_layout_directory = "~/.config/retroarch/layouts"
video_layout_enable = "true"
video_layout_path = ""
video_layout_selected_view = "0"
video_max_swapchain_images = "3"
video_message_color = "ffff00"
video_message_pos_x = "0.049999"
video_message_pos_y = "0.049999"
video_monitor_index = "0"
video_msg_bgcolor_blue = "0"
video_msg_bgcolor_enable = "false"
video_msg_bgcolor_green = "0"
video_msg_bgcolor_opacity = "1.000000"
video_msg_bgcolor_red = "0"
video_notch_write_over_enable = "false"
video_oga_vertical_enable = "false"
video_post_filter_record = "false"
video_record_config = ""
video_record_quality = "4"
video_record_scale_factor = "1"
video_record_threads = "2"
video_refresh_rate = "60.000000"
video_rotation = "0"
video_scale = "3.000000"
video_scale_integer = "false"
video_scale_integer_overscale = "false"
video_shader_delay = "0"
video_shader_dir = "/tmp/shaders"
video_shader_enable = "false"
video_shader_preset_save_reference_enable = "true"
video_shader_remember_last_dir = "false"
video_shader_watch_files = "false"
video_shared_context = "false"
video_smooth = "false"
video_stream_config = ""
video_stream_port = "56400"
video_stream_quality = "10"
video_stream_scale_factor = "1"
video_stream_url = ""
video_swap_interval = "1"
video_threaded = "true"
video_vsync = "true"
video_window_auto_height_max = "1080"
video_window_auto_width_max = "1920"
video_window_custom_size_enable = "false"
video_windowed_fullscreen = "false"
video_windowed_position_height = "720"
video_windowed_position_width = "1280"
video_windowed_position_x = "0"
video_windowed_position_y = "0"
video_window_opacity = "100"
video_window_save_positions = "false"
video_window_show_decorations = "true"
vrr_runloop_enable = "false"
wifi_driver = "null"
wifi_enabled = "true"
xmb_alpha_factor = "75"
xmb_font = "/usr/share/retroarch-assets/xmb/monochrome/font.ttf"
xmb_layout = "2"
xmb_menu_color_theme = "4"
xmb_shadows_enable = "true"
xmb_theme = "0"
xmb_vertical_thumbnails = "false"
youtube_stream_key = ""

View file

@ -1,2 +0,0 @@
audio_filter_dir = "/usr/share/retroarch/filters/32bit/audio"
video_filter_dir = "/usr/share/retroarch/filters/32bit/video"

View file

@ -1,2 +0,0 @@
audio_filter_dir = "/usr/share/retroarch/filters/64bit/audio"
video_filter_dir = "/usr/share/retroarch/filters/64bit/video"

View file

@ -1 +0,0 @@
RK3566

View file

@ -1,10 +0,0 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
cat <<EOF >/storage/.config/profile.d/001-device_config
DEVICE_FAKE_JACKSENSE="false"
DEVICE_VOLUMECTL="true"
DEVICE_POWER_LED="false"
DEVICE_BRIGHTNESS="128"
EOF

View file

@ -1,9 +0,0 @@
#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
cat <<EOF >/storage/.config/profile.d/002-audio_path
DEVICE_PLAYBACK_PATH_SPK="SPK"
DEVICE_PLAYBACK_PATH_HP="HP"
DEVICE_PLAYBACK_PATH="Playback Path"
EOF

View file

@ -1,10 +0,0 @@
#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022-present Fewtarius
cat <<EOF >/storage/.config/profile.d/050-modifiers
DEVICE_KEY_VOLUMEDOWN=114
DEVICE_KEY_VOLUMEUP=115
DEVICE_FUNC_KEYA_MODIFIER="BTN_SELECT"
DEVICE_FUNC_KEYB_MODIFIER="BTN_MODE"
EOF

View file

@ -1,16 +0,0 @@
#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2023-present Fewtarius (https://github.com/fewtarius)
. /etc/profile.d/001-functions
### Set the default performance scaling mode for a few systems.
for SYSTEM in dreamcast n64 psp saturn
do
SETTING=$(get_setting ${SYSTEM})
if [ -z ${SETTING} ]
then
set_setting ${SYSTEM}.cpugovernor performance
fi
done

View file

@ -1,8 +0,0 @@
#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022-present Fewtarius
### Set the default device configuration
cat <<EOF >/storage/.config/profile.d/090-ui_service
UI_SERVICE="weston.service"
EOF

View file

@ -1,6 +1,6 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
cat <<EOF >/storage/.config/profile.d/001-device_config
DEVICE_FAKE_JACKSENSE="false"

View file

@ -1,6 +1,6 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
cat <<EOF >/storage/.config/profile.d/002-audio_path
DEVICE_PLAYBACK_PATH_SPK="SPK"

View file

@ -1,6 +1,6 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022-present Fewtarius
cat <<EOF >/storage/.config/profile.d/050-modifiers
DEVICE_KEY_VOLUMEDOWN=114

View file

@ -1,17 +1,16 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2023-present Fewtarius (https://github.com/fewtarius)
. /etc/profile.d/001-functions
### Set the default performance scaling mode for a few systems.
for SYSTEM in dreamcast n64 ports psp saturn
for SYSTEM in dreamcast n64 psp saturn
do
SETTING=$(get_setting ${SYSTEM})
if [ -z ${SETTING} ]
then
set_setting ${SYSTEM}.cpugovernor performance
set_setting ${SYSTEM}.gpuperf profile_peak
fi
done

View file

@ -1,8 +1,8 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022-present Fewtarius
### Set the default device configuration
cat <<EOF >/storage/.config/profile.d/090-ui_service
UI_SERVICE="emustation.service"
UI_SERVICE="weston.service"
EOF

View file

@ -1,23 +0,0 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
### Restore previous governors before going to sleep
. /etc/profile
### Grab the old governors.
OLD_CPU_FREQ=$(get_setting "sleep.cpugovernor")
if [ ! -n "${OLD_CPU_FREQ}" ]; then
OLD_CPU_FREQ="schedutil"
fi
OLD_GPU_FREQ=$(get_setting "sleep.gpugovernor")
if [ ! -n "${OLD_GPU_FREQ}" ]; then
OLD_GPU_FREQ="simple_ondemand"
fi
# Restore old governors.
set_cpu_gov "${OLD_CPU_FREQ}"
set_dmc_gov "${OLD_CPU_FREQ}"
set_gpu_gov "${OLD_GPU_FREQ}"

View file

@ -1,19 +0,0 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
# Store current freq governors and set governors to powersave.
. /etc/profile
### Get the current cpu and gpu governor, save for when the device wakes from sleep.
CUR_CPU_FREQ="$(cat ${CPU_FREQ}/scaling_governor)"
CUR_GPU_FREQ="$(cat ${GPU_FREQ}/governor)"
set_setting sleep.cpugovernor "${CUR_CPU_FREQ}"
set_setting sleep.gpugovernor "${CUR_GPU_FREQ}"
### Set all governors to powersave
set_cpu_gov powersave
set_dmc_gov powersave
set_gpu_gov powersave

File diff suppressed because it is too large Load diff

View file

@ -1,161 +0,0 @@
################################################################################
# setup device defaults
################################################################################
# The TARGET_CPU variable controls which processor should be targeted for
# generated code.
case ${TARGET_ARCH} in
aarch64)
TARGET_KERNEL_ARCH="arm64"
TARGET_PATCH_ARCH="aarch64"
TARGET_CPU="cortex-a55"
TARGET_CPU_FLAGS="+crc+crypto+fp+simd"
TARGET_FPU="fp-armv8"
TARGET_FLOAT="hard"
TARGET_FEATURES="64bit"
;;
arm)
TARGET_KERNEL_ARCH="arm64"
TARGET_PATCH_ARCH="aarch64"
TARGET_CPU="cortex-a55"
TARGET_CPU_FLAGS="+crc"
TARGET_FPU="neon-fp-armv8"
TARGET_FLOAT="hard"
TARGET_FEATURES="32bit"
;;
esac
# Kernel target
DEVICE_NAME="RK3566"
KERNEL_TARGET="Image"
BOOTLOADER="u-boot"
PARTITION_TABLE="gpt"
UBOOT_LABEL="uboot"
TRUST_LABEL="trust"
DEVICE_DTB=("rk3566-anbernic-rg353ps" "rk3566-anbernic-rg353vs" "rk3566-anbernic-rg503" "rk3566-anbernic-rg353p" "rk3566-anbernic-rg353v" "rk3566-powkiddy-rk2023" "rk3566-powkiddy-rgb30")
UBOOT_DTB="rk3566"
UBOOT_CONFIG="anbernic-rgxx3-rk3566_defconfig"
PKG_SOC="rk3568"
PKG_DATAFILE="${PKG_RKBIN}/bin/rk35/rk3568_ddr_1056MHz_v1.16.bin"
PKG_LOADER="${PKG_RKBIN}/bin/rk35/rk356x_spl_v1.12.bin"
PKG_BL31="${PKG_RKBIN}/bin/rk35/rk3568_bl31_v1.42.elf"
PKG_LOAD_ADDR="0x0a100000"
BOOT_INI=false
EXT_LINUX_CONF=true
# Additional kernel make parameters (for example to specify the u-boot loadaddress)
KERNEL_MAKE_EXTRACMD=" $(for DTB in "${DEVICE_DTB[@]}"; do echo -n "rockchip/${DTB}.dtb "; done)"
KERNEL_EXTRA_DEPENDS_TARGET="zstd libcap libtraceevent"
# Define the CPU
HW_CPU="Rockchip RK3566"
# Mali GPU family
MALI_FAMILY="bifrost-g52"
# MALI_VERSION="g2p0"
# OPENGLES="libmali"
VULKAN_SUPPORT=""
# OpenGL(X) implementation to use (mesa / no)
OPENGL="mesa"
# OpenGL-ES implementation to use (mesa / no)
OPENGLES="mesa"
GRAPHIC_DRIVERS="panfrost"
# Displayserver to use (weston / x11 / no)
DISPLAYSERVER="wl"
# Windowmanager to use (fluxbox / weston / no)
WINDOWMANAGER="weston"
# debug tty path
DEBUG_TTY="/dev/ttyS2"
# kernel serial console
#EXTRA_CMDLINE="quiet rootwait earlycon=uart8250,mmio32,0xfe660000 console=ttyS2,1500000n8 console=tty0 ssh consoleblank=0 systemd.show_status=0 loglevel=0 panic=20 initcall_blacklist=uvc_init log_buf_len=1M"
EXTRA_CMDLINE="rootwait earlycon=uart8250,mmio32,0xfe660000 console=ttyS2,1500000n8 console=tty1 ssh consoleblank=0 systemd.show_status=0 loglevel=8 panic=20 nopkmute"
# additional packages to install
# ADDITIONAL_PACKAGES=""
# additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware)
# Space separated list is supported,
# e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware"
FIRMWARE="misc-firmware"
# additional drivers to install:
# for a list of additional drivers see packages/linux-drivers
# Space separated list is supported,
# e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2"
ADDITIONAL_DRIVERS="jelos-gamepad"
# build and install driver addons (yes / no)
DRIVER_ADDONS_SUPPORT="no"
# driver addons to install:
# for a list of additinoal drivers see packages/linux-driver-addons
# Space separated list is supported,
DRIVER_ADDONS="" #dvb-latest
# build and install bluetooth support (yes / no)
BLUETOOTH_SUPPORT="yes"
# build and install Avahi (Zeroconf) daemon (yes / no)
AVAHI_DAEMON="no"
# build with NFS support (mounting nfs shares via the OS) (yes / no)
NFS_SUPPORT="no"
# build with Samba Client support (mounting samba shares via the OS) (yes / no)
SAMBA_SUPPORT="no"
# build and install Samba Server (yes / no)
SAMBA_SERVER="yes"
# build and install SFTP Server (yes / no)
SFTP_SERVER="yes"
# build and install OpenVPN support (yes / no)
OPENVPN_SUPPORT="no"
WIREGUARD_SUPPORT="no"
# build and install ZeroTier support (yes / no)
ZEROTIER_SUPPORT="yes"
# build and install diskmounter support (udevil)
# this service provide auto mounting support for external drives in the
# mediacenter also automount internally drives at boottime via udev (yes / no)
UDEVIL="yes"
# build and install exFAT fuse support (yes / no)
EXFAT="yes"
# build and install NTFS-3G fuse support (yes / no)
NTFS3G="no"
# build and install hfs filesystem utilities (yes / no)
HFSTOOLS="no"
# Support for partitioning and formating disks in initramfs (yes / no)
# This adds support for parted and mkfs.ext3/4 to initramfs for OEM usage
INITRAMFS_PARTED_SUPPORT="no"
# build with swap support (yes / no)
SWAP_SUPPORT="yes"
# swap support enabled per default (yes / no)
SWAP_ENABLED_DEFAULT="yes"
# swapfile size if SWAP_SUPPORT=yes in MB
SWAPFILESIZE="384"
# cron support (yes / no)
CRON_SUPPORT="no"
# Settings package name - blank if not required
DISTRO_PKG_SETTINGS=""
# htop tool (yes / no)
HTOP_TOOL="yes"

View file

@ -1,161 +0,0 @@
################################################################################
# setup device defaults
################################################################################
# The TARGET_CPU variable controls which processor should be targeted for
# generated code.
case ${TARGET_ARCH} in
aarch64)
TARGET_KERNEL_ARCH="arm64"
TARGET_PATCH_ARCH="aarch64"
TARGET_CPU="cortex-a55"
TARGET_CPU_FLAGS="+crc+crypto+fp+simd"
TARGET_FPU="fp-armv8"
TARGET_FLOAT="hard"
TARGET_FEATURES="64bit"
;;
arm)
TARGET_KERNEL_ARCH="arm64"
TARGET_PATCH_ARCH="aarch64"
TARGET_CPU="cortex-a55"
TARGET_CPU_FLAGS="+crc"
TARGET_FPU="neon-fp-armv8"
TARGET_FLOAT="hard"
TARGET_FEATURES="32bit"
;;
esac
# Kernel target
DEVICE_NAME="RK3566"
KERNEL_TARGET="Image"
BOOTLOADER="u-boot"
PARTITION_TABLE="gpt"
UBOOT_LABEL="uboot"
TRUST_LABEL="trust"
DEVICE_DTB=("rk3566-powkiddy-x55")
UBOOT_DTB="rk3566"
UBOOT_CONFIG="powkiddy-x55-rk3566_defconfig"
PKG_SOC="rk3568"
PKG_DATAFILE="${PKG_RKBIN}/bin/rk35/rk3568_ddr_1056MHz_v1.16.bin"
PKG_LOADER="${PKG_RKBIN}/bin/rk35/rk356x_spl_v1.12.bin"
PKG_BL31="${PKG_RKBIN}/bin/rk35/rk3568_bl31_v1.42.elf"
PKG_LOAD_ADDR="0x0a100000"
BOOT_INI=false
EXT_LINUX_CONF=true
# Additional kernel make parameters (for example to specify the u-boot loadaddress)
KERNEL_MAKE_EXTRACMD=" $(for DTB in "${DEVICE_DTB[@]}"; do echo -n "rockchip/${DTB}.dtb "; done)"
KERNEL_EXTRA_DEPENDS_TARGET="zstd libcap libtraceevent"
# Define the CPU
HW_CPU="Rockchip RK3566"
# Mali GPU family
MALI_FAMILY="bifrost-g52"
# MALI_VERSION="g2p0"
# OPENGLES="libmali"
VULKAN_SUPPORT=""
# OpenGL(X) implementation to use (mesa / no)
OPENGL="mesa"
# OpenGL-ES implementation to use (mesa / no)
OPENGLES="mesa"
GRAPHIC_DRIVERS="panfrost"
# Displayserver to use (weston / x11 / no)
DISPLAYSERVER="wl"
# Windowmanager to use (fluxbox / weston / no)
WINDOWMANAGER="weston"
# debug tty path
DEBUG_TTY="/dev/ttyS2"
# kernel serial console
#EXTRA_CMDLINE="quiet rootwait earlycon=uart8250,mmio32,0xfe660000 console=ttyS2,1500000n8 console=tty0 ssh consoleblank=0 systemd.show_status=0 loglevel=0 panic=20 initcall_blacklist=uvc_init log_buf_len=1M"
EXTRA_CMDLINE="rootwait earlycon=uart8250,mmio32,0xfe660000 console=ttyS2,1500000n8 console=tty1 ssh consoleblank=0 systemd.show_status=0 loglevel=8 panic=20 nopkmute"
# additional packages to install
# ADDITIONAL_PACKAGES=""
# additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware)
# Space separated list is supported,
# e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware"
FIRMWARE="misc-firmware"
# additional drivers to install:
# for a list of additional drivers see packages/linux-drivers
# Space separated list is supported,
# e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2"
ADDITIONAL_DRIVERS="jelos-gamepad"
# build and install driver addons (yes / no)
DRIVER_ADDONS_SUPPORT="no"
# driver addons to install:
# for a list of additinoal drivers see packages/linux-driver-addons
# Space separated list is supported,
DRIVER_ADDONS="" #dvb-latest
# build and install bluetooth support (yes / no)
BLUETOOTH_SUPPORT="yes"
# build and install Avahi (Zeroconf) daemon (yes / no)
AVAHI_DAEMON="no"
# build with NFS support (mounting nfs shares via the OS) (yes / no)
NFS_SUPPORT="no"
# build with Samba Client support (mounting samba shares via the OS) (yes / no)
SAMBA_SUPPORT="no"
# build and install Samba Server (yes / no)
SAMBA_SERVER="yes"
# build and install SFTP Server (yes / no)
SFTP_SERVER="yes"
# build and install OpenVPN support (yes / no)
OPENVPN_SUPPORT="no"
WIREGUARD_SUPPORT="no"
# build and install ZeroTier support (yes / no)
ZEROTIER_SUPPORT="yes"
# build and install diskmounter support (udevil)
# this service provide auto mounting support for external drives in the
# mediacenter also automount internally drives at boottime via udev (yes / no)
UDEVIL="yes"
# build and install exFAT fuse support (yes / no)
EXFAT="yes"
# build and install NTFS-3G fuse support (yes / no)
NTFS3G="no"
# build and install hfs filesystem utilities (yes / no)
HFSTOOLS="no"
# Support for partitioning and formating disks in initramfs (yes / no)
# This adds support for parted and mkfs.ext3/4 to initramfs for OEM usage
INITRAMFS_PARTED_SUPPORT="no"
# build with swap support (yes / no)
SWAP_SUPPORT="yes"
# swap support enabled per default (yes / no)
SWAP_ENABLED_DEFAULT="yes"
# swapfile size if SWAP_SUPPORT=yes in MB
SWAPFILESIZE="384"
# cron support (yes / no)
CRON_SUPPORT="no"
# Settings package name - blank if not required
DISTRO_PKG_SETTINGS=""
# htop tool (yes / no)
HTOP_TOOL="yes"

File diff suppressed because it is too large Load diff

View file

@ -31,12 +31,12 @@
BOOTLOADER="u-boot"
PARTITION_TABLE="gpt"
UBOOT_LABEL="uboot"
TRUST_LABEL="resource"
DEVICE_DTB=("rk3566-evb2-lp4x-v10-linux")
TRUST_LABEL="trust"
DEVICE_DTB=("rk3566-powkiddy-x55")
UBOOT_DTB="rk3566"
UBOOT_CONFIG="rk3568_defconfig"
PKG_SOC="rk356x"
PKG_DATAFILE="${PKG_RKBIN}/bin/rk35/rk3566_ddr_1056MHz_v1.16.bin"
UBOOT_CONFIG="powkiddy-x55-rk3566_defconfig"
PKG_SOC="rk3568"
PKG_DATAFILE="${PKG_RKBIN}/bin/rk35/rk3568_ddr_1056MHz_v1.16.bin"
PKG_LOADER="${PKG_RKBIN}/bin/rk35/rk356x_spl_v1.12.bin"
PKG_BL31="${PKG_RKBIN}/bin/rk35/rk3568_bl31_v1.42.elf"
PKG_LOAD_ADDR="0x0a100000"
@ -45,26 +45,37 @@
# Additional kernel make parameters (for example to specify the u-boot loadaddress)
KERNEL_MAKE_EXTRACMD=" $(for DTB in "${DEVICE_DTB[@]}"; do echo -n "rockchip/${DTB}.dtb "; done)"
KERNEL_EXTRA_DEPENDS_TARGET="zstd libcap libtraceevent"
# Define the CPU
HW_CPU="Rockchip RK3566"
# Mali GPU family
MALI_FAMILY="bifrost-g52"
MALI_VERSION="g2p0"
OPENGLES="libmali"
VULKAN_SUPPORT="no"
# MALI_VERSION="g2p0"
# OPENGLES="libmali"
VULKAN_SUPPORT=""
GRAPHIC_DRIVERS=""
# OpenGL(X) implementation to use (mesa / no)
OPENGL="mesa"
# OpenGL-ES implementation to use (mesa / no)
OPENGLES="mesa"
GRAPHIC_DRIVERS="panfrost"
# Displayserver to use (weston / x11 / no)
DISPLAYSERVER="no"
DISPLAYSERVER="wl"
# Windowmanager to use (fluxbox / weston / no)
WINDOWMANAGER="no"
WINDOWMANAGER="weston"
# debug tty path
DEBUG_TTY="/dev/ttyS2"
# kernel serial console
EXTRA_CMDLINE="quiet rootwait console=ttyUSB0,1500000 fbcon=rotate:3 console=tty0 ssh consoleblank=0 systemd.show_status=0 loglevel=0 panic=20"
#EXTRA_CMDLINE="quiet rootwait earlycon=uart8250,mmio32,0xfe660000 console=ttyS2,1500000n8 console=tty0 ssh consoleblank=0 systemd.show_status=0 loglevel=0 panic=20 initcall_blacklist=uvc_init log_buf_len=1M"
EXTRA_CMDLINE="rootwait earlycon=uart8250,mmio32,0xfe660000 console=ttyS2,1500000n8 console=tty1 ssh consoleblank=0 systemd.show_status=0 loglevel=8 panic=20 nopkmute"
# additional packages to install
# ADDITIONAL_PACKAGES=""
@ -72,13 +83,13 @@
# additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware)
# Space separated list is supported,
# e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware"
FIRMWARE="misc-firmware wlan-firmware RTL8821CS-firmware"
FIRMWARE="misc-firmware"
# additional drivers to install:
# for a list of additional drivers see packages/linux-drivers
# Space separated list is supported,
# e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2"
# ADDITIONAL_DRIVERS="RTL8821AU RTL8821CU RTL88x2BU"
ADDITIONAL_DRIVERS="jelos-gamepad"
# build and install driver addons (yes / no)
DRIVER_ADDONS_SUPPORT="no"
@ -88,9 +99,6 @@
# Space separated list is supported,
DRIVER_ADDONS="" #dvb-latest
# debug tty path
DEBUG_TTY="/dev/ttyUSB0"
# build and install bluetooth support (yes / no)
BLUETOOTH_SUPPORT="yes"
@ -109,11 +117,9 @@
# build and install SFTP Server (yes / no)
SFTP_SERVER="yes"
# build and install Simple HTTP Server (yes / no)
SIMPLE_HTTP_SERVER="yes"
# build and install OpenVPN support (yes / no)
OPENVPN_SUPPORT="no"
WIREGUARD_SUPPORT="no"
# build and install ZeroTier support (yes / no)
ZEROTIER_SUPPORT="yes"

View file

@ -1,6 +0,0 @@
setenv bootargs "boot=UUID=@UUID_SYSTEM@ disk=UUID=@UUID_STORAGE@ @EXTRA_CMDLINE@"
setenv kernel_comp_addr_r 0x03000000
setenv kernel_comp_size 0x04000000
load mmc 1 ${fdt_addr_r} ${fdtfile}
load mmc 1 ${kernel_addr_r} KERNEL
booti ${kernel_addr_r} - ${fdt_addr_r}

File diff suppressed because it is too large Load diff

View file

@ -31,12 +31,12 @@
BOOTLOADER="u-boot"
PARTITION_TABLE="gpt"
UBOOT_LABEL="uboot"
TRUST_LABEL="resource"
DEVICE_DTB=("rk3566-rg353p-linux" "rk3566-rg353v-linux" "rk3566-rg353m-linux" "rk3566-rg503-linux" "rk3566-rk2023-linux" "rk3566-rgb30-linux")
TRUST_LABEL="trust"
DEVICE_DTB=("rk3566-anbernic-rg353ps" "rk3566-anbernic-rg353vs" "rk3566-anbernic-rg503" "rk3566-anbernic-rg353p" "rk3566-anbernic-rg353v" "rk3566-powkiddy-rk2023" "rk3566-powkiddy-rgb30")
UBOOT_DTB="rk3566"
UBOOT_CONFIG="rk3568_defconfig"
PKG_SOC="rk356x"
PKG_DATAFILE="${PKG_RKBIN}/bin/rk35/rk3566_ddr_1056MHz_v1.16.bin"
UBOOT_CONFIG="anbernic-rgxx3-rk3566_defconfig"
PKG_SOC="rk3568"
PKG_DATAFILE="${PKG_RKBIN}/bin/rk35/rk3568_ddr_1056MHz_v1.16.bin"
PKG_LOADER="${PKG_RKBIN}/bin/rk35/rk356x_spl_v1.12.bin"
PKG_BL31="${PKG_RKBIN}/bin/rk35/rk3568_bl31_v1.42.elf"
PKG_LOAD_ADDR="0x0a100000"
@ -45,26 +45,37 @@
# Additional kernel make parameters (for example to specify the u-boot loadaddress)
KERNEL_MAKE_EXTRACMD=" $(for DTB in "${DEVICE_DTB[@]}"; do echo -n "rockchip/${DTB}.dtb "; done)"
KERNEL_EXTRA_DEPENDS_TARGET="zstd libcap libtraceevent"
# Define the CPU
HW_CPU="Rockchip RK3566"
# Mali GPU family
MALI_FAMILY="bifrost-g52"
MALI_VERSION="g2p0"
OPENGLES="libmali"
VULKAN_SUPPORT="no"
# MALI_VERSION="g2p0"
# OPENGLES="libmali"
VULKAN_SUPPORT=""
GRAPHIC_DRIVERS=""
# OpenGL(X) implementation to use (mesa / no)
OPENGL="mesa"
# OpenGL-ES implementation to use (mesa / no)
OPENGLES="mesa"
GRAPHIC_DRIVERS="panfrost"
# Displayserver to use (weston / x11 / no)
DISPLAYSERVER="no"
DISPLAYSERVER="wl"
# Windowmanager to use (fluxbox / weston / no)
WINDOWMANAGER="no"
WINDOWMANAGER="weston"
# debug tty path
DEBUG_TTY="/dev/ttyS2"
# kernel serial console
EXTRA_CMDLINE="quiet rootwait console=ttyS2,1500000 console=/dev/tty0 ssh consoleblank=0 systemd.show_status=0 loglevel=0 panic=20"
#EXTRA_CMDLINE="quiet rootwait earlycon=uart8250,mmio32,0xfe660000 console=ttyS2,1500000n8 console=tty0 ssh consoleblank=0 systemd.show_status=0 loglevel=0 panic=20 initcall_blacklist=uvc_init log_buf_len=1M"
EXTRA_CMDLINE="rootwait earlycon=uart8250,mmio32,0xfe660000 console=ttyS2,1500000n8 console=tty1 ssh consoleblank=0 systemd.show_status=0 loglevel=8 panic=20 nopkmute"
# additional packages to install
# ADDITIONAL_PACKAGES=""
@ -72,13 +83,13 @@
# additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware)
# Space separated list is supported,
# e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware"
FIRMWARE="misc-firmware wlan-firmware RTL8821CS-firmware"
FIRMWARE="misc-firmware"
# additional drivers to install:
# for a list of additional drivers see packages/linux-drivers
# Space separated list is supported,
# e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2"
ADDITIONAL_DRIVERS="RTL8821AU RTL8821CU RTL88x2BU"
ADDITIONAL_DRIVERS="jelos-gamepad"
# build and install driver addons (yes / no)
DRIVER_ADDONS_SUPPORT="no"
@ -88,9 +99,6 @@
# Space separated list is supported,
DRIVER_ADDONS="" #dvb-latest
# debug tty path
DEBUG_TTY="/dev/ttyUSB0"
# build and install bluetooth support (yes / no)
BLUETOOTH_SUPPORT="yes"
@ -109,11 +117,9 @@
# build and install SFTP Server (yes / no)
SFTP_SERVER="yes"
# build and install Simple HTTP Server (yes / no)
SIMPLE_HTTP_SERVER="yes"
# build and install OpenVPN support (yes / no)
OPENVPN_SUPPORT="no"
WIREGUARD_SUPPORT="no"
# build and install ZeroTier support (yes / no)
ZEROTIER_SUPPORT="yes"

View file

@ -23,22 +23,10 @@ case ${DEVICE} in
GET_HANDLER_SUPPORT="git"
PKG_GIT_CLONE_BRANCH="main"
;;
*ML)
PKG_VERSION="6.7-rc6"
RK356*)
PKG_VERSION="6.7-rc7"
PKG_URL="https://git.kernel.org/torvalds/t/${PKG_NAME}-${PKG_VERSION}.tar.gz"
;;
RK3566)
PKG_URL="${PKG_SITE}/rk356x-kernel.git"
PKG_VERSION="d346337a7b3e3e7e0d12dbdcc4fc62efc86cbda3"
GET_HANDLER_SUPPORT="git"
PKG_GIT_CLONE_BRANCH="main"
;;
*X55)
PKG_URL="${PKG_SITE}/rk3566-x55-kernel.git"
PKG_VERSION="9b92751b8fe21f9326d1a54dd5f675965a12d6e1"
GET_HANDLER_SUPPORT="git"
PKG_GIT_CLONE_BRANCH="main"
;;
RK33*)
PKG_VERSION="6.1.69"
PKG_URL="https://www.kernel.org/pub/linux/kernel/v6.x/${PKG_NAME}-${PKG_VERSION}.tar.xz"

View file

@ -1,103 +0,0 @@
From c74b76bb8a4da44a9f8cf06f4aba9f3334e1a148 Mon Sep 17 00:00:00 2001
From: Derek Basehore <dbasehore@chromium.org>
Date: Tue, 9 Jul 2019 19:16:56 -0700
Subject: [PATCH 1/4] drm/panel: Add helper for reading DT rotation
This adds a helper function for reading the rotation (panel
orientation) from the device tree.
Signed-off-by: Derek Basehore <dbasehore@chromium.org>
---
drivers/gpu/drm/drm_panel.c | 43 +++++++++++++++++++++++++++++++++++++
include/drm/drm_panel.h | 9 ++++++++
2 files changed, 52 insertions(+)
diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c
index d37b83f40..b2d8fa2c3 100644
--- a/drivers/gpu/drm/drm_panel.c
+++ b/drivers/gpu/drm/drm_panel.c
@@ -168,6 +168,49 @@ struct drm_panel *of_drm_find_panel(const struct device_node *np)
return ERR_PTR(-EPROBE_DEFER);
}
EXPORT_SYMBOL(of_drm_find_panel);
+
+/**
+ * of_drm_get_panel_orientation - look up the orientation of the panel through
+ * the "rotation" binding from a device tree node
+ * @np: device tree node of the panel
+ * @orientation: orientation enum to be filled in
+ *
+ * Looks up the rotation of a panel in the device tree. The orientation of the
+ * panel is expressed as a property name "rotation" in the device tree. The
+ * rotation in the device tree is counter clockwise.
+ *
+ * Return: 0 when a valid rotation value (0, 90, 180, or 270) is read or the
+ * rotation property doesn't exist. -EERROR otherwise.
+ */
+int of_drm_get_panel_orientation(const struct device_node *np,
+ enum drm_panel_orientation *orientation)
+{
+ int rotation, ret;
+
+ ret = of_property_read_u32(np, "rotation", &rotation);
+ if (ret == -EINVAL) {
+ /* Don't return an error if there's no rotation property. */
+ *orientation = DRM_MODE_PANEL_ORIENTATION_UNKNOWN;
+ return 0;
+ }
+
+ if (ret < 0)
+ return ret;
+
+ if (rotation == 0)
+ *orientation = DRM_MODE_PANEL_ORIENTATION_NORMAL;
+ else if (rotation == 90)
+ *orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP;
+ else if (rotation == 180)
+ *orientation = DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP;
+ else if (rotation == 270)
+ *orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP;
+ else
+ return -EINVAL;
+
+ return 0;
+}
+EXPORT_SYMBOL(of_drm_get_panel_orientation);
#endif
int drm_panel_notifier_register(struct drm_panel *panel,
diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h
index 6aab8fefc..c58c4c19f 100644
--- a/include/drm/drm_panel.h
+++ b/include/drm/drm_panel.h
@@ -53,6 +53,8 @@ struct drm_device;
struct drm_panel;
struct display_timing;
+enum drm_panel_orientation;
+
/**
* @loader_protect: protect loader logo panel's power
* struct drm_panel_funcs - perform operations on a given panel
@@ -240,11 +242,18 @@ int drm_panel_notifier_call_chain(struct drm_panel *panel,
#if defined(CONFIG_OF) && defined(CONFIG_DRM_PANEL)
struct drm_panel *of_drm_find_panel(const struct device_node *np);
+int of_drm_get_panel_orientation(const struct device_node *np,
+ enum drm_panel_orientation *orientation);
#else
static inline struct drm_panel *of_drm_find_panel(const struct device_node *np)
{
return ERR_PTR(-ENODEV);
}
+static inline int of_drm_get_panel_orientation(const struct device_node *np,
+ enum drm_panel_orientation *orientation)
+{
+ return -ENODEV;
+}
#endif
#endif
--
2.34.1

View file

@ -1,171 +0,0 @@
From b76306d4adb2e169f8425fb417de565d555fcf22 Mon Sep 17 00:00:00 2001
From: Derek Basehore <dbasehore@chromium.org>
Date: Sun, 5 Jan 2020 16:51:19 +0100
Subject: [PATCH 2/4] drm/connector: Split out orientation quirk detection (v2)
Not every platform needs quirk detection for panel orientation, so
split the drm_connector_init_panel_orientation_property into two
functions. One for platforms without the need for quirks, and the
other for platforms that need quirks.
Hans de Goede (changes in v2):
Rename the function from drm_connector_init_panel_orientation_property
to drm_connector_set_panel_orientation[_with_quirk] and pass in the
panel-orientation to set.
Beside the rename, also make the function set the passed in value
only once, if the value was set before (to a value other then
DRM_MODE_PANEL_ORIENTATION_UNKNOWN) make any further set calls a no-op.
This change is preparation for allowing the user to override the
panel-orientation for any connector from the kernel commandline.
When the panel-orientation is overridden this way, then we must ignore
the panel-orientation detection done by the driver.
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Derek Basehore <dbasehore@chromium.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200105155120.96466-1-hdegoede@redhat.com
---
drivers/gpu/drm/drm_connector.c | 74 ++++++++++++++++++++++++---------
include/drm/drm_connector.h | 9 +++-
2 files changed, 61 insertions(+), 22 deletions(-)
diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
index 8a2a1965e..77a2087bf 100644
--- a/drivers/gpu/drm/drm_connector.c
+++ b/drivers/gpu/drm/drm_connector.c
@@ -996,7 +996,8 @@ static const struct drm_prop_enum_list dp_colorspaces[] = {
* coordinates, so if userspace rotates the picture to adjust for
* the orientation it must also apply the same transformation to the
* touchscreen input coordinates. This property is initialized by calling
- * drm_connector_init_panel_orientation_property().
+ * drm_connector_set_panel_orientation() or
+ * drm_connector_set_panel_orientation_with_quirk()
*
* scaling mode:
* This property defines how a non-native mode is upscaled to the native
@@ -1713,38 +1714,41 @@ void drm_connector_set_link_status_property(struct drm_connector *connector,
EXPORT_SYMBOL(drm_connector_set_link_status_property);
/**
- * drm_connector_init_panel_orientation_property -
- * initialize the connecters panel_orientation property
- * @connector: connector for which to init the panel-orientation property.
- * @width: width in pixels of the panel, used for panel quirk detection
- * @height: height in pixels of the panel, used for panel quirk detection
+ * drm_connector_set_panel_orientation - sets the connecter's panel_orientation
+ * @connector: connector for which to set the panel-orientation property.
+ * @panel_orientation: drm_panel_orientation value to set
+ *
+ * This function sets the connector's panel_orientation and attaches
+ * a "panel orientation" property to the connector.
*
- * This function should only be called for built-in panels, after setting
- * connector->display_info.panel_orientation first (if known).
+ * Calling this function on a connector where the panel_orientation has
+ * already been set is a no-op (e.g. the orientation has been overridden with
+ * a kernel commandline option).
*
- * This function will check for platform specific (e.g. DMI based) quirks
- * overriding display_info.panel_orientation first, then if panel_orientation
- * is not DRM_MODE_PANEL_ORIENTATION_UNKNOWN it will attach the
- * "panel orientation" property to the connector.
+ * It is allowed to call this function with a panel_orientation of
+ * DRM_MODE_PANEL_ORIENTATION_UNKNOWN, in which case it is a no-op.
*
* Returns:
* Zero on success, negative errno on failure.
*/
-int drm_connector_init_panel_orientation_property(
- struct drm_connector *connector, int width, int height)
+int drm_connector_set_panel_orientation(
+ struct drm_connector *connector,
+ enum drm_panel_orientation panel_orientation)
{
struct drm_device *dev = connector->dev;
struct drm_display_info *info = &connector->display_info;
struct drm_property *prop;
- int orientation_quirk;
- orientation_quirk = drm_get_panel_orientation_quirk(width, height);
- if (orientation_quirk != DRM_MODE_PANEL_ORIENTATION_UNKNOWN)
- info->panel_orientation = orientation_quirk;
+ /* Already set? */
+ if (info->panel_orientation != DRM_MODE_PANEL_ORIENTATION_UNKNOWN)
+ return 0;
- if (info->panel_orientation == DRM_MODE_PANEL_ORIENTATION_UNKNOWN)
+ /* Don't attach the property if the orientation is unknown */
+ if (panel_orientation == DRM_MODE_PANEL_ORIENTATION_UNKNOWN)
return 0;
+ info->panel_orientation = panel_orientation;
+
prop = dev->mode_config.panel_orientation_property;
if (!prop) {
prop = drm_property_create_enum(dev, DRM_MODE_PROP_IMMUTABLE,
@@ -1761,7 +1765,37 @@ int drm_connector_init_panel_orientation_property(
info->panel_orientation);
return 0;
}
-EXPORT_SYMBOL(drm_connector_init_panel_orientation_property);
+EXPORT_SYMBOL(drm_connector_set_panel_orientation);
+
+/**
+ * drm_connector_set_panel_orientation_with_quirk -
+ * set the connecter's panel_orientation after checking for quirks
+ * @connector: connector for which to init the panel-orientation property.
+ * @panel_orientation: drm_panel_orientation value to set
+ * @width: width in pixels of the panel, used for panel quirk detection
+ * @height: height in pixels of the panel, used for panel quirk detection
+ *
+ * Like drm_connector_set_panel_orientation(), but with a check for platform
+ * specific (e.g. DMI based) quirks overriding the passed in panel_orientation.
+ *
+ * Returns:
+ * Zero on success, negative errno on failure.
+ */
+int drm_connector_set_panel_orientation_with_quirk(
+ struct drm_connector *connector,
+ enum drm_panel_orientation panel_orientation,
+ int width, int height)
+{
+ int orientation_quirk;
+
+ orientation_quirk = drm_get_panel_orientation_quirk(width, height);
+ if (orientation_quirk != DRM_MODE_PANEL_ORIENTATION_UNKNOWN)
+ panel_orientation = orientation_quirk;
+
+ return drm_connector_set_panel_orientation(connector,
+ panel_orientation);
+}
+EXPORT_SYMBOL(drm_connector_set_panel_orientation_with_quirk);
int drm_connector_set_obj_prop(struct drm_mode_object *obj,
struct drm_property *property,
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h
index 1d81bb31f..44b6c7f85 100644
--- a/include/drm/drm_connector.h
+++ b/include/drm/drm_connector.h
@@ -1473,8 +1473,13 @@ int drm_connector_update_edid_property(struct drm_connector *connector,
const struct edid *edid);
void drm_connector_set_link_status_property(struct drm_connector *connector,
uint64_t link_status);
-int drm_connector_init_panel_orientation_property(
- struct drm_connector *connector, int width, int height);
+int drm_connector_set_panel_orientation(
+ struct drm_connector *connector,
+ enum drm_panel_orientation panel_orientation);
+int drm_connector_set_panel_orientation_with_quirk(
+ struct drm_connector *connector,
+ enum drm_panel_orientation panel_orientation,
+ int width, int height);
/**
* struct drm_tile_group - Tile group metadata
--
2.34.1

View file

@ -1,55 +0,0 @@
From 953791baf27ea161378af5c78d8db337472507c8 Mon Sep 17 00:00:00 2001
From: Dmitry Osipenko <digetx@gmail.com>
Date: Fri, 14 Aug 2020 00:56:09 +0300
Subject: [PATCH 3/4] drm/panel-simple: Read panel orientation
The panel orientation needs to parsed from a device-tree and assigned to
the panel's connector in order to make orientation property available to
userspace. That's what this patch does for the panel-simple driver.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200813215609.28643-5-digetx@gmail.com
---
drivers/gpu/drm/panel/panel-simple.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index f41d4e091..f10181b93 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -127,6 +127,8 @@ struct panel_simple {
struct gpio_desc *spi_scl_gpio;
struct gpio_desc *spi_cs_gpio;
struct device_node *np_crtc;
+
+ enum drm_panel_orientation orientation;
};
enum rockchip_cmd_type {
@@ -442,6 +444,9 @@ static int panel_simple_get_fixed_modes(struct panel_simple *panel)
if (panel->desc->bus_flags)
connector->display_info.bus_flags = panel->desc->bus_flags;
+ /* set up connector's "panel orientation" property */
+ drm_connector_set_panel_orientation(connector, panel->orientation);
+
return num;
}
@@ -789,6 +794,12 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc)
return -EPROBE_DEFER;
}
+ err = of_drm_get_panel_orientation(dev->of_node, &panel->orientation);
+ if (err) {
+ dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err);
+ return err;
+ }
+
ddc = of_parse_phandle(dev->of_node, "ddc-i2c-bus", 0);
if (ddc) {
panel->ddc = of_find_i2c_adapter_by_node(ddc);
--
2.34.1

View file

@ -1,25 +0,0 @@
From ad469e3890607d81f4b6ee0f8035537d76937370 Mon Sep 17 00:00:00 2001
From: Johnny on Flame <johnnyonflame@hotmail.com>
Date: Mon, 7 Aug 2023 20:59:28 +0000
Subject: [PATCH 4/4] dts: Define the orientation of the Powkiddy X55 panel.
---
.../boot/dts/rockchip/lcd/lcd_HX8394F_720x1280_mipi_dsi0.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/rockchip/lcd/lcd_HX8394F_720x1280_mipi_dsi0.dtsi b/arch/arm64/boot/dts/rockchip/lcd/lcd_HX8394F_720x1280_mipi_dsi0.dtsi
index 5eb492203..b3745a81b 100755
--- a/arch/arm64/boot/dts/rockchip/lcd/lcd_HX8394F_720x1280_mipi_dsi0.dtsi
+++ b/arch/arm64/boot/dts/rockchip/lcd/lcd_HX8394F_720x1280_mipi_dsi0.dtsi
@@ -16,7 +16,7 @@
init-delay-ms = <60>;
unprepare-delay-ms = <60>;
disable-delay-ms = <60>;
-
+ rotation = <90>;
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
--
2.34.1

View file

@ -1,12 +0,0 @@
diff --git a/Makefile b/Makefile
index 1c06eae06..9465e5561 100755
--- a/Makefile
+++ b/Makefile
@@ -710,6 +710,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning, array-compare)
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-overread)
KBUILD_CFLAGS += $(call cc-disable-warning, dangling-pointer)
KBUILD_CFLAGS += $(call cc-disable-warning, address)
+KBUILD_CFLAGS += $(call cc-disable-warning, enum-int-mismatch)
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os

View file

@ -18,15 +18,11 @@ case ${DEVICE} in
PKG_VERSION="d34ff0716"
PKG_GIT_CLONE_BRANCH="v2017.09-rk3588"
;;
*ML)
RK356*)
PKG_URL="https://github.com/u-boot/u-boot.git"
PKG_VERSION="27089f1e4d11fd7e0619097b59258d0428cde2ac"
PKG_GIT_CLONE_BRANCH="master"
;;
RK356*)
PKG_URL="${PKG_SITE}/rk356x-uboot.git"
PKG_VERSION="88b2f26"
;;
RK3399)
PKG_URL="${PKG_SITE}/rk3399-uboot.git"
PKG_VERSION="bb226439ac676a75b87a555e8741ac3c0b3e11b1"

View file

@ -1,13 +0,0 @@
diff --git a/Makefile b/Makefile
index cdb3ff9..d439225 100644
--- a/Makefile
+++ b/Makefile
@@ -596,6 +596,8 @@ KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks)
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
KBUILD_CFLAGS += $(call cc-disable-warning, dangling-pointer)
KBUILD_CFLAGS += $(call cc-disable-warning, address)
+KBUILD_CFLAGS += $(call cc-disable-warning, enum-int-mismatch)
+KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)
KBUILD_CFLAGS += -g
# $(KBUILD_AFLAGS) sets -g, which causes gcc to pass a suitable -g<format>

View file

@ -1,219 +0,0 @@
diff --git a/arch/arm/dts/rk3568-evb.dts b/arch/arm/dts/rk3568-evb.dts
index 950bc3a..f893a9a 100644
--- a/arch/arm/dts/rk3568-evb.dts
+++ b/arch/arm/dts/rk3568-evb.dts
@@ -28,30 +28,77 @@
press-threshold-microvolt = <9>;
};
};
- leds: gpio-leds {
+ /*leds: gpio-leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 =<&leds_gpio>;
led@1 {
- gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;
label = "battery_full";
default-state="on";
retain-state-suspended;
};
led@2 {
- gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
label = "battery_charging";
retain-state-suspended;
};
led@3 {
- gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
label = "low_power";
default-state="off";
retain-state-suspended;
};
+ };*/
+};
+
+&i2c0 {
+ rk817: pmic@20 {
+ battery {
+ compatible = "rk817,battery";
+ ocv_table = <3400 3553 3621 3688 3735 3768 3801
+ 3826 3843 3857 3878 3904 3934 3972
+ 4006 4020 4030 4044 4059 4083 4138>;
+ design_capacity = <3527>;
+ design_qmax = <3880>;
+ bat_res = <91>;
+ sleep_enter_current = <150>;
+ sleep_exit_current = <180>;
+ sleep_filter_current = <100>;
+ power_off_thresd = <3350>;
+ zero_algorithm_vol = <3300>;
+ max_soc_offset = <60>;
+ monitor_sec = <5>;
+ sample_res = <10>;
+ virtual_power = <0>;
+ // dc_det_gpio = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;//uboot使用
+ charge_red_gpio = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;//充电指示灯 红
+ charge_green_gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;//充电指示灯 绿
+ charge_yellow_gpio = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;//充电指示灯 黄
+ };
+
+ charger {
+ compatible = "rk817,charger";
+ min_input_voltage = <4500>;
+ max_input_current = <2000>;
+ max_chrg_current = <2000>;
+ max_chrg_voltage = <4300>;
+ chrg_term_mode = <0>;
+ chrg_finish_cur = <300>;
+ virtual_power = <0>;
+ dc_det_adc = <0>;
+ // dc_det_gpio = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
+ charge_red_gpio = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;//充电指示灯 红
+ charge_green_gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;//充电指示灯 绿
+ charge_yellow_gpio = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;//充电指示灯 黄
+ pinctrl-names = "default";
+ pinctrl-0 = <&charge_led_gpio>;
+ extcon = <&usb2phy0>;
+ gate_function_disable = <1>;
+ };
};
};
@@ -131,12 +178,20 @@
};
&pinctrl {
- gpio-leds {
+ /*gpio-leds {
leds_gpio: leds-gpio {
rockchip,pins =
- <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,
- <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>,
- <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
+ <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,
+ <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>,
+ <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
};
- };
+ };*/
+ led {
+ charge_led_gpio:charge-led-gpio{
+ rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,
+ <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
+ <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+
+ };
};
diff --git a/drivers/power/fuel_gauge/fg_rk817.c b/drivers/power/fuel_gauge/fg_rk817.c
index b5abb72..f54188c 100644
--- a/drivers/power/fuel_gauge/fg_rk817.c
+++ b/drivers/power/fuel_gauge/fg_rk817.c
@@ -256,6 +256,10 @@ struct rk817_battery_device {
u32 bat_res_up;
u32 bat_res_down;
u32 variant;
+ struct gpio_desc dc_det_gpio;
+ struct gpio_desc charge_red_gpio;
+ struct gpio_desc charge_green_gpio;
+ struct gpio_desc charge_yellow_gpio;
};
static u32 interpolate(int value, u32 *table, int size)
@@ -948,15 +952,27 @@ static int rk817_bat_update_get_current(struct udevice *dev)
return VIRTUAL_POWER_CUR;
}
+static int get_dc_statue(struct rk817_battery_device *battery)
+{
+
+// printf("%s.... dc status = %d \n",__func__,dm_gpio_get_value(&battery->dc_det_gpio));
+ if (dm_gpio_get_value(&battery->dc_det_gpio))
+ return true;
+ else
+ return false;
+}
static int rk817_bat_dwc_otg_check_dpdm(struct rk817_battery_device *battery)
{
if (battery->variant == RK809_ID) {
+ // printf("%s.... rk809 \n",__func__);
if (rk817_bat_read(battery, PMIC_SYS_STS) & PLUG_IN_STS)
return AC_CHARGER;
else
return NO_CHARGER;
} else {
+ // printf("%s.... rk817 \n",__func__);
return rockchip_chg_get_type();
+ // return get_dc_statue(battery);
}
}
@@ -1186,6 +1202,23 @@ static void rk817_bat_smooth_charge(struct rk817_battery_device *battery)
else if (battery->dsoc < 0)
battery->dsoc = 0;
+ //黄灯
+ if (get_dc_statue(battery)){
+ dm_gpio_set_value(&battery->charge_yellow_gpio,1);
+ if (battery->dsoc == 100)
+ dm_gpio_set_value(&battery->charge_yellow_gpio,0);
+ }else
+ dm_gpio_set_value(&battery->charge_yellow_gpio,0);
+
+ //红绿
+ if (battery->dsoc >= 15){
+ dm_gpio_set_value(&battery->charge_green_gpio,1); //电量足
+ dm_gpio_set_value(&battery->charge_red_gpio,0);
+ }else{
+ dm_gpio_set_value(&battery->charge_green_gpio,0); //电量不足
+ dm_gpio_set_value(&battery->charge_red_gpio,1);
+ }
+
rk817_bat_save_dsoc(battery, battery->dsoc);
rk817_bat_save_cap(battery, battery->remain_cap / 1000);
out:
@@ -1319,6 +1352,39 @@ static int rk817_fg_ofdata_to_platdata(struct udevice *dev)
battery->res_div = (value == SAMPLE_RES_20mR) ?
SAMPLE_RES_DIV2 : SAMPLE_RES_DIV1;
+ value = gpio_request_by_name_nodev(dev_ofnode(dev), "dc_det_gpio",
+ 0, &battery->dc_det_gpio,GPIOD_IS_IN);
+ if (!value) {
+ printf("DC is valid\n");
+ } else {
+ printf("DC is invalid\n");
+ }
+
+ value = gpio_request_by_name_nodev(dev_ofnode(dev), "charge_red_gpio",
+ 0, &battery->charge_red_gpio,GPIOD_IS_OUT);
+ if (!value) {
+ printf("charge_red_gpio is valid\n");
+ } else {
+ printf("charge_red_gpio is invalid\n");
+ }
+
+ value = gpio_request_by_name_nodev(dev_ofnode(dev), "charge_green_gpio",
+ 0, &battery->charge_green_gpio,GPIOD_IS_OUT);
+ if (!value) {
+ printf("charge_green_gpio is valid\n");
+ } else {
+ printf("charge_green_gpio is invalid\n");
+ }
+
+
+ value = gpio_request_by_name_nodev(dev_ofnode(dev), "charge_yellow_gpio",
+ 0, &battery->charge_yellow_gpio,GPIOD_IS_OUT);
+ if (!value) {
+ printf("charge_yellow_gpio is valid\n");
+ } else {
+ printf("charge_yellow_gpio is invalid\n");
+ }
+
DBG("OCV Value:");
for (i = 0; i < battery->ocv_size; i++)
DBG("%d ", battery->ocv_table[i]);

View file

@ -1,13 +0,0 @@
diff --git a/Makefile b/Makefile
index cdb3ff9..d439225 100644
--- a/Makefile
+++ b/Makefile
@@ -596,6 +596,8 @@ KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks)
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
KBUILD_CFLAGS += $(call cc-disable-warning, dangling-pointer)
KBUILD_CFLAGS += $(call cc-disable-warning, address)
+KBUILD_CFLAGS += $(call cc-disable-warning, enum-int-mismatch)
+KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)
KBUILD_CFLAGS += -g
# $(KBUILD_AFLAGS) sets -g, which causes gcc to pass a suitable -g<format>