Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 636b7797 authored by Alexei Avshalom Lazar's avatar Alexei Avshalom Lazar
Browse files

wil6210: Add support for 11ad platform driver



Platform driver used to handle msm specific platform
requirement for 11ad chipset connected to msm platform

Change-Id: I13c5b5a76bc17393e486c400bdfb90e4ef89e270
CRs-Fixed: 2143032
Signed-off-by: default avatarAlexei Avshalom Lazar <ailizaro@codeaurora.org>
parent a933b100
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -41,6 +41,18 @@ config WIL6210_TRACING

	  If unsure, say Y to make it easier to debug problems.

config WIL6210_PLATFORM_MSM
	bool "wil6210 MSM platform specific support"
	depends on WIL6210
	depends on ARCH_QCOM
	default y
	---help---
	  Say Y here to enable wil6210 driver support for MSM
	  Platform driver used to handle msm specific platform
	  requirement for 11ad chipset connected to msm platform

	  If unsure, say N.

config WIL6210_DEBUGFS
	bool "wil6210 debugfs support"
	depends on WIL6210
+3 −0
Original line number Diff line number Diff line
@@ -25,3 +25,6 @@ wil6210-y += ftm.o

# for tracing framework to find trace.h
CFLAGS_trace.o := -I$(src)

MSM_11AD_PATH = drivers/platform/msm/msm_11ad
CFLAGS_wil_platform.o := -I$(MSM_11AD_PATH)
+5 −3
Original line number Diff line number Diff line
@@ -16,14 +16,16 @@

#include <linux/device.h>
#include "wil_platform.h"
#include "msm_11ad.h"

int __init wil_platform_modinit(void)
{
	return 0;
	return msm_11ad_modinit();
}

void wil_platform_modexit(void)
{
	msm_11ad_modexit();
}

/**
@@ -36,7 +38,7 @@ void wil_platform_modexit(void)
void *wil_platform_init(struct device *dev, struct wil_platform_ops *ops,
			const struct wil_platform_rops *rops, void *wil_handle)
{
	void *handle = ops; /* to return some non-NULL for 'void' impl. */
	void *handle;

	if (!ops) {
		dev_err(dev,
@@ -44,7 +46,7 @@ void *wil_platform_init(struct device *dev, struct wil_platform_ops *ops,
		return NULL;
	}

	/* platform specific init functions should be called here */
	handle = msm_11ad_dev_init(dev, ops, rops, wil_handle);

	return handle;
}