1. 20 Jun, 2019 1 commit
  2. 18 Jun, 2019 5 commits
  3. 12 Jun, 2019 1 commit
  4. 10 Jun, 2019 30 commits
  5. 05 Jun, 2019 3 commits
    • YueHaibing's avatar
      platform/chrome: cros_ec: Make some symbols static · 81bc8c03
      YueHaibing authored
      Fix sparse warning:
      
      drivers/platform/chrome/cros_ec_debugfs.c:256:30: warning: symbol 'cros_ec_console_log_fops' was not declared. Should it be static?
      drivers/platform/chrome/cros_ec_debugfs.c:265:30: warning: symbol 'cros_ec_pdinfo_fops' was not declared. Should it be static?
      drivers/platform/chrome/cros_ec_lightbar.c:550:24: warning: symbol 'cros_ec_lightbar_attr_group' was not declared. Should it be static?
      drivers/platform/chrome/cros_ec_sysfs.c:338:24: warning: symbol 'cros_ec_attr_group' was not declared. Should it be static?
      drivers/platform/chrome/cros_ec_vbc.c:104:24: warning: symbol 'cros_ec_vbc_attr_group' was not declared. Should it be static?
      drivers/platform/chrome/cros_ec_lpc.c:408:25: warning: symbol 'cros_ec_lpc_pm_ops' was not declared. Should it be static?
      Reported-by: default avatarHulk Robot <hulkci@huawei.com>
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Reviewed-by: default avatarBenson Leung <bleung@chromium.org>
      Signed-off-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
      81bc8c03
    • Raul E Rangel's avatar
      platform/chrome: wilco_ec: Add version sysfs entries · 79e3f1d3
      Raul E Rangel authored
      Add the ability to extract version information from the EC.
      
      Example Output:
      $ cd /sys/bus/platform/devices/GOOG000C:00
      $ tail build_date build_revision version model_number
      ==> build_date <==
      04/25/19
      
      ==> build_revision <==
      d2592cae0
      
      ==> version <==
      00.00.14
      
      ==> model_number <==
      08B6
      Signed-off-by: default avatarRaul E Rangel <rrangel@chromium.org>
      Reviewed-by: default avatarNick Crews <ncrews@chromium.org>
      Signed-off-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
      79e3f1d3
    • Nick Crews's avatar
      platform/chrome: wilco_ec: Add telemetry char device interface · 1210d1e6
      Nick Crews authored
      The Wilco Embedded Controller is able to send telemetry data
      which is useful for enterprise applications. A daemon running on
      the OS sends a command to the EC via a write() to a char device,
      and can read the response with a read(). The write() request is
      verified by the driver to ensure that it is performing only one
      of the whitelisted commands, and that no extraneous data is
      being transmitted to the EC. The response is passed directly
      back to the reader with no modification.
      
      The character device will appear as /dev/wilco_telemN, where N
      is some small non-negative integer, starting with 0. Only one
      process may have the file descriptor open at a time. The calling
      userspace program needs to keep the device file descriptor open
      between the calls to write() and read() in order to preserve the
      response. Up to 32 bytes will be available for reading.
      
      For testing purposes, try requesting the EC's firmware build
      date, by sending the WILCO_EC_TELEM_GET_VERSION command with
      argument index=3. i.e. write [0x38, 0x00, 0x03]
      to the device node. An ASCII string of the build date is
      returned.
      Signed-off-by: default avatarNick Crews <ncrews@chromium.org>
      Signed-off-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
      1210d1e6