lkml.org 
[lkml]   [2014]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] pinctrl: bcm2835: Start GPIO numeration at zero
On 10/27/2014 04:09 PM, Matthias Klein wrote:
> Numerate the GPIOs from 0..53 instead of 202..255.

What's the motivation for this? The GPIO IDs should all come from DT,
which encodes everything as an ID relative to a particular controllers,
and hence the actual value of the base address should be irrelevant.

> diff --git a/drivers/pinctrl/pinctrl-bcm2835.c b/drivers/pinctrl/pinctrl-bcm2835.c

> @@ -382,7 +382,7 @@ static struct gpio_chip bcm2835_gpio_chip = {

> - .base = -1,
> + .base = 0,



\
 
 \ /
  Last update: 2014-10-28 00:21    [W:0.089 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site