]> www.infradead.org Git - users/dwmw2/linux.git/commit
ice: Read SDP section from NVM for pin definitions
authorYochai Hagvi <yochai.hagvi@intel.com>
Fri, 30 Aug 2024 11:07:22 +0000 (13:07 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 1 Oct 2024 18:11:38 +0000 (11:11 -0700)
commitebb2693f8fbdb444e01ac6b6b50282aaabc96e77
tree877db7e5cb8aae82fe45ea25aeb2e5368b3605b9
parentdf0b394f1ca79e2f589c5f7ae7cb8095c67bf00c
ice: Read SDP section from NVM for pin definitions

PTP pins assignment and their related SDPs (Software Definable Pins) are
currently hardcoded.
Fix that by reading NVM section instead on products supporting this,
which are E810 products.
If SDP section is not defined in NVM, the driver continues to use the
hardcoded table.

Reviewed-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Signed-off-by: Yochai Hagvi <yochai.hagvi@intel.com>
Co-developed-by: Karol Kolacinski <karol.kolacinski@intel.com>
Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
drivers/net/ethernet/intel/ice/ice_ptp.c
drivers/net/ethernet/intel/ice/ice_ptp.h
drivers/net/ethernet/intel/ice/ice_ptp_hw.c
drivers/net/ethernet/intel/ice/ice_ptp_hw.h