kernel_optimize_test/drivers/platform/chrome
Bill Richardson 71af4b52cc platform/chrome: Create sysfs attributes for the ChromeOS EC
This adds the first few sysfs attributes for the Chrome OS EC. These
controls are made available under /sys/devices/virtual/chromeos/cros_ec

    flashinfo   - display current flash info
    reboot      - tell the EC to reboot in various ways
    version     - information about the EC software and hardware

Future changes will build on this to add additional controls.

From a root shell, you should be able to do things like this:

    cd /sys/devices/virtual/chromeos/cros_ec
    cat flashinfo
    cat version
    echo rw > reboot
    cat version
    echo ro > reboot
    cat version
    echo rw > reboot
    cat version
    echo cold > reboot

That last command will reboot the AP too.

Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Olof Johansson <olofj@chromium.org>
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
2015-02-26 15:45:12 -08:00
..
chromeos_laptop.c platform: chrome: drop owner assignment from platform_drivers 2014-10-20 16:21:26 +02:00
chromeos_pstore.c platform/chrome: pstore: fix dmi table to match all chrome systems 2014-07-10 10:38:41 -07:00
cros_ec_dev.c platform/chrome: Create sysfs attributes for the ChromeOS EC 2015-02-26 15:45:12 -08:00
cros_ec_dev.h platform/chrome: Create sysfs attributes for the ChromeOS EC 2015-02-26 15:45:12 -08:00
cros_ec_lpc.c platform/chrome: Add cros_ec_lpc driver for x86 devices 2015-02-26 15:45:02 -08:00
cros_ec_sysfs.c platform/chrome: Create sysfs attributes for the ChromeOS EC 2015-02-26 15:45:12 -08:00
Kconfig platform/chrome: Add Chrome OS EC userspace device interface 2015-02-26 15:45:06 -08:00
Makefile platform/chrome: Create sysfs attributes for the ChromeOS EC 2015-02-26 15:45:12 -08:00