disp: msm: sde: reuse cont-splash path for LE VM resource allocation

Add necessary checks during the splash init to check
& execute the splash/ramdump buffer mapping/unmapping
only for the cont-splash use-case. This would help in
reusing the same path for LE VM setup during device assign,
which does not have any splash buffer.

Change-Id: I3ce168c530c7db4b14465efa3fd87889b5f99f5b
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
Veera Sundaram Sankaran
2020-03-11 16:16:25 -07:00
committad av Gerrit - the friendly Code Review server
förälder 68b75aac24
incheckning 88acaa31b8
2 ändrade filer med 21 tillägg och 8 borttagningar

Visa fil

@@ -636,15 +636,22 @@ struct sde_splash_display {
u8 pipe_cnt;
};
enum sde_handoff_type {
SDE_SPLASH_HANDOFF,
SDE_VM_HANDOFF,
};
/**
* struct sde_splash_data - Struct contains details of continuous splash
* for all the displays connected by probe time
* @type: Indicates the type of handoff
* @num_splash_regions: Indicates number of splash memory regions from dtsi
* @num_splash_displays: Indicates count of active displays in continuous splash
* @splash_mem: Array of all struct sde_splash_mem listed from dtsi
* @splash_display: Array of all struct sde_splash_display
*/
struct sde_splash_data {
enum sde_handoff_type type;
u32 num_splash_regions;
u32 num_splash_displays;
struct sde_splash_mem splash_mem[MAX_DSI_DISPLAYS];