lkml.org 
[lkml]   [2015]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 0/4] gpio: pxa: integrate with pincontrol
Date
Linus Walleij <linus.walleij@linaro.org> writes:

>> - the GPDR (gpio direction register) shared access bothers me a bit
>
> How is it shared and between what users?
It's shared between the pin controller and the gpio controller.

The odd thing with the pxa architecture is that the GPDR bit selects between 2
different alternate functions, even when the pin is not a GPIO. Strange design,
isn't it ?

As a consequence, both the gpio driver and pinctrl have to modify it, for
different purposes :
- pinctrl will modify it to select a specific alternate function
- gpio driver will modify it when the pin is a GPIO, to modify its direction.

Cheers.

--
Robert


\
 
 \ /
  Last update: 2015-12-10 19:01    [W:0.228 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site