Home
last modified time | relevance | path

Searched +full:cpsw +full:- +full:switch (Results 1 – 25 of 53) sorted by relevance

123

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/
H A Dti,cpsw-switch.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/net/ti,cpsw-switch.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: TI SoC Ethernet Switch Controller (CPSW) Device Tree Bindings
10 - Grygorii Strashko <grygorii.strashko@ti.com>
11 - Sekhar Nori <nsekhar@ti.com>
14 The 3-port switch gigabit ethernet subsystem provides ethernet packet
15 communication and can be configured as an ethernet switch. It provides the
24 - const: ti,cpsw-switch
[all …]
H A Dcpsw.txt1 TI SoC Ethernet Switch Controller Device Tree Bindings
2 ------------------------------------------------------
5 - compatible : Should be one of the below:-
6 "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
12 - interrupts : property with a value describing the interrupt
14 - cpdma_channels : Specifies number of channels in CPDMA
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/ti/
H A Dcpsw_new.c1 // SPDX-License-Identifier: GPL-2.0
3 * Texas Instruments Ethernet Switch Driver
35 #include "cpsw.h"
51 struct cpsw_common *cpsw; member
63 static int cpsw_slave_index_priv(struct cpsw_common *cpsw, in cpsw_slave_index_priv() argument
66 if (priv->emac_port == HOST_PORT_NUM) in cpsw_slave_index_priv()
67 return -1; in cpsw_slave_index_priv()
69 return priv->emac_port - 1; in cpsw_slave_index_priv()
72 static bool cpsw_is_switch_en(struct cpsw_common *cpsw) in cpsw_is_switch_en() argument
74 return !cpsw->data.dual_emac; in cpsw_is_switch_en()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
43 bool "TI CPSW Phy mode Selection (DEPRECATED)"
47 the CPSW. DEPRECATED: use PHY_TI_GMII_SEL.
50 tristate "TI CPSW Switch Support"
59 This driver supports TI's CPSW Ethernet Switch.
62 will be called cpsw.
65 tristate "TI CPSW Switch Support with switchdev"
76 This driver supports TI's CPSW Ethernet Switch.
88 the CPSW Ethernet Switch and Keystone 2 1g/10g Switch Subsystem.
93 tristate "TI K3 AM654x/J721E CPSW Ethernet driver"
[all …]
H A Dcpsw_switchdev.c1 // SPDX-License-Identifier: GPL-2.0
15 #include "cpsw.h"
30 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_stp_state_set() local
37 switch (state) { in cpsw_port_stp_state_set()
52 return -EOPNOTSUPP; in cpsw_port_stp_state_set()
55 ret = cpsw_ale_control_set(cpsw->ale, priv->emac_port, in cpsw_port_stp_state_set()
57 dev_dbg(priv->dev, "ale state: %u\n", cpsw_state); in cpsw_port_stp_state_set()
67 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_attr_br_flags_set() local
75 dev_dbg(priv->dev, "BR_MCAST_FLOOD: %d port %u\n", in cpsw_port_attr_br_flags_set()
76 unreg_mcast_add, priv->emac_port); in cpsw_port_attr_br_flags_set()
[all …]
H A Dcpsw_priv.c1 // SPDX-License-Identifier: GPL-2.0
3 * Texas Instruments Ethernet Switch Driver
24 #include "cpsw.h"
33 int (*cpsw_slave_index)(struct cpsw_common *cpsw, struct cpsw_priv *priv);
35 void cpsw_intr_enable(struct cpsw_common *cpsw) in cpsw_intr_enable() argument
37 writel_relaxed(0xFF, &cpsw->wr_regs->tx_en); in cpsw_intr_enable()
38 writel_relaxed(0xFF, &cpsw->wr_regs->rx_en); in cpsw_intr_enable()
40 cpdma_ctlr_int_ctrl(cpsw->dma, true); in cpsw_intr_enable()
43 void cpsw_intr_disable(struct cpsw_common *cpsw) in cpsw_intr_disable() argument
45 writel_relaxed(0, &cpsw->wr_regs->tx_en); in cpsw_intr_disable()
[all …]
H A Dcpsw_ethtool.c1 // SPDX-License-Identifier: GPL-2.0
3 * Texas Instruments Ethernet Switch Driver ethtool intf
18 #include "cpsw.h"
111 { "Rx + Tx 65-127 Octet Frames", CPSW_STAT(octetframes65t127) },
112 { "Rx + Tx 128-255 Octet Frames", CPSW_STAT(octetframes128t255) },
113 { "Rx + Tx 256-511 Octet Frames", CPSW_STAT(octetframes256t511) },
114 { "Rx + Tx 512-1023 Octet Frames", CPSW_STAT(octetframes512t1023) },
115 { "Rx + Tx 1024-Up Octet Frames", CPSW_STAT(octetframes1024tup) },
145 return priv->msg_enable; in cpsw_get_msglevel()
152 priv->msg_enable = value; in cpsw_set_msglevel()
[all …]
H A Dcpsw-phy-sel.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Texas Instruments Ethernet Switch Driver
17 #include "cpsw.h"
48 reg = readl(priv->gmii_sel); in cpsw_gmii_sel_am3352()
50 switch (phy_mode) { in cpsw_gmii_sel_am3352()
67 dev_warn(priv->dev, in cpsw_gmii_sel_am3352()
80 if (priv->rmii_clock_external) { in cpsw_gmii_sel_am3352()
97 writel(reg, priv->gmii_sel); in cpsw_gmii_sel_am3352()
107 reg = readl(priv->gmii_sel); in cpsw_gmii_sel_dra7xx()
109 switch (phy_mode) { in cpsw_gmii_sel_dra7xx()
[all …]
H A Dcpsw.c1 // SPDX-License-Identifier: GPL-2.0
3 * Texas Instruments Ethernet Switch Driver
41 #include "cpsw.h"
52 MODULE_PARM_DESC(debug_level, "cpsw debug level (NETIF_MSG bits)");
56 MODULE_PARM_DESC(ale_ageout, "cpsw ale ageout interval (seconds)");
69 struct cpsw_common *cpsw = (priv)->cpsw; \
71 if (cpsw->data.dual_emac) \
72 (func)((cpsw)->slaves + priv->emac_port, ##arg);\
74 for (n = cpsw->data.slaves, \
75 slave = cpsw->slaves; \
[all …]
H A Dcpsw_priv.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Texas Instruments Ethernet Switch Driver
23 dev_info(priv->dev, format, ## __VA_ARGS__); \
29 dev_err(priv->dev, format, ## __VA_ARGS__); \
35 dev_dbg(priv->dev, format, ## __VA_ARGS__); \
41 dev_notice(priv->dev, format, ## __VA_ARGS__); \
125 #define CPSW_FIFO_SHAPERS_NUM (CPSW_TC_NUM - 1)
182 #define CPSW1_TX_PRI_MAP 0x10 /* Tx Header Priority to Switch Pri Mapping */
193 #define CPSW2_TX_PRI_MAP 0x18 /* Tx Header Priority to Switch Pri Mapping */
223 #define TS_TTL_NONZERO BIT(8) /* Time Sync Time To Live Non-zero enable */
[all …]
H A Dcpsw_switchdev.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Texas Instruments Ethernet Switch Driver
12 int cpsw_switchdev_register_notifiers(struct cpsw_common *cpsw);
13 void cpsw_switchdev_unregister_notifiers(struct cpsw_common *cpsw);
H A Dam65-cpsw-ethtool.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Texas Instruments K3 AM65 Ethernet Switch SubSystem Driver ethtool ops
4 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
13 #include "am65-cpsw-nuss.h"
15 #include "am65-cpts.h"
33 * struct am65_cpsw_regdump_hdr - regdump record header
35 * @module_id: CPSW module ID
36 * @len: CPSW module registers space length in u32
45 * struct am65_cpsw_regdump_item - regdump module description
47 * @hdr: CPSW module header
[all …]
/OK3568_Linux_fs/kernel/Documentation/networking/device_drivers/ethernet/ti/
H A Dcpsw_switchdev.rst1 .. SPDX-License-Identifier: GPL-2.0
4 Texas Instruments CPSW switchdev based ethernet driver
17 ip -d link show dev sw0p1 | grep switchid
26 - The new (cpsw_new.c) driver is operating in dual-emac mode by default, thus
27 working as 2 individual network interfaces. Main differences from legacy CPSW
30 - optimized promiscuous mode: The P0_UNI_FLOOD (both ports) is enabled in
34 to the same bridge, but without enabling "switch" mode, or to different
36 - learning disabled on ports as it make not too much sense for
37 segregated ports - no forwarding in HW.
38 - enabled basic support for devlink.
[all …]
/OK3568_Linux_fs/kernel/Documentation/networking/devlink/
H A Dti-cpsw-switch.rst1 .. SPDX-License-Identifier: GPL-2.0
4 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
16 .. list-table:: Driver-specific parameters implemented
19 * - Name
20 - Type
21 - Mode
22 - Description
23 * - ``ale_bypass``
[all …]
H A Dindex.rst5 related to any device class, such as chip-wide/switch-ASIC-wide configuration.
8 -----------------------
16 devlink-dpipe
17 devlink-health
18 devlink-info
19 devlink-flash
20 devlink-params
21 devlink-region
22 devlink-resource
23 devlink-reload
[all …]
/OK3568_Linux_fs/u-boot/board/bosch/shc/
H A DREADME13 Enabling the D-Cache
15 Net: cpsw
40 $ make -s all
42 -> now you have the MLO and the u-boot.img file, you can put
51 ARM architecture --->
52 enable different boot versions for the shc board (enable eMMC) --->
58 enable different board versions for the shc board (C3 Sample board version) --->
68 - see also doc/SPL/README.am335x-network
70 - set the jumper into netboot mode
71 - compile the U-boot sources with:
[all …]
H A Dboard.c10 * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
12 * SPDX-License-Identifier: GPL-2.0+
32 #include <cpsw.h>
57 return -ENODEV; in read_eeprom()
64 return -EIO; in read_eeprom()
70 return -EIO; in read_eeprom()
111 /* Wi-Fi power regulator enable - high = enabled */ in force_modules_running()
114 * Wait for Wi-Fi power regulator to reach a stable voltage in force_modules_running()
115 * (soft-start time, max. 350 µs) in force_modules_running()
119 /* Wi-Fi module reset - high = running */ in force_modules_running()
[all …]
/OK3568_Linux_fs/u-boot/board/ti/am335x/
H A Dboard.c6 * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
8 * SPDX-License-Identifier: GPL-2.0+
34 #include <cpsw.h>
45 /* GPIO that controls power to DDR on EVM-SK */
246 /* break into full u-boot on 'c' */ in spl_start_uboot()
301 switch (freq) { in get_dpll_mpu_params()
347 switch (freq) { in scale_vcores_bone()
420 * 1.10V. For MPU voltage we need to switch based on in scale_vcores_generic()
430 sil_rev = readl(&cdev->deviceid) >> 28; in scale_vcores_generic()
619 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; in board_init()
[all …]
/OK3568_Linux_fs/u-boot/include/
H A Dcpsw.h2 * CPSW Ethernet Switch Driver
4 * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
44 u32 hw_stats_reg_ofs; /* cpsw hw stats counters */
/OK3568_Linux_fs/u-boot/board/compulab/cm_t335/
H A Dcm_t335.c2 * Board functions for Compulab CM-T335 board
4 * Copyright (C) 2013, Compulab Ltd - http://compulab.co.il/
8 * SPDX-License-Identifier: GPL-2.0+
14 #include <cpsw.h>
30 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; in board_init()
90 mac_lo = readl(&cdev->macid0l); in get_efuse_mac_addr()
91 mac_hi = readl(&cdev->macid0h); in get_efuse_mac_addr()
102 * Description: prepare MAC address for on-board Ethernet.
118 return -1; in handle_mac_address()
138 writel(RGMII_MODE_ENABLE | RGMII_INT_DELAY, &cdev->miisel); in board_eth_init()
[all …]
/OK3568_Linux_fs/u-boot/board/gumstix/pepper/
H A Dboard.c2 * Board functions for Gumstix Pepper and AM335x-based boards
4 * Copyright (C) 2014, Gumstix, Incorporated - http://www.gumstix.com/
7 * SPDX-License-Identifier: GPL-2.0+
27 #include <cpsw.h>
66 const struct dpll_params dpll_ddr3 = {400, OSC-1, 1, -1, -1, -1, -1};
99 const struct dpll_params dpll_ddr2 = {266, OSC-1, 1, -1, -1, -1, -1};
112 return -ENODEV; in read_eeprom()
117 return -EIO; in read_eeprom()
133 switch (header.device_vendor) { in get_dpll_ddr_params()
153 if (dpll->m == 266) { in sdram_init()
[all …]
/OK3568_Linux_fs/u-boot/board/tcl/sl50/
H A Dboard.c6 * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
8 * SPDX-License-Identifier: GPL-2.0+
28 #include <cpsw.h>
73 /* break into full u-boot on 'c' */ in spl_start_uboot()
90 400, OSC-1, 1, -1, -1, -1, -1};
238 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; in board_init()
297 * - SPL with either CPSW or USB ethernet support
298 * - Full U-Boot, with either CPSW or USB ethernet
300 * when we build an SPL that has neither option but full U-Boot will.
314 mac_lo = readl(&cdev->macid0l); in board_eth_init()
[all …]
/OK3568_Linux_fs/u-boot/board/birdland/bav335x/
H A Dboard.c6 * Copyright (c) 2012-2014 Birdland Audio - http://birdland.com/oem
8 * SPDX-License-Identifier: GPL-2.0+
28 #include <cpsw.h>
38 /* GPIO that controls power to DDR on EVM-SK */
53 return -ENODEV; in read_eeprom()
58 return -EIO; in read_eeprom()
60 if (header->magic != BOARD_MAGIC) { in read_eeprom()
64 return -EIO; in read_eeprom()
66 if (header->magic != BOARD_MAGIC) in read_eeprom()
67 return -EINVAL; in read_eeprom()
[all …]
/OK3568_Linux_fs/u-boot/drivers/net/
H A Dcpsw.c2 * CPSW Ethernet Switch Driver
4 * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
23 #include <cpsw.h>
34 #define BITMASK(bits) (BIT(bits) - 1)
83 * This timeout definition is a worst-case ultra defensive measure against
200 /* ALE unicast entry flags - passed into cpsw_ale_add_ucast() */
240 #define desc_write(desc, fld, val) __raw_writel((u32)(val), &(desc)->fld)
241 #define desc_read(desc, fld) __raw_readl(&(desc)->fld)
242 #define desc_read_ptr(desc, fld) ((void *)__raw_readl(&(desc)->fld))
244 #define chan_write(chan, fld, val) __raw_writel((u32)(val), (chan)->fld)
[all …]
/OK3568_Linux_fs/u-boot/board/compulab/cm_t43/
H A Dcm_t43.c4 * SPDX-License-Identifier: GPL-2.0+
10 #include <cpsw.h>
46 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; in board_init()
121 if (phydev->drv->config) in board_phy_config()
122 return phydev->drv->config(phydev); in board_phy_config()
156 writel(RGMII_MODE_ENABLE | RGMII_INT_DELAY, &cdev->miisel); in board_eth_init()
161 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()

123