[PATCH net-next v6 1/5] net: stmmac: Add snps_id, dev_id to struct plat_stmmacenet_data
jitendra.vegiraju at broadcom.com
jitendra.vegiraju at broadcom.com
Fri Oct 18 13:53:28 PDT 2024
From: Jitendra Vegiraju <jitendra.vegiraju at broadcom.com>
Introduce new variables plat_stmmacenet_data::snps_id,dev_id to allow glue
drivers to specify synopsys ID and device id respectively.
These values take precedence over reading from HW register. This facility
provides a mechansim to use setup function from stmmac core module and yet
override MAC.VERSION CSR if the glue driver chooses to do so.
Signed-off-by: Jitendra Vegiraju <jitendra.vegiraju at broadcom.com>
---
include/linux/stmmac.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
index d79ff252cfdc..4c4965a5a0d0 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -183,6 +183,8 @@ struct dwmac4_addrs {
#define STMMAC_FLAG_HWTSTAMP_CORRECT_LATENCY BIT(12)
struct plat_stmmacenet_data {
+ u32 snps_id;
+ u32 dev_id;
int bus_id;
int phy_addr;
/* MAC ----- optional PCS ----- SerDes ----- optional PHY ----- Media
--
2.34.1
More information about the linux-arm-kernel
mailing list