summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorWei-Ning Huang <wnhuang@google.com>2017-04-12 18:56:19 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-18 18:05:23 +0200
commit049a59db34eb4c41a0231f983f180053db8f80d4 (patch)
tree7ea69c30732d0825bb6a744949af6a8fe8a26551 /samples
parentfirmware: Google VPD: import lib_vpd source files (diff)
downloadlinux-049a59db34eb4c41a0231f983f180053db8f80d4.tar.xz
linux-049a59db34eb4c41a0231f983f180053db8f80d4.zip
firmware: Google VPD sysfs driver
This patch introduces the Google Vital Product Data driver. This driver reads Vital Product Data from coreboot tables and then creates the corresponding sysfs entries under /sys/firmware/vpd to provide easy access for userspace programs (does not require flashrom). The sysfs is structured as follow: /sys/firmware/vpd |-- ro | |-- key1 | `-- key2 |-- ro_raw |-- rw | `-- key1 `-- rw_raw Where ro_raw and rw_raw contain the raw VPD partition. The files under ro and rw correspond to the key name in the VPD and the the file content is the value for the key. Signed-off-by: Wei-Ning Huang <wnhuang@google.com> Signed-off-by: Thierry Escande <thierry.escande@collabora.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions