ice: add TTY for GNSS module for E810T device
authorKarol Kolacinski <karol.kolacinski@intel.com>
Tue, 1 Mar 2022 18:38:03 +0000 (10:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2022 14:11:00 +0000 (14:11 +0000)
commit43113ff73453c231af2c8e700cb4ff8bca97cff6
tree37ac50a2dc8480983c793f506e343f8903ddad8b
parentef132dc40a28e07ba10b707b505781ffca46b97f
ice: add TTY for GNSS module for E810T device

Add a new ice_gnss.c file for holding the basic GNSS module functions.
If the device supports GNSS module, call the new ice_gnss_init and
ice_gnss_release functions where appropriate.

Implement basic functionality for reading the data from GNSS module
using TTY device.

Add I2C read AQ command. It is now required for controlling the external
physical connectors via external I2C port expander on E810-T adapters.

Future changes will introduce write functionality.

Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
Signed-off-by: Sudhansu Sekhar Mishra <sudhansu.mishra@intel.com>
Tested-by: Sunitha Mekala <sunithax.d.mekala@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ice/Makefile
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
drivers/net/ethernet/intel/ice/ice_common.c
drivers/net/ethernet/intel/ice/ice_common.h
drivers/net/ethernet/intel/ice/ice_gnss.c [new file with mode: 0644]
drivers/net/ethernet/intel/ice/ice_gnss.h [new file with mode: 0644]
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_ptp_hw.c
drivers/net/ethernet/intel/ice/ice_ptp_hw.h