thermal/drivers/int340x: processor_thermal: Export additional attributes
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 17 May 2021 06:14:41 +0000 (23:14 -0700)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 11 Jun 2021 09:55:47 +0000 (11:55 +0200)
commit5d6fbc96bd36cfec7bbc0578ad3986affdeb70de
treed26cbfc109b13f4f9121ccb0eab0e2e224994e07
parentfb5a6ec80367bcccb659a421850d757a5a81767a
thermal/drivers/int340x: processor_thermal: Export additional attributes

Export additional attributes:

ddr_data_rate (RO) : Show current DDR (Double Data Rate) data rate.
rfi_restriction (RW) : Show or set current state for RFI (Radio
Frequency Interference) protection.

These attributes use mailbox commands to get/set information. Here
command codes are:
0x0007: Read RFI restriction
0x0107: Read DDR data rate
0x0008: Write RFI restriction

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210517061441.1921901-3-srinivas.pandruvada@linux.intel.com
drivers/thermal/intel/int340x_thermal/processor_thermal_rfim.c