mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 06:55:01 +07:00
9c92ab6191
Based on 1 normalized pattern(s): 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 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 285 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190529141900.642774971@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
43 lines
989 B
C
43 lines
989 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* 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.
|
|
*/
|
|
|
|
#include <linux/property.h>
|
|
#include <linux/gpio/machine.h>
|
|
#include <linux/platform_device.h>
|
|
|
|
#include "board.h"
|
|
|
|
static struct property_entry wifi_rfkill_prop[] __initdata = {
|
|
PROPERTY_ENTRY_STRING("name", "wifi_rfkill"),
|
|
PROPERTY_ENTRY_STRING("type", "wlan"),
|
|
{ },
|
|
};
|
|
|
|
static struct platform_device wifi_rfkill_device = {
|
|
.name = "rfkill_gpio",
|
|
.id = -1,
|
|
};
|
|
|
|
static struct gpiod_lookup_table wifi_gpio_lookup = {
|
|
.dev_id = "rfkill_gpio",
|
|
.table = {
|
|
GPIO_LOOKUP("tegra-gpio", 25, "reset", 0),
|
|
GPIO_LOOKUP("tegra-gpio", 85, "shutdown", 0),
|
|
{ },
|
|
},
|
|
};
|
|
|
|
void __init tegra_paz00_wifikill_init(void)
|
|
{
|
|
platform_device_add_properties(&wifi_rfkill_device, wifi_rfkill_prop);
|
|
gpiod_add_lookup_table(&wifi_gpio_lookup);
|
|
platform_device_register(&wifi_rfkill_device);
|
|
}
|