All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vignesh Raghavendra <vigneshr@ti.com>
To: u-boot@lists.denx.de
Subject: [PATCH 2/5] net: ti: am65-cpsw-nuss: Set ALE default thread enable
Date: Mon, 6 Jul 2020 13:36:53 +0530	[thread overview]
Message-ID: <20200706080656.19460-3-vigneshr@ti.com> (raw)
In-Reply-To: <20200706080656.19460-1-vigneshr@ti.com>

Force default thread to be used for RX as ALE is anyways set to Bypass
mode.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
---
 drivers/net/ti/am65-cpsw-nuss.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c
index e8fe875e70..753a117300 100644
--- a/drivers/net/ti/am65-cpsw-nuss.c
+++ b/drivers/net/ti/am65-cpsw-nuss.c
@@ -61,6 +61,9 @@
 #define AM65_CPSW_ALE_PN_CTL_REG_MODE_FORWARD	0x3
 #define AM65_CPSW_ALE_PN_CTL_REG_MAC_ONLY	BIT(11)
 
+#define AM65_CPSW_ALE_THREADMAPDEF_REG		0x134
+#define AM65_CPSW_ALE_DEFTHREAD_EN		BIT(15)
+
 #define AM65_CPSW_MACSL_CTL_REG			0x0
 #define AM65_CPSW_MACSL_CTL_REG_IFCTL_A		BIT(15)
 #define AM65_CPSW_MACSL_CTL_EXT_EN		BIT(18)
@@ -364,6 +367,9 @@ static int am65_cpsw_start(struct udevice *dev)
 	writel(AM65_CPSW_ALE_PN_CTL_REG_MODE_FORWARD,
 	       common->ale_base + AM65_CPSW_ALE_PN_CTL_REG(0));
 
+	writel(AM65_CPSW_ALE_DEFTHREAD_EN,
+	       common->ale_base + AM65_CPSW_ALE_THREADMAPDEF_REG);
+
 	/* PORT x configuration */
 
 	/* Port x Max length register */
-- 
2.27.0

  parent reply	other threads:[~2020-07-06  8:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-06  8:06 [PATCH 0/5] TI: AM654/J721e: Sync CPSW DT node from kernel Vignesh Raghavendra
2020-07-06  8:06 ` [PATCH 1/5] net: ti: am65-cpsw-nuss: Remove dead code Vignesh Raghavendra
2020-07-06  8:06 ` Vignesh Raghavendra [this message]
2020-07-06  8:06 ` [PATCH 3/5] net: ti: am65-cpsw-nuss: Update driver to use kernel DT Vignesh Raghavendra
2020-07-06  8:06 ` [PATCH 4/5] arm: dts: k3-j721e: Sync CPSW DT node from kernel Vignesh Raghavendra
2020-07-07 13:49   ` Grygorii Strashko
2020-07-07 14:15     ` Vignesh Raghavendra
2020-07-08  7:55       ` Lokesh Vutla
2020-07-06  8:06 ` [PATCH 5/5] arm: dts: k3-am65: " Vignesh Raghavendra
2020-07-07 13:50 ` [PATCH 0/5] TI: AM654/J721e: " Grygorii Strashko
2020-07-14  5:41 ` Lokesh Vutla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200706080656.19460-3-vigneshr@ti.com \
    --to=vigneshr@ti.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.