• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    chrome_usbpd = False
22    dark_resume_capable = False
23    has_lid = True
24    has_keyboard = True
25    has_powerbutton = True
26    rec_button_dev_switch = False
27    long_rec_combo = False
28    use_u_boot = False
29    ec_capability = list()
30    gbb_version = 1.1
31    wp_voltage = 'pp1800'
32    spi_voltage = 'pp1800'
33    key_checker = [[0x29, 'press'],
34                   [0x32, 'press'],
35                   [0x32, 'release'],
36                   [0x29, 'release'],
37                   [0x28, 'press'],
38                   [0x28, 'release']]
39    key_checker_strict = [[0x29, 'press'],
40                          [0x29, 'release'],
41                          [0x32, 'press'],
42                          [0x32, 'release'],
43                          [0x28, 'press'],
44                          [0x28, 'release'],
45                          [0x61, 'press'],
46                          [0x61, 'release']]
47
48    # Has eventlog support including proper timestamps. (Only for old boards!
49    # Never disable this "temporarily, until we get around to implementing it"!)
50    has_eventlog = True
51
52    # Delay between power-on and firmware screen
53    firmware_screen = 10
54
55    # Delay between reboot and first ping response from the DUT
56    # When this times out, it indicates we're stuck at a firmware screen.
57    # Hence, bypass action has to be taken if we want to proceed.
58    delay_reboot_to_ping = 30
59
60    # Delay between keypresses in firmware screen
61    confirm_screen = 3
62
63    # Only True on Alex/ZGB which needs a transition state to enter dev mode.
64    need_dev_transition = False
65
66    # Delay between passing firmware screen and text mode warning screen
67    legacy_text_screen = 20
68
69    # The developer screen timeouts fit our spec
70    dev_screen_timeout = 30
71
72    # Delay for waiting beep done
73    beep = 1
74
75    # Delay between power-on and plug USB
76    usb_plug = 10
77
78    # Delay for waiting client to shutdown
79    shutdown = 30
80
81    # Timeout of confirming DUT shutdown
82    shutdown_timeout = 60
83
84    # Delay between EC boot and ChromeEC console functional
85    ec_boot_to_console = 1.2
86
87    # Delay between EC boot and pressing power button
88    ec_boot_to_pwr_button = 0.5
89
90    # EC, if present, supports 'powerbtn' console command
91    ec_has_powerbtn_cmd = True
92
93    # Delay of EC software sync hash calculating time
94    software_sync = 6
95
96    # Delay of EC software sync updating EC
97    software_sync_update = 2
98
99    # Duration of holding power button to power off DUT normally
100    hold_pwr_button_poweroff = 2
101
102    # Duration of holding power button to power on DUT normally
103    # (also known as SHORT_DELAY in hdctools)
104    hold_pwr_button_poweron = 0.2
105
106    # devserver startup time
107    devserver = 10
108
109    # Delay for user to power cycle the device
110    user_power_cycle = 20
111
112    # Delay after /sbin/shutdown before pressing power button
113    powerup_ready = 10
114
115    # Time in second to wait after changing servo state for programming
116    servo_prog_state_delay = 0
117