diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-05-02 16:05:44 -0600 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2012-06-20 12:37:42 -0600 |
commit | b64a02c6fa184405ac2de0ea048be2f342144a08 (patch) | |
tree | 710f1c477a67b63eac0399d4667b1d5fe9bdf82d /arch/arm/mach-tegra/board-dt-tegra20.c | |
parent | a12c0efc7a3f433377add0fa1fd0ed4836cc595e (diff) | |
download | lwn-b64a02c6fa184405ac2de0ea048be2f342144a08.tar.gz lwn-b64a02c6fa184405ac2de0ea048be2f342144a08.zip |
ARM: tegra: paz00: enable WiFi rfkill when booting from device tree
There currently aren't bindings for a WiFi rfkill button, and defining
a good binding is non-trivial. Manually register this "device" when
booting from device tree, in order to bring DT support to the same
feature level as board files, which will in turn allow board files to be
deprecated.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-dt-tegra20.c')
-rw-r--r-- | arch/arm/mach-tegra/board-dt-tegra20.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-dt-tegra20.c b/arch/arm/mach-tegra/board-dt-tegra20.c index 777138611c77..8b4e6e1f0f7b 100644 --- a/arch/arm/mach-tegra/board-dt-tegra20.c +++ b/arch/arm/mach-tegra/board-dt-tegra20.c @@ -126,6 +126,13 @@ static void __init harmony_init(void) } #endif +#ifdef CONFIG_MACH_PAZ00 +static void __init paz00_init(void) +{ + tegra_paz00_wifikill_init(); +} +#endif + static struct { char *machine; void (*init)(void); @@ -136,6 +143,9 @@ static struct { #ifdef CONFIG_MACH_HARMONY { "nvidia,harmony", harmony_init }, #endif +#ifdef CONFIG_MACH_PAZ00 + { "compal,paz00", paz00_init }, +#endif }; static void __init tegra_dt_init_late(void) |