tizen: bootmode: enable uart console with home key 10/223910/1 accepted/tizen/unified/20200206.023706 submit/tizen/20200205.070437
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 5 Feb 2020 04:10:26 +0000 (13:10 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 5 Feb 2020 04:11:56 +0000 (13:11 +0900)
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 <sw0312.kim@samsung.com>
property/normal_mode.c

index 90f7a2ec36de7b208ff92b2efec858437ecd9d5b..1d024124824af877f11d9e3df7a1984b4eeb783d 100644 (file)
@@ -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");