2011-03-08 03:01:31 +07:00
|
|
|
/*
|
|
|
|
* arch/arm/mach-tegra/board-paz00.c
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011 Marc Dietrich <marvin24@gmx.de>
|
|
|
|
*
|
|
|
|
* Based on board-harmony.c
|
|
|
|
* Copyright (C) 2010 Google, Inc.
|
|
|
|
*
|
|
|
|
* This software is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
|
|
* may be copied, distributed, and modified under those terms.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/platform_device.h>
|
2011-08-08 02:00:52 +07:00
|
|
|
#include <linux/rfkill-gpio.h>
|
2011-03-08 03:01:31 +07:00
|
|
|
#include "board.h"
|
|
|
|
|
2011-08-08 02:00:52 +07:00
|
|
|
static struct rfkill_gpio_platform_data wifi_rfkill_platform_data = {
|
|
|
|
.name = "wifi_rfkill",
|
2013-08-21 05:11:29 +07:00
|
|
|
.reset_gpio = 25, /* PD1 */
|
|
|
|
.shutdown_gpio = 85, /* PK5 */
|
2011-08-08 02:00:52 +07:00
|
|
|
.type = RFKILL_TYPE_WLAN,
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct platform_device wifi_rfkill_device = {
|
|
|
|
.name = "rfkill_gpio",
|
|
|
|
.id = -1,
|
|
|
|
.dev = {
|
|
|
|
.platform_data = &wifi_rfkill_platform_data,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2012-05-03 05:05:44 +07:00
|
|
|
void __init tegra_paz00_wifikill_init(void)
|
|
|
|
{
|
|
|
|
platform_device_register(&wifi_rfkill_device);
|
|
|
|
}
|