qcacmn: Add and enable GPIO Component

Add the common GPIO component code for MCC and WIN

Change-Id: Id93629856d42afc433844b568deb2fa63a5b67e6
This commit is contained in:
Chaoli Zhou
2020-09-14 19:06:09 +08:00
committed by snandini
parent 8e4a6046af
commit eb134979c1
12 changed files with 690 additions and 0 deletions

View File

@@ -85,6 +85,8 @@
#include <wlan_if_mgr_main.h>
#endif
#include <wlan_gpio_api.h>
/**
* DOC: This file provides various init/deinit trigger point for new
* components.
@@ -1006,6 +1008,9 @@ QDF_STATUS dispatcher_init(void)
if (QDF_STATUS_SUCCESS != dispatcher_if_mgr_init())
goto ifmgr_init_fail;
if (QDF_STATUS_SUCCESS != wlan_gpio_init())
goto gpio_init_fail;
/*
* scheduler INIT has to be the last as each component's
* initialization has to happen first and then at the end
@@ -1017,6 +1022,8 @@ QDF_STATUS dispatcher_init(void)
return QDF_STATUS_SUCCESS;
scheduler_init_fail:
wlan_gpio_deinit();
gpio_init_fail:
dispatcher_if_mgr_deinit();
ifmgr_init_fail:
dispatcher_coex_deinit();
@@ -1076,6 +1083,8 @@ QDF_STATUS dispatcher_deinit(void)
QDF_BUG(QDF_STATUS_SUCCESS == scheduler_deinit());
QDF_BUG(QDF_STATUS_SUCCESS == wlan_gpio_deinit());
QDF_BUG(QDF_STATUS_SUCCESS == dispatcher_if_mgr_deinit());
QDF_BUG(QDF_STATUS_SUCCESS == dispatcher_coex_deinit());