Path: blob/master/ALFA-W1F1/RTL8814AU/platform/platform_arm_act_sdio.c
1307 views
/******************************************************************************1*2* Copyright(c) 2013 - 2017 Realtek Corporation.3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of version 2 of the GNU General Public License as6* published by the Free Software Foundation.7*8* This program is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for11* more details.12*13*****************************************************************************/14/*15* Description:16* This file can be applied to following platforms:17* CONFIG_PLATFORM_ACTIONS_ATM703X18*/19#include <drv_types.h>2021#ifdef CONFIG_PLATFORM_ACTIONS_ATM705X22extern int acts_wifi_init(void);23extern void acts_wifi_cleanup(void);24#endif2526/*27* Return:28* 0: power on successfully29* others: power on failed30*/31int platform_wifi_power_on(void)32{33int ret = 0;3435#ifdef CONFIG_PLATFORM_ACTIONS_ATM705X36ret = acts_wifi_init();37if (unlikely(ret < 0)) {38pr_err("%s Failed to register the power control driver.\n", __FUNCTION__);39goto exit;40}41#endif4243exit:44return ret;45}4647void platform_wifi_power_off(void)48{49#ifdef CONFIG_PLATFORM_ACTIONS_ATM705X50acts_wifi_cleanup();51#endif52}535455