Skip to content

Commit

Permalink
Add techpack/ modifications
Browse files Browse the repository at this point in the history
Signed-off-by: ShivamKumarJha <[email protected]>
  • Loading branch information
ShivamKumarJha committed Jan 19, 2022
1 parent 706a7df commit 140eb27
Show file tree
Hide file tree
Showing 135 changed files with 191,154 additions and 1 deletion.
2 changes: 1 addition & 1 deletion techpack/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-only
# ignore all subdirs except stub
!/stub/
*/
#*/
3 changes: 3 additions & 0 deletions techpack/dataipa/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only

obj-$(CONFIG_ARCH_QCOM) += drivers/platform/msm/
10 changes: 10 additions & 0 deletions techpack/dataipa/config/dataipa.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*/

#define CONFIG_GSI 1
#define CONFIG_GSI_REGISTER_VERSION_2 1
#define CONFIG_RMNET_IPA3 1
#define CONFIG_RNDIS_IPA 1
#define CONFIG_IPA_WDI_UNIFIED_API 1
6 changes: 6 additions & 0 deletions techpack/dataipa/config/dataipa_GKI.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export CONFIG_GSI=m
export CONFIG_GSI_REGISTER_VERSION_2=y
export CONFIG_IPA_CLIENTS_MANAGER=m
export CONFIG_IPA_WDI_UNIFIED_API=y
export CONFIG_RMNET_IPA3=y
export CONFIG_RNDIS_IPA=m
6 changes: 6 additions & 0 deletions techpack/dataipa/config/dataipa_QGKI.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export CONFIG_GSI=y
export CONFIG_GSI_REGISTER_VERSION_2=y
export CONFIG_IPA_CLIENTS_MANAGER=y
export CONFIG_IPA_WDI_UNIFIED_API=y
export CONFIG_RMNET_IPA3=y
export CONFIG_RNDIS_IPA=y
2 changes: 2 additions & 0 deletions techpack/dataipa/config/dataipa_debug.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export CONFIG_IPA_DEBUG=y
export CONFIG_IPA_UT=y
7 changes: 7 additions & 0 deletions techpack/dataipa/config/dataipa_debug.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*/

#define CONFIG_IPA_DEBUG 1
#define CONFIG_IPA_UT 1
12 changes: 12 additions & 0 deletions techpack/dataipa/config/dataipa_gsi_V1.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
*/

#define CONFIG_GSI 1
#define CONFIG_RMNET_IPA3 1
#define CONFIG_RNDIS_IPA 1
#define CONFIG_IPA_WDI_UNIFIED_API 1
#define CONFIG_IPA3_REGDUMP 1
#define CONFIG_IPA3_REGDUMP_IPA_4_1 1
#define CONFIG_IPA3_REGDUMP_NUM_EXTRA_ENDP_REGS 0
7 changes: 7 additions & 0 deletions techpack/dataipa/config/dataipa_gsi_V1_GKI.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export CONFIG_GSI=m
export CONFIG_IPA_CLIENTS_MANAGER=m
export CONFIG_IPA_WDI_UNIFIED_API=y
export CONFIG_RMNET_IPA3=y
export CONFIG_RNDIS_IPA=m
export CONFIG_IPA3_REGDUMP=y
export CONFIG_IPA3_REGDUMP_IPA_4_1=y
7 changes: 7 additions & 0 deletions techpack/dataipa/config/dataipa_gsi_V1_QGKI.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export CONFIG_GSI=y
export CONFIG_IPA_CLIENTS_MANAGER=y
export CONFIG_IPA_WDI_UNIFIED_API=y
export CONFIG_RMNET_IPA3=y
export CONFIG_RNDIS_IPA=y
export CONFIG_IPA3_REGDUMP=y
export CONFIG_IPA3_REGDUMP_IPA_4_1=y
65 changes: 65 additions & 0 deletions techpack/dataipa/drivers/platform/msm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# SPDX-License-Identifier: GPL-2.0-only

ifeq ($(CONFIG_ARCH_LAHAINA), y)
LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa.h
ifeq ($(CONFIG_QGKI),y)
include $(srctree)/techpack/dataipa/config/dataipa_QGKI.conf
ifeq ($(CONFIG_LOCALVERSION), "-qgki-debug")
include $(srctree)/techpack/dataipa/config/dataipa_debug.conf
LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa_debug.h
endif
else
include $(srctree)/techpack/dataipa/config/dataipa_GKI.conf
endif
endif

ifeq ($(CONFIG_ARCH_HOLI), y)
LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa.h
ifeq ($(CONFIG_QGKI),y)
include $(srctree)/techpack/dataipa/config/dataipa_QGKI.conf
ifeq ($(CONFIG_LOCALVERSION), "-qgki-debug")
include $(srctree)/techpack/dataipa/config/dataipa_debug.conf
LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa_debug.h
endif
else
include $(srctree)/techpack/dataipa/config/dataipa_GKI.conf
endif
endif

ifeq ($(CONFIG_QTI_QUIN_GVM),y)
LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa_gsi_V1.h
ifeq ($(CONFIG_QGKI),y)
include $(srctree)/techpack/dataipa/config/dataipa_gsi_V1_QGKI.conf
ifeq ($(CONFIG_LOCALVERSION), "-qgki-debug")
include $(srctree)/techpack/dataipa/config/dataipa_debug.conf
LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa_debug.h
endif
else
include $(srctree)/techpack/dataipa/config/dataipa_gsi_V1_GKI.conf
endif
endif

DATAIPADRVTOP = $(srctree)/techpack/dataipa/drivers/platform/msm

ifneq (,$(filter $(CONFIG_IPA3),y m))
LINUXINCLUDE += -I$(DATAIPADRVTOP)/gsi
LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa
LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3
LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3/ipahal
LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_clients
endif

ifneq (,$(filter $(CONFIG_IPA3_REGDUMP),y m))
LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3/dump
endif

ifneq (,$(filter $(CONFIG_IPA3_REGDUMP_IPA_4_5),y m))
LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3/dump/ipa4.5
endif

ifneq (,$(filter $(CONFIG_IPA3_REGDUMP_IPA_4_1),y m))
LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3/dump/ipa4.1
endif

obj-$(CONFIG_GSI) += gsi/
obj-$(CONFIG_IPA3) += ipa/
9 changes: 9 additions & 0 deletions techpack/dataipa/drivers/platform/msm/gsi/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SPDX-License-Identifier: GPL-2.0-only

obj-$(CONFIG_GSI) += gsim.o

gsim-objs := gsi.o

gsim-$(CONFIG_DEBUG_FS) += gsi_dbg.o

gsim-$(CONFIG_IPA_EMULATION) += gsi_emulation.o
Loading

0 comments on commit 140eb27

Please sign in to comment.