1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/mach-tegra/board-paz00.c
5 * Copyright (C) 2011 Marc Dietrich <marvin24@gmx.de>
7 * Based on board-harmony.c
8 * Copyright (C) 2010 Google, Inc.
11 #include <linux/property.h>
12 #include <linux/gpio/machine.h>
13 #include <linux/platform_device.h>
17 static struct property_entry wifi_rfkill_prop
[] __initdata
= {
18 PROPERTY_ENTRY_STRING("name", "wifi_rfkill"),
19 PROPERTY_ENTRY_STRING("type", "wlan"),
23 static struct platform_device wifi_rfkill_device
= {
24 .name
= "rfkill_gpio",
28 static struct gpiod_lookup_table wifi_gpio_lookup
= {
29 .dev_id
= "rfkill_gpio",
31 GPIO_LOOKUP("tegra-gpio", 25, "reset", 0),
32 GPIO_LOOKUP("tegra-gpio", 85, "shutdown", 0),
37 void __init
tegra_paz00_wifikill_init(void)
39 platform_device_add_properties(&wifi_rfkill_device
, wifi_rfkill_prop
);
40 gpiod_add_lookup_table(&wifi_gpio_lookup
);
41 platform_device_register(&wifi_rfkill_device
);