Skip to content

Commit d7999f5

Browse files
kubalewskidavem330
authored andcommitted
ice: implement dpll interface to control cgu
Control over clock generation unit is required for further development of Synchronous Ethernet feature. Interface provides ability to obtain current state of a dpll, its sources and outputs which are pins, and allows their configuration. Co-developed-by: Milena Olech <[email protected]> Signed-off-by: Milena Olech <[email protected]> Co-developed-by: Michal Michalik <[email protected]> Signed-off-by: Michal Michalik <[email protected]> Signed-off-by: Arkadiusz Kubalewski <[email protected]> Signed-off-by: Vadim Fedorenko <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8a3a565 commit d7999f5

File tree

6 files changed

+2020
-1
lines changed

6 files changed

+2020
-1
lines changed

drivers/net/ethernet/intel/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ config ICE
284284
select DIMLIB
285285
select NET_DEVLINK
286286
select PLDMFW
287+
select DPLL
287288
help
288289
This driver supports Intel(R) Ethernet Connection E800 Series of
289290
devices. For more information on how to identify your adapter, go

drivers/net/ethernet/intel/ice/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ ice-y := ice_main.o \
3434
ice_lag.o \
3535
ice_ethtool.o \
3636
ice_repr.o \
37-
ice_tc_lib.o
37+
ice_tc_lib.o \
38+
ice_dpll.o
3839
ice-$(CONFIG_PCI_IOV) += \
3940
ice_sriov.o \
4041
ice_virtchnl.o \

drivers/net/ethernet/intel/ice/ice.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
#include "ice_vsi_vlan_ops.h"
7777
#include "ice_gnss.h"
7878
#include "ice_irq.h"
79+
#include "ice_dpll.h"
7980

8081
#define ICE_BAR0 0
8182
#define ICE_REQ_DESC_MULTIPLE 32
@@ -510,6 +511,7 @@ enum ice_pf_flags {
510511
ICE_FLAG_UNPLUG_AUX_DEV,
511512
ICE_FLAG_MTU_CHANGED,
512513
ICE_FLAG_GNSS, /* GNSS successfully initialized */
514+
ICE_FLAG_DPLL, /* SyncE/PTP dplls initialized */
513515
ICE_PF_FLAGS_NBITS /* must be last */
514516
};
515517

@@ -642,6 +644,7 @@ struct ice_pf {
642644
#define ICE_VF_AGG_NODE_ID_START 65
643645
#define ICE_MAX_VF_AGG_NODES 32
644646
struct ice_agg_node vf_agg_node[ICE_MAX_VF_AGG_NODES];
647+
struct ice_dplls dplls;
645648
};
646649

647650
extern struct workqueue_struct *ice_lag_wq;

0 commit comments

Comments
 (0)