• 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    ec_capability = list()
28    spi_voltage = 'pp1800'
29
30    # Has eventlog support including proper timestamps. (Only for old boards!
31    # Never disable this "temporarily, until we get around to implementing it"!)
32    has_eventlog = True
33
34    # Delay between power-on and firmware screen
35    firmware_screen = 10
36
37    # Delay between reboot and first ping response from the DUT
38    # When this times out, it indicates we're stuck at a firmware screen.
39    # Hence, bypass action has to be taken if we want to proceed.
40    delay_reboot_to_ping = 30
41
42    # Delay between keypresses in firmware screen
43    confirm_screen = 3
44
45    # The developer screen timeouts fit our spec
46    dev_screen_timeout = 30
47
48    # Delay between power-on and plug USB
49    usb_plug = 10
50
51    # Delay for waiting client to shutdown
52    shutdown = 30
53
54    # Timeout of confirming DUT shutdown
55    shutdown_timeout = 60
56
57    # Delay between EC boot and ChromeEC console functional
58    ec_boot_to_console = 1.2
59
60    # Delay between EC boot and pressing power button
61    ec_boot_to_pwr_button = 0.5
62
63    # EC, if present, supports 'powerbtn' console command
64    ec_has_powerbtn_cmd = True
65
66    # Delay of EC software sync hash calculating time
67    software_sync = 6
68
69    # Delay of EC software sync updating EC
70    software_sync_update = 2
71
72    # Duration of holding power button to power off DUT normally
73    hold_pwr_button_poweroff = 5
74
75    # Duration of holding power button to power on DUT normally
76    # (also known as SHORT_DELAY in hdctools)
77    hold_pwr_button_poweron = 0.2
78
79    # Delay after /sbin/shutdown before pressing power button
80    powerup_ready = 10
81
82    # Time in second to wait after changing servo state for programming
83    servo_prog_state_delay = 0
84
85    # Timeout of confirming DUT doesn't boot on USB image in Recovery screen
86    usb_image_boot_timeout = 180
87
88    # Check SMMSTORE exists in FMap for x86 boards
89    smm_store = True
90
91    # True if the lid can wake the system from a powered off state
92    lid_wake_from_power_off = True
93
94    # True if AP can access the EC flash while Chrome OS is running
95    ap_access_ec_flash = True
96