copper: display: Add support to enable display.
Enabling splash screen support for copper.
Change-Id: Ic75527eef7c2aea8a2d699fcbb9ef3c07c98fdd3
diff --git a/target/copper/init.c b/target/copper/init.c
index 2a2d098..71ccc96 100644
--- a/target/copper/init.c
+++ b/target/copper/init.c
@@ -152,6 +152,11 @@
if (target_use_signed_kernel())
target_crypto_init_params();
+ /* Display splash screen if enabled */
+#if DISPLAY_SPLASH_SCREEN
+ display_init();
+ dprintf(SPEW, "Diplay initialized\n");
+#endif
/* Trying Slot 1*/
slot = 1;
@@ -243,3 +248,15 @@
dprintf(CRITICAL, "Rebooting failed\n");
}
+
+/* Returns 1 if target supports continuous splash screen. */
+int target_cont_splash_screen()
+{
+ switch(board_platform_id())
+ {
+ case HW_PLATFORM_SURF:
+ case HW_PLATFORM_FFA:
+ default:
+ return 0;
+ }
+}