From: Karol Kolacinski <[email protected]> Date: Thu, 4 Apr 2024 11:09:57 +0200
> From: Michal Michalik <[email protected]> > > The CGU layout of E825-C is a little different than E822/E823. Add > support the new hardware adding relevant functions. > > Signed-off-by: Michal Michalik <[email protected]> > Reviewed-by: Przemek Kitszel <[email protected]> > Reviewed-by: Arkadiusz Kubalewski <[email protected]> > Signed-off-by: Karol Kolacinski <[email protected]> > --- > V4 -> V5: added UL to some of tspll_fbdiv_frac values in e825c_cgu_params > > drivers/net/ethernet/intel/ice/ice_cgu_regs.h | 65 +++++ > .../net/ethernet/intel/ice/ice_ptp_consts.h | 87 ++++++ > drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 247 +++++++++++++++++- > drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 22 ++ > drivers/net/ethernet/intel/ice/ice_type.h | 2 +- > 5 files changed, 410 insertions(+), 13 deletions(-) > > diff --git a/drivers/net/ethernet/intel/ice/ice_cgu_regs.h > b/drivers/net/ethernet/intel/ice/ice_cgu_regs.h > index 36aeb10eefb7..10d9d74f3545 100644 > --- a/drivers/net/ethernet/intel/ice/ice_cgu_regs.h > +++ b/drivers/net/ethernet/intel/ice/ice_cgu_regs.h > @@ -27,6 +27,17 @@ union nac_cgu_dword9 { > u32 val; > }; > > +#define NAC_CGU_DWORD16_E825C 0x40 > +union nac_cgu_dword16_e825c { > + struct { > + u32 synce_remndr : 6; > + u32 synce_phlmt_en : 1; > + u32 misc13 : 17; > + u32 tspll_ck_refclkfreq : 8; > + }; > + u32 val; > +}; Will this work on Big Endian systems? > + > #define NAC_CGU_DWORD19 0x4c > union nac_cgu_dword19 { > struct { [...] Thanks, Olek
