summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorChristian Hemp <c.hemp@phytec.de>2013-08-27 19:09:17 +0200
committerJustin Waters <justin.waters@timesys.com>2013-11-07 12:19:37 -0500
commit5d4ace7119b2382b17f9eaff8fc89a22aafd6aee (patch)
treef4b23bda070afd5c6397f08a89b750b00f47d76c /arch
parent712fe6f031cdb75582867205218686310ca522e6 (diff)
phyFLEX-i.MX6: Add selection for prime output
Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx6/board-mx6q_phyflex.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_phyflex.c b/arch/arm/mach-mx6/board-mx6q_phyflex.c
index 2bae94d1cdce..83a32c739435 100644
--- a/arch/arm/mach-mx6/board-mx6q_phyflex.c
+++ b/arch/arm/mach-mx6/board-mx6q_phyflex.c
@@ -159,6 +159,9 @@ module_param(csi0, charp, S_IRUGO);
static char* csi1 = "phyCAM-P";
module_param(csi1, charp, S_IRUGO);
+static char* prim_hdmi = "no";
+core_param(prim_hdmi, prim_hdmi, charp , S_IRUGO);
+
void __init early_console_setup(unsigned long base, struct clk *clk);
static struct clk *sata_clk;
@@ -1228,8 +1231,15 @@ static void __init mx6_phyflex_init(void)
imx6q_add_ipuv3(0, &ipu_data[0]);
if(cpu_is_mx6q()) {
imx6q_add_ipuv3(1, &ipu_data[1]);
- for (i = 0; i < ARRAY_SIZE(phyflex_fb_data); i++)
- imx6q_add_ipuv3fb(i, &phyflex_fb_data[i]);
+ if(strcmp("no",prim_hdmi) == 0) {
+ for (i = 0; i < ARRAY_SIZE(phyflex_fb_data); i++)
+ imx6q_add_ipuv3fb(i, &phyflex_fb_data[i]);
+ } else {
+ for (i = ARRAY_SIZE(phyflex_fb_data)-1; i >= 0 ;i--) {
+ imx6q_add_ipuv3fb(ARRAY_SIZE(phyflex_fb_data) - 1- i,
+ &phyflex_fb_data[i]);
+ }
+ }
} else {
ldb_data.ipu_id = 0;
ldb_data.disp_id = 0;