1a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 2417387625d9c6292f542a0925122a00fbf92b1abTom Wai-Hong Tam# Use of this source code is governed by a BSD-style license that can be 3417387625d9c6292f542a0925122a00fbf92b1abTom Wai-Hong Tam# found in the LICENSE file. 4417387625d9c6292f542a0925122a00fbf92b1abTom Wai-Hong Tam 5a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally"""Default configuration values for FAFT tests go into this file. 6a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 7a39f97038dfa865c7bfcea2625d516d098207066Yusuf MohsinallyFor the ability to override these values on a platform specific basis, please 8a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinallyrefer to the config object implementation. 9a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally""" 10a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 11a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 12a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinallyclass Values(object): 13a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally """We have a class here to allow for inheritence. This is less important 14a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally defaults, but very helpful for platform overrides. 15a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally """ 16a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 17ed4d67be4d0faa1a267d33e86905df1153d78333Tom Wai-Hong Tam mode_switcher_type = 'keyboard_dev_switcher' 18ed4d67be4d0faa1a267d33e86905df1153d78333Tom Wai-Hong Tam fw_bypasser_type = 'ctrl_d_bypasser' 19ed4d67be4d0faa1a267d33e86905df1153d78333Tom Wai-Hong Tam 20a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally chrome_ec = False 21fe06ed8afdd7323a1f3ee60c746b5c0335c659c0Scott chrome_usbpd = False 22a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally dark_resume_capable = False 23a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally has_lid = True 24a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally has_keyboard = True 25cea96baa3a9ca9755088f1585dba94b266125083Danny Chan has_powerbutton = True 260695ad28ef916bb21a81d18ca0c278bfd7705f71Mohammed Habibulla rec_button_dev_switch = False 27a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally long_rec_combo = False 286f59efa78ba6765b5ebf1d847865ae5a18bbe019Vic (Chun-Ju) Yang use_u_boot = False 29a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally ec_capability = list() 30a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally gbb_version = 1.1 31a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally wp_voltage = 'pp1800' 3215c2dcbdcc125d5be186ff18bd3a593c9afc2af3Vic Yang spi_voltage = 'pp1800' 33a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally key_checker = [[0x29, 'press'], 34a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally [0x32, 'press'], 35a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally [0x32, 'release'], 36a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally [0x29, 'release'], 37a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally [0x28, 'press'], 38a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally [0x28, 'release']] 39a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally key_checker_strict = [[0x29, 'press'], 40a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally [0x29, 'release'], 41a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally [0x32, 'press'], 42a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally [0x32, 'release'], 43a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally [0x28, 'press'], 44a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally [0x28, 'release'], 45a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally [0x61, 'press'], 46a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally [0x61, 'release']] 47417387625d9c6292f542a0925122a00fbf92b1abTom Wai-Hong Tam 489ece2c6fb01d4c29d23a7238def15bdf656c885cJulius Werner # Has eventlog support including proper timestamps. (Only for old boards! 499ece2c6fb01d4c29d23a7238def15bdf656c885cJulius Werner # Never disable this "temporarily, until we get around to implementing it"!) 509ece2c6fb01d4c29d23a7238def15bdf656c885cJulius Werner has_eventlog = True 519ece2c6fb01d4c29d23a7238def15bdf656c885cJulius Werner 52f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang # Delay between power-on and firmware screen 53f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang firmware_screen = 10 54a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 5557108980ee6107c9257d567a8d85388af33561a2Daisuke Nojiri # Delay between reboot and first ping response from the DUT 5657108980ee6107c9257d567a8d85388af33561a2Daisuke Nojiri # When this times out, it indicates we're stuck at a firmware screen. 5757108980ee6107c9257d567a8d85388af33561a2Daisuke Nojiri # Hence, bypass action has to be taken if we want to proceed. 58b745ebf71fe976442c0dd9191a63a47778b6952dDaisuke Nojiri delay_reboot_to_ping = 30 5957108980ee6107c9257d567a8d85388af33561a2Daisuke Nojiri 600dc84b8cf118e16ed0b3fb44db3fb14ed2252b17Vic Yang # Delay between keypresses in firmware screen 610dc84b8cf118e16ed0b3fb44db3fb14ed2252b17Vic Yang confirm_screen = 3 62a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 633dea40e52bc58e7b19b890e2e17b3a4816227c1fTom Wai-Hong Tam # Only True on Alex/ZGB which needs a transition state to enter dev mode. 643dea40e52bc58e7b19b890e2e17b3a4816227c1fTom Wai-Hong Tam need_dev_transition = False 653dea40e52bc58e7b19b890e2e17b3a4816227c1fTom Wai-Hong Tam 66f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang # Delay between passing firmware screen and text mode warning screen 67f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang legacy_text_screen = 20 68a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 69f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang # The developer screen timeouts fit our spec 70f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang dev_screen_timeout = 30 71a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 72f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang # Delay for waiting beep done 73f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang beep = 1 74a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 750430288e1ea7c2976db8612c595223dc2a220563Tom Wai-Hong Tam # Delay between power-on and plug USB 760430288e1ea7c2976db8612c595223dc2a220563Tom Wai-Hong Tam usb_plug = 10 77a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 78f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang # Delay for waiting client to shutdown 79f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang shutdown = 30 80a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 818da40de326d282484cea03a17895550beb2c757dTom Wai-Hong Tam # Timeout of confirming DUT shutdown 828da40de326d282484cea03a17895550beb2c757dTom Wai-Hong Tam shutdown_timeout = 60 83a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 84f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang # Delay between EC boot and ChromeEC console functional 854c9684a1f1a3891ffe3f9408f26b6ab85e57d2daTom Wai-Hong Tam ec_boot_to_console = 1.2 86a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 87f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang # Delay between EC boot and pressing power button 88f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang ec_boot_to_pwr_button = 0.5 89a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 90f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang # Delay of EC software sync hash calculating time 91f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang software_sync = 6 92a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 9377201c1e10b00a12d008178c3dbd93013e338bcfVic Yang # Delay of EC software sync updating EC 9477201c1e10b00a12d008178c3dbd93013e338bcfVic Yang software_sync_update = 2 95a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 9625d703a846f3a717dd8a65997aee0ddfd6afe440David Hendricks # Duration of holding power button to power off DUT normally 9725d703a846f3a717dd8a65997aee0ddfd6afe440David Hendricks hold_pwr_button_poweroff = 2 9825d703a846f3a717dd8a65997aee0ddfd6afe440David Hendricks 9925d703a846f3a717dd8a65997aee0ddfd6afe440David Hendricks # Duration of holding power button to power on DUT normally 10025d703a846f3a717dd8a65997aee0ddfd6afe440David Hendricks # (also known as SHORT_DELAY in hdctools) 10125d703a846f3a717dd8a65997aee0ddfd6afe440David Hendricks hold_pwr_button_poweron = 0.2 102a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 103f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang # devserver startup time 104f1fdf71cc3a0545bf69e3c2a1246e204b6ef48eaVic Yang devserver = 10 105a39f97038dfa865c7bfcea2625d516d098207066Yusuf Mohsinally 106ba352ad9377033b9452ee41380d23f31ba30c480Gediminas Ramanauskas # Delay for user to power cycle the device 107ba352ad9377033b9452ee41380d23f31ba30c480Gediminas Ramanauskas user_power_cycle = 20 1089687e0b64e3853a63e627753c3871f4c0d08878dDanny Chan 1099687e0b64e3853a63e627753c3871f4c0d08878dDanny Chan # Delay after /sbin/shutdown before pressing power button 110d0cbb6651494fc15f407d7ac1e5d089c38e207b8Danny Chan powerup_ready = 10 111a8d4a106f84f6a65750b7b20d55200ab9a57041fTom Wai-Hong Tam 112a8d4a106f84f6a65750b7b20d55200ab9a57041fTom Wai-Hong Tam # Time in second to wait after changing servo state for programming 113a8d4a106f84f6a65750b7b20d55200ab9a57041fTom Wai-Hong Tam servo_prog_state_delay = 0 114