drm/sun4i: DEBE 硬件光标电量 overlay - #3
Open
inapp123 wants to merge 1 commit into
Open
Conversation
新增内核 patch 0020:用 suniv DEBE 的硬件光标(HWC)在屏幕右上角画
一个 64x64 1bpp 电池图标 + 电量百分比,独立于 DRM master 常驻显示。
HWC 是 alpha blender0 里优先级最高的独立块,DRM 从不碰它的 pattern/
palette SRAM,只动 MODCTL 的 LAY_EN 位,因此这里写下的内容不受任何
atomic commit 影响。仿现有 srgn_splash 直接从 sysfs 驱动:
/sys/kernel/battery_hwc/{enable,percent,color,show_percent}
寄存器布局按 F1C200s 手册:pattern 0x1400(512B)、palette 0x1600。
电量由 userspace 推入,驱动本身不读 GPADC。已单文件交叉编译通过。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AtavuKBY8vmGTEfjac43ZK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增内核 patch 0020:用 suniv DEBE 的硬件光标(HWC)在屏幕右上角画
一个 64x64 1bpp 电池图标 + 电量百分比,独立于 DRM master 常驻显示。
HWC 是 alpha blender0 里优先级最高的独立块,DRM 从不碰它的 pattern/ palette SRAM,只动 MODCTL 的 LAY_EN 位,因此这里写下的内容不受任何
atomic commit 影响。仿现有 srgn_splash 直接从 sysfs 驱动:
寄存器布局按 F1C200s 手册:pattern 0x1400(512B)、palette 0x1600。 电量由 userspace 推入,驱动本身不读 GPADC。已单文件交叉编译通过。
Claude-Session: https://claude.ai/code/session_01AtavuKBY8vmGTEfjac43ZK