-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wl12xx/wlcore: spin out the wl12xx probe from wlcore to a new wl12xx
Create a new small wl12xx module that only contains the probe functions and depends entirely on wlcore otherwise. Signed-off-by: Luciano Coelho <coelho@ti.com>
- Loading branch information
Luciano Coelho
committed
Apr 12, 2012
1 parent
7b3115f
commit b2ba99f
Showing
9 changed files
with
130 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
obj-$(CONFIG_WL12XX) += wlcore/ | ||
obj-$(CONFIG_WLCORE) += wlcore/ | ||
obj-$(CONFIG_WL12XX) += wl12xx/ | ||
obj-$(CONFIG_WL12XX_PLATFORM_DATA) += wlcore/ | ||
obj-$(CONFIG_WL1251) += wl1251/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
config WL12XX | ||
tristate "TI wl12xx support" | ||
select WLCORE | ||
---help--- | ||
This module adds support for wireless adapters based on TI wl1271, | ||
wl1273, wl1281 and wl1283 chipsets. This module does *not* include | ||
support for wl1251. For wl1251 support, use the separate homonymous | ||
driver instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
wl12xx-objs = main.o | ||
|
||
obj-$(CONFIG_WL12XX) += wl12xx.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* This file is part of wl1271 | ||
* | ||
* Copyright (C) 2008-2010 Nokia Corporation | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* version 2 as published by the Free Software Foundation. | ||
* | ||
* 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. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
* 02110-1301 USA | ||
* | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include <linux/platform_device.h> | ||
|
||
#include "../wlcore/wlcore.h" | ||
|
||
static const struct platform_device_id wl12xx_id_table[] __devinitconst = { | ||
{ "wl12xx", 0 }, | ||
{ } /* Terminating Entry */ | ||
}; | ||
MODULE_DEVICE_TABLE(platform, wl12xx_id_table); | ||
|
||
static struct platform_driver wl12xx_driver = { | ||
.probe = wlcore_probe, | ||
.remove = __devexit_p(wlcore_remove), | ||
.id_table = wl12xx_id_table, | ||
.driver = { | ||
.name = "wl12xx_driver", | ||
.owner = THIS_MODULE, | ||
} | ||
}; | ||
|
||
static int __init wl12xx_init(void) | ||
{ | ||
return platform_driver_register(&wl12xx_driver); | ||
} | ||
module_init(wl12xx_init); | ||
|
||
static void __exit wl12xx_exit(void) | ||
{ | ||
platform_driver_unregister(&wl12xx_driver); | ||
} | ||
module_exit(wl12xx_exit); | ||
|
||
MODULE_LICENSE("GPL v2"); | ||
MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,41 @@ | ||
menuconfig WL12XX_MENU | ||
tristate "TI wl12xx driver support" | ||
depends on MAC80211 && EXPERIMENTAL | ||
---help--- | ||
This will enable TI wl12xx driver support for the following chips: | ||
wl1271, wl1273, wl1281 and wl1283. | ||
The drivers make use of the mac80211 stack. | ||
|
||
config WL12XX | ||
tristate "TI wl12xx support" | ||
depends on WL12XX_MENU && GENERIC_HARDIRQS | ||
config WLCORE | ||
tristate "TI wlcore support" | ||
depends on WL_TI && GENERIC_HARDIRQS | ||
depends on INET | ||
select FW_LOADER | ||
---help--- | ||
This module adds support for wireless adapters based on TI wl1271 and | ||
TI wl1273 chipsets. This module does *not* include support for wl1251. | ||
For wl1251 support, use the separate homonymous driver instead. | ||
This module contains the main code for TI WLAN chips. It abstracts | ||
hardware-specific differences among different chipset families. | ||
Each chipset family needs to implement its own lower-level module | ||
that will depend on this module for the common code. | ||
|
||
If you choose to build a module, it will be called wl12xx. Say N if | ||
If you choose to build a module, it will be called wlcore. Say N if | ||
unsure. | ||
|
||
config WL12XX_SPI | ||
tristate "TI wl12xx SPI support" | ||
depends on WL12XX && SPI_MASTER | ||
config WLCORE_SPI | ||
tristate "TI wlcore SPI support" | ||
depends on WLCORE && SPI_MASTER | ||
select CRC7 | ||
---help--- | ||
This module adds support for the SPI interface of adapters using | ||
TI wl12xx chipsets. Select this if your platform is using | ||
TI WLAN chipsets. Select this if your platform is using | ||
the SPI bus. | ||
|
||
If you choose to build a module, it'll be called wl12xx_spi. | ||
If you choose to build a module, it'll be called wlcore_spi. | ||
Say N if unsure. | ||
|
||
config WL12XX_SDIO | ||
tristate "TI wl12xx SDIO support" | ||
depends on WL12XX && MMC | ||
config WLCORE_SDIO | ||
tristate "TI wlcore SDIO support" | ||
depends on WLCORE && MMC | ||
---help--- | ||
This module adds support for the SDIO interface of adapters using | ||
TI wl12xx chipsets. Select this if your platform is using | ||
TI WLAN chipsets. Select this if your platform is using | ||
the SDIO bus. | ||
|
||
If you choose to build a module, it'll be called wl12xx_sdio. | ||
If you choose to build a module, it'll be called wlcore_sdio. | ||
Say N if unsure. | ||
|
||
config WL12XX_PLATFORM_DATA | ||
bool | ||
depends on WL12XX_SDIO != n || WL1251_SDIO != n | ||
depends on WLCORE_SDIO != n || WL1251_SDIO != n | ||
default y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* This file is part of wlcore | ||
* | ||
* Copyright (C) 2011 Texas Instruments Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* version 2 as published by the Free Software Foundation. | ||
* | ||
* 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. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
* 02110-1301 USA | ||
* | ||
*/ | ||
|
||
#ifndef __WLCORE_H__ | ||
#define __WLCORE_H__ | ||
|
||
int __devinit wlcore_probe(struct platform_device *pdev); | ||
int __devexit wlcore_remove(struct platform_device *pdev); | ||
|
||
#endif /* __WLCORE_H__ */ |