summaryrefslogtreecommitdiff
path: root/src/mainboard/siemens
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2016-05-09 08:14:45 +0200
committerWerner Zeh <werner.zeh@siemens.com>2016-05-10 14:51:10 +0200
commit70ca32e0ba565c567a5046c1e26d7c42d723a553 (patch)
tree6833aa0c20f73a8e2588a3f29417a9e54f78fad1 /src/mainboard/siemens
parent53052fe5eefe8396b334e8bc8c1014fca4062a8f (diff)
downloadcoreboot-70ca32e0ba565c567a5046c1e26d7c42d723a553.tar.xz
siemens/mc_tcu3: Don't try to init unsupported panel type
The LCD panel type is read using 4 GPIOs. Of these 16 possible combinations only 5 are supported right now. If the GPIO setting encodes an unsupported panel type, there will be no matching hwinfo.hex in cbfs. Therefore it makes no sense to try to initialize the DisplayPort-2-LVDS converter. Leave the function instead in this case. Change-Id: If8c67a3f5be762758d516c4939dd1de4ff1c8ba5 Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/14743 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Diffstat (limited to 'src/mainboard/siemens')
-rw-r--r--src/mainboard/siemens/mc_tcu3/lcd_panel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mainboard/siemens/mc_tcu3/lcd_panel.c b/src/mainboard/siemens/mc_tcu3/lcd_panel.c
index 1d1f3f96cc..f48bd56386 100644
--- a/src/mainboard/siemens/mc_tcu3/lcd_panel.c
+++ b/src/mainboard/siemens/mc_tcu3/lcd_panel.c
@@ -67,6 +67,7 @@ int setup_lcd_panel(void)
break;
default:
printk(BIOS_ERR, "LCD: No supported panel found.\n");
+ return 1;
break;
}