From: Seung-Woo Kim Date: Wed, 5 Feb 2020 04:10:26 +0000 (+0900) Subject: tizen: bootmode: enable uart console with home key X-Git-Tag: accepted/tizen/unified/20200206.023706^0 X-Git-Url: http://review.tizen.org/git/?p=profile%2Fmobile%2Fplatform%2Fkernel%2Fu-boot-tm1.git;a=commitdiff_plain;h=7cd8aba939cedb8140b600abb9d0be5bb580a6a9 tizen: bootmode: enable uart console with home key Even though jig is not connected, enabling uart console can be helpful. Enable uart console with pressed home key. Note: At booting time, it needs to press home key 4 seconds. Change-Id: Ib1352391d10eac7b6339ff44c49aa186ccbb68ef Signed-off-by: Seung-Woo Kim --- diff --git a/property/normal_mode.c b/property/normal_mode.c index 90f7a2e..1d02412 100644 --- a/property/normal_mode.c +++ b/property/normal_mode.c @@ -273,7 +273,7 @@ int fdt_fixup_for_tizen(void *fdt) ptr += sprintf(ptr, " sec_debug.enable_user=0"); } - if (tizen_get_jig_state() == 2) { + if (tizen_get_jig_state() == 2 || tizen_board_key_scan() == 0x81) { s = getenv("console"); if (s && (*s == 'o')) ptr += sprintf(ptr, " console=ttyS1,115200n8 loglevel=7");