pmgr: support M4 Pro/Max / A18 Pro / M5#578
Open
yuyuyureka wants to merge 2 commits into
Open
Conversation
a81cb92 to
f1cb5cb
Compare
Contributor
|
Can confirm this successfully spins up on an M4 Pro:
|
svenpeter42
reviewed
May 14, 2026
| uintptr_t addr = pmgr_get_psreg(device->psreg_idx); | ||
| uintptr_t addr; | ||
| if (pmgr_use_group_and_offset) | ||
| addr = pmgr_get_psreg(device->group_and_offset >> 24); |
Member
There was a problem hiding this comment.
I'd use GENMASK and FIELD_GET/PREP to extract the group and the offset here or alternatively something like u32 group : 8; u32 offset : 24; in the struct definition
svenpeter42
reviewed
May 14, 2026
| "pd" / Int8ul, | ||
| "ps_cfg16" / Int8ul, | ||
| "unk2_1" / Int32ul, | ||
| "group_and_offset" / Int32ul, |
Member
There was a problem hiding this comment.
construct has a 24bit integer type so there's no need to combine those two into a 32bit integer here
svenpeter42
requested changes
May 14, 2026
Signed-off-by: Yureka <yureka@cyberchaos.dev>
Re-used PMGRPSRegs. In all 25.4.1 device trees, all but reg is zero Signed-off-by: Yureka <yureka@cyberchaos.dev>
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.
This fixes on m1n1 device-mode USB on the M5 Max MacBook Pro