How do I modify the kernel config?  Is there a .config file somewhere that I just turn those two options to "=N"?

Also, is this specific to one of the carrier boards (summit, tobi, etc) or it would also apply to a custom carrier board developed in house?

On Tue, Nov 22, 2011 at 8:30 AM, Scott Ellis <scott@jumpnowtek.com> wrote:
gpio 14 is button 1
and
gpio 21 is the red led

See your kernel arch/arm/mach-omap2/board-overo.c for details.

Turning these options off in your kernel config and rebuilding should
fix it.

CONFIG_LEDS_GPIO
CONFIG_KEYBOARD_GPIO

Either that or selectively commenting the lines in board-overo.c you
don't want, generating a patch and rebuilding the kernel will work.

I'm looking at a 2.6.36 kernel, but I think later gumstix kernels have
similar board-overo.c code.

On Tue, 2011-11-22 at 07:41 -0500, coderdrone@gmail.com wrote:
> I finished up a patch in u-boot to enable some GPIOs, which seems to
> be working fine for GPIOs used as inputs.  However, outputs don't seem
> to be working.  I thought GPIOs get set to "out" if the InputEnable
> bit is set to zero in overo.h.  One for Input, zero for output.
>
> Also, I'm having difficulty getting GPIOs 14 and 21 configured as
> output.  The kernel won't even let me export them.  I'm also trying to
> use devmem2 as an alternative way but not much luck there.  Does the
> kernel use 14 and 21 for other purposes?
>
> On Mon, Nov 21, 2011 at 11:17 AM, <coderdrone@gmail.com> wrote:
>         That makes more sense now.  In the TRM, I was looking at the
>         "Register Name" column instead of the "mode 0" column to get
>         the pad names.  So I was confused as to why GPMC_A3, A5, etc
>         were not there.
>
>         I'll pass the value that's listed in the "mode 0" column to
>         CP() from now on.
>
>         Thanks for clearing that up.
>
>
>
>         On Mon, Nov 21, 2011 at 9:36 AM, Scott Ellis
>         <scott@jumpnowtek.com> wrote:
>                 The constants you pass to CP() are defined in
>                 include/asm/arch/mux.h
>                 They refer to the MODE 0 pad function.
>
>                 For your example (from mux.h)
>                 ...
>                 #define CONTROL_PADCONF_GPMC_A3         0x007E
>                 #define CONTROL_PADCONF_GPMC_A4         0x0080
>                 #define CONTROL_PADCONF_GPMC_A5         0x0082
>                 #define CONTROL_PADCONF_GPMC_A6         0x0084
>                 ...
>
>                 You want GPMC_A5 as the arg to CP() to configure that
>                 pad for GPIO_38.
>
>                 The 32-bit  mux registers can be accessed at 16 bit
>                 offsets so it all
>                 works.
>
>
>
>                 On Mon, 2011-11-21 at 08:26 -0500,
>                 coderdrone@gmail.com wrote:
>                 > Hello,
>                 >
>                 > It's been a while since I've attempted to change the
>                 pin mux
>                 > configuration of GPIOs on the Gumstix Overo board.
>                  I am currently
>                 > attempting to patch overo.h with a few GPIO
>                 configurations.  This file
>                 > has lines similar to "MUX_VAL(CP(<name>),   (IEN |
>                 PTU | EN | M4)"
>                 > where <name> is one of the register names from the
>                 OMAP35x TRM Table
>                 > 7-4 without the "CONTROL_PADCONF_" part.
>                 >
>                 > I notice each of these PADCONF register entries in
>                 the table has
>                 > duplicates for each register, since each register is
>                 used for two
>                 > separate pads, or GPIOs.  I wanted to enable GPIO
>                 38, which would be
>                 > GPMC_A4.  However GPMC_A4 is also GPIO 37 according
>                 to the table.  How
>                 > do I specify which GPIO I'm trying to reference?
>                 >
>                 > Which GPIO will get enabled with
>                 MUX_VAL(CP(GPMC_A4),     ( IEN | PTU
>                 > | EN | M4)?  If it's GPIO 37 how do I specify GPIO
>                 38?
>                 >
>                 > Thank you for your time,
>                 >
>                 > Wayne
>
>                 >
>                 ------------------------------------------------------------------------------
>                 > All the data continuously generated in your IT
>                 infrastructure
>                 > contains a definitive record of customers,
>                 application performance,
>                 > security threats, fraudulent activity, and more.
>                 Splunk takes this
>                 > data and makes sense of it. IT sense. And common
>                 sense.
>                 > http://p.sf.net/sfu/splunk-novd2d
>                 > _______________________________________________
>                 gumstix-users mailing list
>                 gumstix-users@lists.sourceforge.net
>                 https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>
>
>                 ------------------------------------------------------------------------------
>                 All the data continuously generated in your IT
>                 infrastructure
>                 contains a definitive record of customers, application
>                 performance,
>                 security threats, fraudulent activity, and more.
>                 Splunk takes this
>                 data and makes sense of it. IT sense. And common
>                 sense.
>                 http://p.sf.net/sfu/splunk-novd2d
>                 _______________________________________________
>                 gumstix-users mailing list
>                 gumstix-users@lists.sourceforge.net
>                 https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________ gumstix-users mailing list gumstix-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gumstix-users



------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users