net: wwan: t7xx: Add core components
authorHaijun Liu <haijun.liu@mediatek.com>
Fri, 6 May 2022 18:13:00 +0000 (11:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2022 09:51:59 +0000 (10:51 +0100)
commit13e920d93e37fcaef4a9309515798a3cae9dcf19
treec0347fa1f1a3ca0cd0695d98c0cf16e1c90f97a6
parent39d439047f1dc88f98b755d6f3a53a4ef8f0de21
net: wwan: t7xx: Add core components

Registers the t7xx device driver with the kernel. Setup all the core
components: PCIe layer, Modem Host Cross Core Interface (MHCCIF),
modem control operations, modem state machine, and build
infrastructure.

* PCIe layer code implements driver probe and removal.
* MHCCIF provides interrupt channels to communicate events
  such as handshake, PM and port enumeration.
* Modem control implements the entry point for modem init,
  reset and exit.
* The modem status monitor is a state machine used by modem control
  to complete initialization and stop. It is used also to propagate
  exception events reported by other components.

Signed-off-by: Haijun Liu <haijun.liu@mediatek.com>
Signed-off-by: Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>
Co-developed-by: Ricardo Martinez <ricardo.martinez@linux.intel.com>
Signed-off-by: Ricardo Martinez <ricardo.martinez@linux.intel.com>
Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
14 files changed:
drivers/net/wwan/Kconfig
drivers/net/wwan/Makefile
drivers/net/wwan/t7xx/Makefile [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_mhccif.c [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_mhccif.h [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_modem_ops.c [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_modem_ops.h [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_pci.c [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_pci.h [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_pcie_mac.c [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_pcie_mac.h [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_reg.h
drivers/net/wwan/t7xx/t7xx_state_monitor.c [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_state_monitor.h [new file with mode: 0644]