summaryrefslogtreecommitdiff
path: root/drivers/emac-dwc-eqos/DWC_ETH_QOS_ipa.c
diff options
context:
space:
mode:
authorSunil Paidimarri <hisunil@codeaurora.org>2019-04-04 18:35:40 -0700
committerLakshit Tyagi <ltyagi@codeaurora.org>2019-09-04 14:58:24 +0530
commit59e9f8753c52469d77a2ae5a467c63e05ed343fc (patch)
tree7e7ea5c8aac2c4cc4a9ac88ff6320ad4512fb3aa /drivers/emac-dwc-eqos/DWC_ETH_QOS_ipa.c
parent42a2cf0edb4304c2cd1cf42a5412219269a93bad (diff)
downloaddata-kernel-59e9f8753c52469d77a2ae5a467c63e05ed343fc.tar.gz
data-kernel : Add Micrel PHY WOL support in emac driver
Change-Id: I322cf143d509e34fc25d61b435d1570f7f305c5a Acked-by: Nisha Menon <nmenon@qti.qualcomm.com> Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
Diffstat (limited to 'drivers/emac-dwc-eqos/DWC_ETH_QOS_ipa.c')
-rw-r--r--drivers/emac-dwc-eqos/DWC_ETH_QOS_ipa.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/emac-dwc-eqos/DWC_ETH_QOS_ipa.c b/drivers/emac-dwc-eqos/DWC_ETH_QOS_ipa.c
index 52a3639..ad6e863 100644
--- a/drivers/emac-dwc-eqos/DWC_ETH_QOS_ipa.c
+++ b/drivers/emac-dwc-eqos/DWC_ETH_QOS_ipa.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -967,6 +967,7 @@ static int DWC_ETH_QOS_ipa_offload_connect(struct DWC_ETH_QOS_prv_data *pdata)
struct ipa_perf_profile profile;
int ret = 0;
int i = 0;
+ u32 reg_val;
EMACDBG("%s - begin\n", __func__);
@@ -1088,6 +1089,13 @@ static int DWC_ETH_QOS_ipa_offload_connect(struct DWC_ETH_QOS_prv_data *pdata)
/* Mapped RX queue 0 to DMA channel 0 on successful IPA offload connect */
MTL_RQDCM0R_RGWR(0x3020100);
+ /* Mapped RX queue 0 to DMA channel 0 on successful IPA offload connect */
+ if (pdata->res_data->early_eth_en) {
+ MTL_RQDCM0R_RGRD(reg_val);
+ reg_val &= ~IPA_RX_TO_DMA_CH_MAP_NUM;
+ MTL_RQDCM0R_RGWR(reg_val);
+ }
+
ntn_ipa->uc_db_rx_addr = out.u.ntn.ul_uc_db_pa;
ntn_ipa->uc_db_tx_addr = out.u.ntn.dl_uc_db_pa;