[U-Boot] [RFC PATCH 1/3] at91: add new gpio pin macros

Jens Scharsig js_at_ng at scharsoft.de
Wed Oct 30 18:19:57 CET 2013


Am 30.10.2013 11:39, schrieb Andreas Bießmann:
> Hi Bo,
> 
> +Jens, he did the rewrite of the at91 gpio driver.
> 

> 
> I think this is a job for gpio_is_valid() then. How is this case handled
> in kernel?
> 
> Here are a few things to discuss. First of all I'd like to get some
> insights why the at91 gpio API was changed back in 2010. It was a plain
> number before and was changed to PORT + PIN as two separate parameters.
> Jens, could you please shed some light on this?
> 

Sorry, but I don't remember me why we do this. I think, it was a
compromise between number of changes and code size.

Regards

Jens







More information about the U-Boot mailing list