From: Tony Lindgren <tony@atomide.com>
To: Mircea Gherzan <mgherzan@gmail.com>
Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] ARM: OMAP: WiLink platform data for the PandaBoard
Date: Tue, 6 Mar 2012 13:38:00 -0800 [thread overview]
Message-ID: <20120306213800.GZ12083@atomide.com> (raw)
In-Reply-To: <1330994797-17298-1-git-send-email-mgherzan@gmail.com>
Hi,
* Mircea Gherzan <mgherzan@gmail.com> [120305 16:15]:
> The "uim" deamon requires sysfs entries that are filled in using
> this platform data.
>
> Signed-off-by: Mircea Gherzan <mgherzan@gmail.com>
> ---
> arch/arm/mach-omap2/board-omap4panda.c | 23 +++++++++++++++++------
> include/linux/ti_wilink_st.h | 2 ++
> 2 files changed, 19 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
> index b1d74d6..37b437f 100644
> --- a/arch/arm/mach-omap2/board-omap4panda.c
> +++ b/arch/arm/mach-omap2/board-omap4panda.c
> @@ -27,6 +27,7 @@
> #include <linux/i2c/twl.h>
> #include <linux/regulator/machine.h>
> #include <linux/regulator/fixed.h>
> +#include <linux/ti_wilink_st.h>
> #include <linux/wl12xx.h>
>
> #include <mach/hardware.h>
> @@ -56,15 +57,29 @@
> #define HDMI_GPIO_HPD 63 /* Hotplug detect */
>
> /* wl127x BT, FM, GPS connectivity chip */
> -static int wl1271_gpios[] = {46, -1, -1};
> +static struct ti_st_plat_data wilink_platform_data = {
> + .nshutdown_gpio = 46,
> + .dev_name = "/dev/ttyO1",
> + .flow_cntrl = 1,
> + .baud_rate = 3000000,
> + .chip_enable = NULL,
> + .suspend = NULL,
> + .resume = NULL,
> +};
> +
Please use tabs above before .xxx instead of spaces.
> +static struct platform_device btwilink_device = {
> + .name = "btwilink",
> + .id = -1,
> +};
> +
> static struct gpio_led gpio_leds[] = {
> {
> .name = "pandaboard::status1",
> @@ -91,10 +106,6 @@ static struct platform_device leds_gpio = {
> },
> };
>
> -static struct platform_device btwilink_device = {
> - .name = "btwilink",
> - .id = -1,
> -};
This change is probably not needed, right?
Regards,
Tony
WARNING: multiple messages have this Message-ID (diff)
From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: OMAP: WiLink platform data for the PandaBoard
Date: Tue, 6 Mar 2012 13:38:00 -0800 [thread overview]
Message-ID: <20120306213800.GZ12083@atomide.com> (raw)
In-Reply-To: <1330994797-17298-1-git-send-email-mgherzan@gmail.com>
Hi,
* Mircea Gherzan <mgherzan@gmail.com> [120305 16:15]:
> The "uim" deamon requires sysfs entries that are filled in using
> this platform data.
>
> Signed-off-by: Mircea Gherzan <mgherzan@gmail.com>
> ---
> arch/arm/mach-omap2/board-omap4panda.c | 23 +++++++++++++++++------
> include/linux/ti_wilink_st.h | 2 ++
> 2 files changed, 19 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
> index b1d74d6..37b437f 100644
> --- a/arch/arm/mach-omap2/board-omap4panda.c
> +++ b/arch/arm/mach-omap2/board-omap4panda.c
> @@ -27,6 +27,7 @@
> #include <linux/i2c/twl.h>
> #include <linux/regulator/machine.h>
> #include <linux/regulator/fixed.h>
> +#include <linux/ti_wilink_st.h>
> #include <linux/wl12xx.h>
>
> #include <mach/hardware.h>
> @@ -56,15 +57,29 @@
> #define HDMI_GPIO_HPD 63 /* Hotplug detect */
>
> /* wl127x BT, FM, GPS connectivity chip */
> -static int wl1271_gpios[] = {46, -1, -1};
> +static struct ti_st_plat_data wilink_platform_data = {
> + .nshutdown_gpio = 46,
> + .dev_name = "/dev/ttyO1",
> + .flow_cntrl = 1,
> + .baud_rate = 3000000,
> + .chip_enable = NULL,
> + .suspend = NULL,
> + .resume = NULL,
> +};
> +
Please use tabs above before .xxx instead of spaces.
> +static struct platform_device btwilink_device = {
> + .name = "btwilink",
> + .id = -1,
> +};
> +
> static struct gpio_led gpio_leds[] = {
> {
> .name = "pandaboard::status1",
> @@ -91,10 +106,6 @@ static struct platform_device leds_gpio = {
> },
> };
>
> -static struct platform_device btwilink_device = {
> - .name = "btwilink",
> - .id = -1,
> -};
This change is probably not needed, right?
Regards,
Tony
next prev parent reply other threads:[~2012-03-06 21:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-06 0:46 [PATCH] ARM: OMAP: WiLink platform data for the PandaBoard Mircea Gherzan
2012-03-06 0:46 ` Mircea Gherzan
2012-03-06 21:38 ` Tony Lindgren [this message]
2012-03-06 21:38 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120306213800.GZ12083@atomide.com \
--to=tony@atomide.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=mgherzan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.