mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 12:19:08 +07:00
ae0c2d7255
Many nvmem providers are not very keen on having default sysfs nvmem entry, as most of the usecases for them are inside kernel itself. And in some cases read/writes to some areas in nvmem are restricted and trapped at secure monitor level, so accessing them from userspace would result in board reboots. This patch adds new NVMEM_SYSFS Kconfig to make binary sysfs entry an optional one. This provision will give more flexibility to users. This patch also moves existing sysfs code to a new file so that its not compiled in when its not really required. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Gaurav Kohli <gkohli@codeaurora.org> Tested-by: Gaurav Kohli <gkohli@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
22 lines
596 B
Plaintext
22 lines
596 B
Plaintext
What: /sys/bus/nvmem/devices/.../nvmem
|
|
Date: July 2015
|
|
KernelVersion: 4.2
|
|
Contact: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
|
|
Description:
|
|
This file allows user to read/write the raw NVMEM contents.
|
|
Permissions for write to this file depends on the nvmem
|
|
provider configuration.
|
|
Note: This file is only present if CONFIG_NVMEM_SYSFS
|
|
is enabled
|
|
|
|
ex:
|
|
hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
|
|
|
|
0000000 0000 0000 0000 0000 0000 0000 0000 0000
|
|
*
|
|
00000a0 db10 2240 0000 e000 0c00 0c00 0000 0c00
|
|
0000000 0000 0000 0000 0000 0000 0000 0000 0000
|
|
...
|
|
*
|
|
0001000
|