HID: amd_sfh: Extend ALS support for newer AMD platform
authorBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Fri, 18 Jun 2021 08:18:37 +0000 (13:48 +0530)
committerJiri Kosina <jkosina@suse.cz>
Thu, 24 Jun 2021 12:28:03 +0000 (14:28 +0200)
commit0aad9c95eb9a2b086322e28ae2e58ad25598604e
tree40b08998c694e86067bbade93a1f0c80990fe8e2
parentf264481ad614dfd9aae59eeefa5fc664cdf173ae
HID: amd_sfh: Extend ALS support for newer AMD platform

Extend ALS support for AMD next generation SoC's like Renoir, Cezanne.
AMD next generation platforms use C2P message register to read ALS
sensor data instead of DRAM address.

Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Reviewed-by: Nehal Shah <nehal-bakulchandra.shah@amd.com>
Reviewed-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/amd-sfh-hid/amd_sfh_client.c
drivers/hid/amd-sfh-hid/amd_sfh_hid.h
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
drivers/hid/amd-sfh-hid/amd_sfh_pcie.h
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.h