Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lk2nd: display: panel: Introduce custom oem_panel implementation #363

Merged

Conversation

wonderfulShrineMaidenOfParadise
Copy link
Contributor

No description provided.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some warnings.

@@ -28,7 +28,9 @@ static int lk2nd_simplefb_dt_update(void *dtb, const char *cmdline,
int ret, resmem_offset, chosen_offset, offset;
uint32_t mem_ph, fb_size;
char tmp[32], args[16];
#if WITH_LK2ND_DISPLAY_CONT_SPLASH
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commit subject -> "...: Only support arguments if const-splash is used" maybe

Comment on lines 9 to 14
else ifneq ($(LK2ND_DISPLAY),)
include $(LOCAL_DIR)/panel/rules.mk
else
$(error Display '$(LK2ND_DISPLAY)' is not supported yet)
endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
else ifneq ($(LK2ND_DISPLAY),)
include $(LOCAL_DIR)/panel/rules.mk
else
$(error Display '$(LK2ND_DISPLAY)' is not supported yet)
endif
else ifneq ($(LK2ND_DISPLAY),)
include $(LOCAL_DIR)/panel/rules.mk
else
$(error Please specify the display with LK2ND_DISPLAY option)
endif

since it always be empty value for the last else now.

panel->paneltiminginfo = &hx8394d_720p_video_timing_info;
panel->panelresetseq = &hx8394d_720p_video_reset_seq;
panel->backlightinfo = &hx8394d_720p_video_backlight;
pinfo->mipi.panel_on_cmds = hx8394d_720p_video_on_command;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pinfo->mipi.panel_on_cmds = hx8394d_720p_video_on_command;
pinfo->mipi.panel_on_cmds = hx8394d_720p_video_on_command;
pinfo->mipi.panel_off_cmds = hx8394d_720p_video_off_command;

Can you check if this doesn't break the display? Not sure why lmdpdg doesn't generate this...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stephan-gh and others added 2 commits June 19, 2024 14:06
The oem_panel implementation from Qualcomm is terrible because it
always includes *all* panel implementations in the binary and requires
writing lots of code to add support for a new panel. To make this
easier for lk1st, let's add a custom oem_panel implementation.

The panel implementation is automatically selected using LK1ST_PANEL=
on the make command line, which should be the panel ID in lower case,
e.g. LK1ST_PANEL=adv7533_1080p_video.
```
lk2nd/display/panel/oem_panel.c:45:5: warning: no previous prototype for 'oem_panel_select' [-Wmissing-prototypes]
   45 | int oem_panel_select(const char *panel_name, struct panel_struct *panel,
      |     ^~~~~~~~~~~~~~~~
```
@wonderfulShrineMaidenOfParadise wonderfulShrineMaidenOfParadise changed the title lk2nd: panel: Introduce custom oem_panel implementation lk2nd: display: panel: Introduce custom oem_panel implementation Jun 19, 2024
@wonderfulShrineMaidenOfParadise wonderfulShrineMaidenOfParadise marked this pull request as ready for review June 19, 2024 14:41
@TravMurav TravMurav merged commit f8e4cc1 into msm8916-mainline:main Jun 24, 2024
42 checks passed
@TravMurav
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants