net/ice/base: add set/get GPIO helper functions
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 13 Apr 2021 05:06:35 +0000 (13:06 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 13 Apr 2021 14:25:26 +0000 (16:25 +0200)
commit0f61c2af88c8fe8243e6ed406c44bbf727a5fef0
treedcf3f1aaef6ec634c525b8fbfe3e56438b2f9b50
parent6f169ced1ed349f4f69f883f43925893df97df12
net/ice/base: add set/get GPIO helper functions

Add helper functions to set the GPIO pin state or get the value of a
GPIO signal that's the part of the topology based on AQ commands.
This change is needed to setup GPIO pins state for PTP, SyncE etc.

Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_adminq_cmd.h
drivers/net/ice/base/ice_common.c
drivers/net/ice/base/ice_common.h