[U-Boot] [PATCH V3 1/6] dm: gpio: add a default gpio xlate routine

Purna Chandra Mandal
2016-04-12T03:49:58Z

On 04/11/2016 11:01 PM, Eric Nelson wrote:

> Many drivers use a common form of offset + flags for device
> tree nodes. e.g.:
> <&gpio1 2 GPIO_ACTIVE_LOW>
>
> This patch adds a common implementation of this type of parsing
> and calls it when a gpio driver doesn't supply its' own xlate
> routine.
>
> This will allow removal of the driver-specific versions in a
> handful of drivers and simplify the addition of new drivers.
>
> Signed-off-by: Eric Nelson <eric@nelint.com>
> Acked-by: Stephen Warren <swarren@wwwdotorg.org>

Reviewed-by: Purna Chandra Mandal <purna.mandal@microchip.com>