DEFAULTS.py revision a8d4a106f84f6a65750b7b20d55200ab9a57041f
1# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5"""Default configuration values for FAFT tests go into this file. 6 7For the ability to override these values on a platform specific basis, please 8refer to the config object implementation. 9""" 10 11 12class Values(object): 13 """We have a class here to allow for inheritence. This is less important 14 defaults, but very helpful for platform overrides. 15 """ 16 17 mode_switcher_type = 'keyboard_dev_switcher' 18 fw_bypasser_type = 'ctrl_d_bypasser' 19 20 chrome_ec = False 21 dark_resume_capable = False 22 has_lid = True 23 has_keyboard = True 24 rec_button_dev_switch = False 25 long_rec_combo = False 26 use_u_boot = False 27 ec_capability = list() 28 gbb_version = 1.1 29 wp_voltage = 'pp1800' 30 spi_voltage = 'pp1800' 31 key_checker = [[0x29, 'press'], 32 [0x32, 'press'], 33 [0x32, 'release'], 34 [0x29, 'release'], 35 [0x28, 'press'], 36 [0x28, 'release']] 37 key_checker_strict = [[0x29, 'press'], 38 [0x29, 'release'], 39 [0x32, 'press'], 40 [0x32, 'release'], 41 [0x28, 'press'], 42 [0x28, 'release'], 43 [0x61, 'press'], 44 [0x61, 'release']] 45 46 # Has eventlog support including proper timestamps. (Only for old boards! 47 # Never disable this "temporarily, until we get around to implementing it"!) 48 has_eventlog = True 49 50 # Delay between power-on and firmware screen 51 firmware_screen = 10 52 53 # Delay between keypresses in firmware screen 54 confirm_screen = 3 55 56 # Only True on Alex/ZGB which needs a transition state to enter dev mode. 57 need_dev_transition = False 58 59 # Delay between passing firmware screen and text mode warning screen 60 legacy_text_screen = 20 61 62 # The developer screen timeouts fit our spec 63 dev_screen_timeout = 30 64 65 # Delay for waiting beep done 66 beep = 1 67 68 # Delay between power-on and plug USB 69 usb_plug = 10 70 71 # Delay for waiting client to shutdown 72 shutdown = 30 73 74 # Timeout of confirming DUT shutdown 75 shutdown_timeout = 60 76 77 # Delay between EC boot and ChromeEC console functional 78 ec_boot_to_console = 1.2 79 80 # Delay between EC boot and pressing power button 81 ec_boot_to_pwr_button = 0.5 82 83 # Delay of EC software sync hash calculating time 84 software_sync = 6 85 86 # Delay of EC software sync updating EC 87 software_sync_update = 2 88 89 # Duration of holding power button to power off DUT normally 90 hold_pwr_button_poweroff = 2 91 92 # Duration of holding power button to power on DUT normally 93 # (also known as SHORT_DELAY in hdctools) 94 hold_pwr_button_poweron = 0.2 95 96 # devserver startup time 97 devserver = 10 98 99 # Delay for user to power cycle the device 100 user_power_cycle = 20 101 102 # Delay after /sbin/shutdown before pressing power button 103 powerup_ready = 10 104 105 # Time in second to wait after changing servo state for programming 106 servo_prog_state_delay = 0 107