Commit 90fbd30
committed
drm/panel: samsung-s6e88a0-ams427ap24: Add flip option
The way of implementing a flip option follows the existing
panel-samsung-s6e8aa0.c [1][2][3].
The value to flip the screen is taken from a downstream kernel panel
file of a simular but older device. The downstream code is rather
confusing. The mipi clock [4] for the panel is 461 MHz and a hardware
read-out of the 0xcb values corresponds to revision R01 [5], although
in non-flipped state. Further up there is a hint [6] basically saying
for revision R01 to change the first word of the 0xcb command from 0x06
to 0x0e, which is actually setting BIT(3) of that word. This causes a
horizontal flip.
- [1] https://github.com/torvalds/linux/blob/v6.11/drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c#L103
- [2] https://github.com/torvalds/linux/blob/v6.11/drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c#L207-L211
- [3] https://github.com/torvalds/linux/blob/v6.11/drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c#L954-L974
- [4] https://github.com/LineageOS/android_kernel_samsung_msm8930-common/blob/lineage-15.1/drivers/video/msm/mipi_samsung_oled_video_qhd_pt-8930.c#L2027-L2028
- [5] https://github.com/LineageOS/android_kernel_samsung_msm8930-common/blob/lineage-15.1/drivers/video/msm/mipi_samsung_oled_video_qhd_pt-8930.c#L137-L151
- [6] https://github.com/LineageOS/android_kernel_samsung_msm8930-common/blob/lineage-15.1/drivers/video/msm/mipi_samsung_oled_video_qhd_pt-8930.c#L66-L74
Signed-off-by: Jakob Hauser <[email protected]>1 parent 51caab0 commit 90fbd30
File tree
1 file changed
+16
-0
lines changed- drivers/gpu/drm/panel/msm8916-generated
1 file changed
+16
-0
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
526 | 527 | | |
527 | 528 | | |
528 | 529 | | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
529 | 534 | | |
530 | 535 | | |
531 | 536 | | |
| |||
682 | 687 | | |
683 | 688 | | |
684 | 689 | | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
685 | 699 | | |
686 | 700 | | |
687 | 701 | | |
| |||
716 | 730 | | |
717 | 731 | | |
718 | 732 | | |
| 733 | + | |
| 734 | + | |
719 | 735 | | |
720 | 736 | | |
721 | 737 | | |
| |||
0 commit comments