[U-Boot] [PATCH v4 3/3] mx23_olinuxino: Add support for status LED

Otavio Salvador otavio at ossystems.com.br
Mon Jan 28 20:12:24 CET 2013


On Mon, Jan 28, 2013 at 4:59 PM, Fabio Estevam <festevam at gmail.com> wrote:
> On Mon, Jan 28, 2013 at 1:51 PM, Otavio Salvador
> <otavio at ossystems.com.br> wrote:
>
>>  /*
>> + * Status LED
>> + */
>> +#define        CONFIG_STATUS_LED
>> +#define        CONFIG_GPIO_LED
>> +#define        CONFIG_BOARD_SPECIFIC_LED
>> +#define        STATUS_LED_BOOT 0
>> +#define        STATUS_LED_BIT  MX23_PAD_SSP1_DETECT__GPIO_2_1
>
> Is this really correct?
>
> #define MX23_PAD_SSP1_DETECT__GPIO_2_1          MXS_IOMUX_PAD_NAKED(2,  1,
> PAD_MUXSEL_GPIO)
>
> Does the LED API need this symbol?
>
> I thought that you would only need to setup this pin as GPIO and then
> define something like:
> +#define        STATUS_LED_BIT 1

Maybe it can be done in a better way ... but I failed to figure the
GPIO number to use. Any hint?

--
Otavio Salvador                             O.S. Systems
E-mail: otavio at ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br


More information about the U-Boot mailing list