diff mbox

[6/7] ARM: OMAP2+: omap2plus_defconfig: Enable leds-gpio driver

Message ID 1353481163-29462-7-git-send-email-anilkumar@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

AnilKumar, Chimata Nov. 21, 2012, 6:59 a.m. UTC
AM335X-EVMSK and AM335X-BONE devices have gpio controlled user leds,
one has to manually enable this support to use user leds. So this
patch enables gpio-leds driver in omap2plus_defconfig. Also enables
TRIGGER_TIMER and TRIGGER_HEARTBEAT.

Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
---
 arch/arm/configs/omap2plus_defconfig |    5 +++++
 1 file changed, 5 insertions(+)

Comments

Javier Martinez Canillas Nov. 26, 2012, 8:29 a.m. UTC | #1
On Wed, Nov 21, 2012 at 7:59 AM, AnilKumar Ch <anilkumar@ti.com> wrote:
> AM335X-EVMSK and AM335X-BONE devices have gpio controlled user leds,
> one has to manually enable this support to use user leds. So this
> patch enables gpio-leds driver in omap2plus_defconfig. Also enables
> TRIGGER_TIMER and TRIGGER_HEARTBEAT.
>
> Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
> ---
>  arch/arm/configs/omap2plus_defconfig |    5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
> index 133f04a..5e1a763 100644
> --- a/arch/arm/configs/omap2plus_defconfig
> +++ b/arch/arm/configs/omap2plus_defconfig
> @@ -202,6 +202,11 @@ CONFIG_MMC_UNSAFE_RESUME=y
>  CONFIG_SDIO_UART=y
>  CONFIG_MMC_OMAP=y
>  CONFIG_MMC_OMAP_HS=y
> +CONFIG_NEW_LEDS=y
> +CONFIG_LEDS_GPIO=y
> +CONFIG_LEDS_TRIGGERS=y
> +CONFIG_LEDS_TRIGGER_TIMER=y
> +CONFIG_LEDS_TRIGGER_HEARTBEAT=y
>  CONFIG_RTC_CLASS=y
>  CONFIG_RTC_DRV_OMAP=y
>  CONFIG_RTC_DRV_TWL92330=y
> --
> 1.7.9.5
>

Hi AnilKumar,

Your patch looks good to me but I would enable
CONFIG_LEDS_TRIGGER_DEFAULT_ON too
since this seems to be a very popular trigger used on many boards.

But this could be made on a follow up patch too, so is your call.

Best regards,
Javier
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
AnilKumar, Chimata Nov. 26, 2012, 9:17 a.m. UTC | #2
On Mon, Nov 26, 2012 at 13:59:24, Javier Martinez Canillas wrote:
> On Wed, Nov 21, 2012 at 7:59 AM, AnilKumar Ch <anilkumar@ti.com> wrote:
> > AM335X-EVMSK and AM335X-BONE devices have gpio controlled user leds,
> > one has to manually enable this support to use user leds. So this
> > patch enables gpio-leds driver in omap2plus_defconfig. Also enables
> > TRIGGER_TIMER and TRIGGER_HEARTBEAT.
> >
> > Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
> > ---
> >  arch/arm/configs/omap2plus_defconfig |    5 +++++
> >  1 file changed, 5 insertions(+)
> >
> > diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
> > index 133f04a..5e1a763 100644
> > --- a/arch/arm/configs/omap2plus_defconfig
> > +++ b/arch/arm/configs/omap2plus_defconfig
> > @@ -202,6 +202,11 @@ CONFIG_MMC_UNSAFE_RESUME=y
> >  CONFIG_SDIO_UART=y
> >  CONFIG_MMC_OMAP=y
> >  CONFIG_MMC_OMAP_HS=y
> > +CONFIG_NEW_LEDS=y
> > +CONFIG_LEDS_GPIO=y
> > +CONFIG_LEDS_TRIGGERS=y
> > +CONFIG_LEDS_TRIGGER_TIMER=y
> > +CONFIG_LEDS_TRIGGER_HEARTBEAT=y
> >  CONFIG_RTC_CLASS=y
> >  CONFIG_RTC_DRV_OMAP=y
> >  CONFIG_RTC_DRV_TWL92330=y
> > --
> > 1.7.9.5
> >
> 
> Hi AnilKumar,
> 
> Your patch looks good to me but I would enable
> CONFIG_LEDS_TRIGGER_DEFAULT_ON too
> since this seems to be a very popular trigger used on many boards.
> 
> But this could be made on a follow up patch too, so is your call.

I will submit v2 (with this change) in few days. I am waiting
for review comments on other patches in this series.

Thanks
AnilKumar
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
index 133f04a..5e1a763 100644
--- a/arch/arm/configs/omap2plus_defconfig
+++ b/arch/arm/configs/omap2plus_defconfig
@@ -202,6 +202,11 @@  CONFIG_MMC_UNSAFE_RESUME=y
 CONFIG_SDIO_UART=y
 CONFIG_MMC_OMAP=y
 CONFIG_MMC_OMAP_HS=y
+CONFIG_NEW_LEDS=y
+CONFIG_LEDS_GPIO=y
+CONFIG_LEDS_TRIGGERS=y
+CONFIG_LEDS_TRIGGER_TIMER=y
+CONFIG_LEDS_TRIGGER_HEARTBEAT=y
 CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_OMAP=y
 CONFIG_RTC_DRV_TWL92330=y