Home
last modified time | relevance | path

Searched refs:cpsw (Results 1 – 25 of 44) sorted by relevance

12

/linux/drivers/net/ethernet/ti/
H A Dcpsw_priv.c34 int (*cpsw_slave_index)(struct cpsw_common *cpsw, struct cpsw_priv *priv);
36 void cpsw_intr_enable(struct cpsw_common *cpsw) in cpsw_intr_enable() argument
38 writel_relaxed(0xFF, &cpsw->wr_regs->tx_en); in cpsw_intr_enable()
39 writel_relaxed(0xFF, &cpsw->wr_regs->rx_en); in cpsw_intr_enable()
41 cpdma_ctlr_int_ctrl(cpsw->dma, true); in cpsw_intr_enable()
44 void cpsw_intr_disable(struct cpsw_common *cpsw) in cpsw_intr_disable() argument
46 writel_relaxed(0, &cpsw->wr_regs->tx_en); in cpsw_intr_disable()
47 writel_relaxed(0, &cpsw->wr_regs->rx_en); in cpsw_intr_disable()
49 cpdma_ctlr_int_ctrl(cpsw->dma, false); in cpsw_intr_disable()
88 struct cpsw_common *cpsw = dev_id; in cpsw_tx_interrupt() local
[all …]
H A Dcpsw_switchdev.c29 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_stp_state_set() local
51 ret = cpsw_ale_control_set(cpsw->ale, priv->emac_port, in cpsw_port_stp_state_set()
62 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_attr_br_flags_set() local
73 cpsw_ale_set_unreg_mcast(cpsw->ale, BIT(priv->emac_port), in cpsw_port_attr_br_flags_set()
121 struct cpsw_common *cpsw = priv->cpsw; in cpsw_get_pvid() local
128 if (cpsw->version == CPSW_VERSION_1) in cpsw_get_pvid()
130 pvid = slave_read(cpsw->slaves + (priv->emac_port - 1), reg); in cpsw_get_pvid()
132 port_vlan_reg = &cpsw->host_port_regs->port_vlan; in cpsw_get_pvid()
143 struct cpsw_common *cpsw = priv->cpsw; in cpsw_set_pvid() local
154 if (cpsw->version == CPSW_VERSION_1) in cpsw_set_pvid()
[all …]
H A DMakefile6 obj-$(CONFIG_TI_CPSW) += cpsw-common.o
7 obj-$(CONFIG_TI_DAVINCI_EMAC) += cpsw-common.o
8 obj-$(CONFIG_TI_CPSW_SWITCHDEV) += cpsw-common.o
14 obj-$(CONFIG_TI_CPSW_PHY_SEL) += cpsw-phy-sel.o
17 ti_cpsw-y := cpsw.o davinci_cpdma.o cpsw_ale.o cpsw_priv.o cpsw_sl.o cpsw_ethtool.o
28 obj-$(CONFIG_TI_K3_AM65_CPSW_NUSS) += ti-am65-cpsw-nuss.o
29 ti-am65-cpsw-nuss-y := am65-cpsw-nuss.o cpsw_sl.o am65-cpsw-ethtool.o cpsw_ale.o
30 ti-am65-cpsw-nuss-$(CONFIG_TI_AM65_CPSW_QOS) += am65-cpsw-qos.o
31 ti-am65-cpsw-nuss-$(CONFIG_TI_K3_AM65_CPSW_SWITCHDEV) += am65-cpsw-switchdev.o
H A Dam65-cpsw-switchdev.c27 struct am65_cpsw_common *cpsw = port->common; in am65_cpsw_port_stp_state_set() local
49 ret = cpsw_ale_control_set(cpsw->ale, port->port_id, in am65_cpsw_port_stp_state_set()
60 struct am65_cpsw_common *cpsw = port->common; in am65_cpsw_port_attr_br_flags_set() local
71 cpsw_ale_set_unreg_mcast(cpsw->ale, BIT(port->port_id), in am65_cpsw_port_attr_br_flags_set()
119 struct am65_cpsw_common *cpsw = port->common; in am65_cpsw_get_pvid() local
120 struct am65_cpsw_host *host_p = am65_common_get_host(cpsw); in am65_cpsw_get_pvid()
135 struct am65_cpsw_common *cpsw = port->common; in am65_cpsw_set_pvid() local
136 struct am65_cpsw_host *host_p = am65_common_get_host(cpsw); in am65_cpsw_set_pvid()
153 struct am65_cpsw_common *cpsw = port->common; in am65_cpsw_port_vlan_add() local
176 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in am65_cpsw_port_vlan_add()
[all …]
H A Dam65-cpsw-switchdev.h16 int am65_cpsw_switchdev_register_notifiers(struct am65_cpsw_common *cpsw);
17 void am65_cpsw_switchdev_unregister_notifiers(struct am65_cpsw_common *cpsw);
19 static inline int am65_cpsw_switchdev_register_notifiers(struct am65_cpsw_common *cpsw) in am65_cpsw_switchdev_register_notifiers() argument
24 static inline void am65_cpsw_switchdev_unregister_notifiers(struct am65_cpsw_common *cpsw) in am65_cpsw_switchdev_unregister_notifiers() argument
H A Dcpsw_switchdev.h12 int cpsw_switchdev_register_notifiers(struct cpsw_common *cpsw);
13 void cpsw_switchdev_unregister_notifiers(struct cpsw_common *cpsw);
H A Dam65-cpsw-nuss.c3057 static int am65_cpsw_register_notifiers(struct am65_cpsw_common *cpsw) in am65_cpsw_register_notifiers() argument
3061 if (AM65_CPSW_IS_CPSW2G(cpsw) || in am65_cpsw_register_notifiers()
3065 cpsw->am65_cpsw_netdevice_nb.notifier_call = &am65_cpsw_netdevice_event; in am65_cpsw_register_notifiers()
3066 ret = register_netdevice_notifier(&cpsw->am65_cpsw_netdevice_nb); in am65_cpsw_register_notifiers()
3068 dev_err(cpsw->dev, "can't register netdevice notifier\n"); in am65_cpsw_register_notifiers()
3072 ret = am65_cpsw_switchdev_register_notifiers(cpsw); in am65_cpsw_register_notifiers()
3074 unregister_netdevice_notifier(&cpsw->am65_cpsw_netdevice_nb); in am65_cpsw_register_notifiers()
3079 static void am65_cpsw_unregister_notifiers(struct am65_cpsw_common *cpsw) in am65_cpsw_unregister_notifiers() argument
3081 if (AM65_CPSW_IS_CPSW2G(cpsw) || in am65_cpsw_unregister_notifiers()
3085 am65_cpsw_switchdev_unregister_notifiers(cpsw); in am65_cpsw_unregister_notifiers()
[all …]
H A DKconfig63 will be called cpsw.
114 will be called ti-am65-cpsw-nuss.
/linux/Documentation/devicetree/bindings/net/
H A Dcpsw-phy-sel.txt5 - compatible : Should be "ti,am3352-cpsw-phy-sel" for am335x platform and
6 "ti,dra7xx-cpsw-phy-sel" for dra7xx platform
7 "ti,am43xx-cpsw-phy-sel" for am43xx platform
8 - reg : physical base address and size of the cpsw
18 phy_sel: cpsw-phy-sel@44e10650 {
19 compatible = "ti,am3352-cpsw-phy-sel";
25 phy_sel: cpsw-phy-sel@44e10650 {
26 compatible = "ti,am3352-cpsw-phy-sel";
H A Dcpsw.txt6 "ti,cpsw" for backward compatible
7 "ti,am335x-cpsw" for AM335x controllers
8 "ti,am4372-cpsw" for AM437x controllers
9 "ti,dra7-cpsw" for DRA7x controllers
10 - reg : physical base address and size of the cpsw
22 - cpsw-phy-sel : Specifies the phandle to the CPSW phy mode selection
23 device. See also cpsw-phy-sel.txt for its binding.
24 Note that in legacy cases cpsw-phy-sel may be
34 required to be driven so that cpsw data lines
37 driven low so that cpsw slave 0 and phy data
[all …]
/linux/Documentation/networking/devlink/
H A Dam65-nuss-cpsw-switch.rst4 am65-cpsw-nuss devlink support
7 This document describes the devlink features implemented by the ``am65-cpsw-nuss``
13 The ``am65-cpsw-nuss`` driver implements the following driver-specific
H A Dti-cpsw-switch.rst4 ti-cpsw-switch devlink support
7 This document describes the devlink features implemented by the ``ti-cpsw-switch``
13 The ``ti-cpsw-switch`` driver implements the following driver-specific
H A Dindex.rst94 ti-cpsw-switch
95 am65-nuss-cpsw-switch
/linux/arch/arm/boot/dts/ti/omap/
H A Dam335x-sancloud-bbe-common.dtsi7 cpsw_default: cpsw-default-pins {
25 cpsw_sleep: cpsw-sleep-pins {
H A Dam335x-chiliboard.dts46 cpsw_default: cpsw-default-pins {
60 cpsw_sleep: cpsw-sleep-pins {
H A Dam335x-moxa-uc-2101.dts31 cpsw_default: cpsw-default-pins {
H A Dam335x-lxm.dts62 cpsw_default: cpsw-default-pins {
88 cpsw_sleep: cpsw-sleep-pins {
H A Dam335x-bone-common.dtsi105 cpsw_default: cpsw-default-pins {
124 cpsw_sleep: cpsw-sleep-pins {
H A Dam43xx-clocks.dtsi555 cpsw_125mhz_gclk: clock-cpsw-125mhz-gclk {
564 cpsw_cpts_rft_clk: clock-cpsw-cpts-rft@4238 {
693 cpsw_50m_clkdiv: clock-cpsw-50m-clkdiv {
702 cpsw_5m_clkdiv: clock-cpsw-5m-clkdiv {
H A Dam335x-icev2.dts202 cpsw_default: cpsw-default-pins {
225 cpsw_sleep: cpsw-sleep-pins {
/linux/Documentation/networking/device_drivers/ethernet/
H A Dindex.rst54 ti/cpsw
/linux/arch/arm64/boot/dts/ti/
H A Dk3-j721s2-evm-gesi-exp-board.dtso25 main_cpsw_mdio_default_pins: main-cpsw-mdio-default-pins {
H A Dk3-am65-mcu.dtsi16 compatible = "ti,am62p-cpsw-mac-efuse", "syscon";
333 compatible = "ti,am654-cpsw-nuss";
371 compatible = "ti,cpsw-mdio","ti,davinci_mdio";
H A Dk3-am64-phycore-som.dtsi129 cpsw_mdio_pins_default: cpsw-mdio-default-pins {
137 cpsw_rgmii1_pins_default: cpsw-rgmii1-default-pins {
/linux/Documentation/networking/device_drivers/ethernet/ti/
H A Dcpsw.rst11 The cpsw has 3 CBS shapers for each external ports. This document
12 describes MQPRIO and CBS Qdisc offload configuration for cpsw driver
21 Under consideration two examples with AM572x EVM running cpsw driver
76 - f - fifo (cpsw fifo)

12