target: add support for specifying display panel during init
Modify the display init API to add the ability to specify a
particular panel to be initialized in lieu of using the default
panel for the target.
Change-Id: I105806a9d66fa9f45d5899a56f9ae6b28b097d73
diff --git a/target/apq8084/target_display.c b/target/apq8084/target_display.c
index ec1b523..2131053 100755
--- a/target/apq8084/target_display.c
+++ b/target/apq8084/target_display.c
@@ -241,7 +241,7 @@
return NO_ERROR;
}
-void target_display_init(void)
+void target_display_init(const char *panel_name)
{
uint32_t ret = 0;
ret = gcdb_display_init(MDP_REV_50, MIPI_FB_ADDR);
diff --git a/target/init.c b/target/init.c
index 939a9bb..72b2b40 100644
--- a/target/init.c
+++ b/target/init.c
@@ -146,7 +146,7 @@
return false;
}
-__WEAK void target_display_init(void)
+__WEAK void target_display_init(const char *panel_name)
{
}
diff --git a/target/msm7627a/target_display.c b/target/msm7627a/target_display.c
index 2fcb04c..94270b5 100755
--- a/target/msm7627a/target_display.c
+++ b/target/msm7627a/target_display.c
@@ -69,7 +69,7 @@
}
return ret;
}
-void target_display_init(void)
+void target_display_init(const char *panel_name)
{
unsigned mach_type;
mach_type = board_machtype();
diff --git a/target/msm8226/target_display.c b/target/msm8226/target_display.c
index 772f8d1..60ad23b 100755
--- a/target/msm8226/target_display.c
+++ b/target/msm8226/target_display.c
@@ -341,7 +341,7 @@
return ret;
}
-void target_display_init(void)
+void target_display_init(const char *panel_name)
{
uint32_t panel_loop = 0;
uint32_t ret = 0;
diff --git a/target/msm8610/target_display.c b/target/msm8610/target_display.c
index 5e121ff..0f9039b 100755
--- a/target/msm8610/target_display.c
+++ b/target/msm8610/target_display.c
@@ -162,7 +162,7 @@
return 0;
}
-void target_display_init(void)
+void target_display_init(const char *panel_name)
{
uint32_t panel_loop = 0;
uint32_t ret = 0;
diff --git a/target/msm8960/target_display.c b/target/msm8960/target_display.c
index 7ec91d2..2eec1ea 100755
--- a/target/msm8960/target_display.c
+++ b/target/msm8960/target_display.c
@@ -255,7 +255,7 @@
return 0;
}
-void target_display_init(void)
+void target_display_init(const char *panel_name)
{
int target_id = board_target_id();
diff --git a/target/msm8974/target_display.c b/target/msm8974/target_display.c
index e939f34..8a21e98 100755
--- a/target/msm8974/target_display.c
+++ b/target/msm8974/target_display.c
@@ -330,7 +330,7 @@
return 0;
}
-void target_display_init(void)
+void target_display_init(const char *panel_name)
{
uint32_t hw_id = board_hardware_id();
uint32_t panel_loop = 0;