Skip to content

Commit

Permalink
arm64: dts: lito: Define simple framebuffer using bootloader handoff
Browse files Browse the repository at this point in the history
The bootloader sets this framebuffer up and hands it off during boot, so
we can use it for early graphics.

Signed-off-by: Danny Lin <danny@kdrag0n.dev>
  • Loading branch information
kdrag0n committed Apr 19, 2021
1 parent de9ada7 commit 4a161a3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions arch/arm64/boot/dts/vendor/qcom/lito.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
swr2 = &swr2;
sdhc1 = &sdhc_1; /* SDC1 eMMC slot */
sdhc2 = &sdhc_2; /* SDC2 SD Card slot */
display0 = &framebuffer0;
};

cpus {
Expand Down Expand Up @@ -478,6 +479,9 @@
};

cont_splash_memory: cont_splash_region {
compatible = "removed-dma-pool";
no-map;
// Used for framebuffer0
reg = <0x0 0xA0000000 0x0 0x02300000>;
label = "cont_splash_region";
};
Expand All @@ -500,7 +504,24 @@
};

chosen {
#address-cells = <2>;
#size-cells = <2>;
ranges;

stdout-path = "display0";
bootargs = "rcu_nocbs=0-7";

framebuffer0: framebuffer@a0000000 {
compatible = "simple-framebuffer";
// Address and size values from cont_splash_region
reg = <0x0 0xa0000000 0x0 0x02300000>;
// Normal display resolution
width = <1080>;
height = <2340>;
// Replace 1080 with width
stride = <(1080 * 4)>;
format = "a8r8g8b8";
};
};

soc: soc { };
Expand Down

0 comments on commit 4a161a3

Please sign in to comment.