forked from msm8916-mainline/lk2nd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lk2nd: Introduce mainline panel selection
Some devices have multiple possible panels. In that case, we need to load different panel drivers. On downstream this is implemented directly in the kernel, but this is difficult to implement cleanly in mainline. Instead, it's easier to do this as part of lk2nd. The mainline device tree only contains a generic compatible (e.g. "motorola,harpia-panel") with all required properties for it (e.g. GPIOs, regulators, ...). We assume that the panels are similar enough that they all need exactly the same properties. The lk2nd device tree then contains a list of possible panels with their mainline compatibles (e.g. "motorola,harpia-panel-tianma"). We can identify the panel using the "mdss_mdp.panel" parameter passed by the primary bootloader. When mainline is booted, we search for the "generic" compatible, and replace it with the real one. The kernel will then probe the correct panel. Yay!
- Loading branch information
1 parent
0e502bc
commit 8c15100
Showing
4 changed files
with
95 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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