Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-23 Thread David Brownell
On Monday 23 April 2007, Paul Sokolovsky wrote: > Hello David, > > Thursday, April 19, 2007, 5:22:44 AM, you wrote: > > >> >> > So, talking about what an (optional) implementation framework might > >> >> > look like (and which could handle the SOC, FPGA, I2C, and MFD cases > >> >> > I've looked

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-23 Thread Paul Sokolovsky
Hello David, Thursday, April 19, 2007, 5:22:44 AM, you wrote: >> >> > So, talking about what an (optional) implementation framework might >> >> > look like (and which could handle the SOC, FPGA, I2C, and MFD cases >> >> > I've looked at): >> >> > See patches in following messages ... a

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-23 Thread Paul Sokolovsky
Hello David, Thursday, April 19, 2007, 5:22:44 AM, you wrote: So, talking about what an (optional) implementation framework might look like (and which could handle the SOC, FPGA, I2C, and MFD cases I've looked at): See patches in following messages ... a preliminary gpio_chip core

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-23 Thread David Brownell
On Monday 23 April 2007, Paul Sokolovsky wrote: Hello David, Thursday, April 19, 2007, 5:22:44 AM, you wrote: So, talking about what an (optional) implementation framework might look like (and which could handle the SOC, FPGA, I2C, and MFD cases I've looked at): See patches

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-18 Thread David Brownell
> >> > So, talking about what an (optional) implementation framework might > >> > look like (and which could handle the SOC, FPGA, I2C, and MFD cases > >> > I've looked at): > > > See patches in following messages ... a preliminary "gpio_chip" core > > for such a framework, plus example support

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-18 Thread David Brownell
So, talking about what an (optional) implementation framework might look like (and which could handle the SOC, FPGA, I2C, and MFD cases I've looked at): See patches in following messages ... a preliminary gpio_chip core for such a framework, plus example support for one SOC family's

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-17 Thread Paul Sokolovsky
Hello David, Sunday, April 15, 2007, 10:47:57 PM, you wrote: > On Thursday 12 April 2007 6:57 am, Paul Sokolovsky wrote: >> Wednesday, April 11, 2007, 7:52:20 AM, you wrote: >> > So, talking about what an (optional) implementation framework might >> > look like (and which could handle the SOC,

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-17 Thread Paul Sokolovsky
Hello David, Sunday, April 15, 2007, 10:47:57 PM, you wrote: On Thursday 12 April 2007 6:57 am, Paul Sokolovsky wrote: Wednesday, April 11, 2007, 7:52:20 AM, you wrote: So, talking about what an (optional) implementation framework might look like (and which could handle the SOC, FPGA,

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-15 Thread David Brownell
To merge, this would be split apart ... what's interesting here is the way the new leds-gpio driver can be made to talk to leds that sit across an I2C link. == CUT HERE This presumes various patches updating: - LED framework to support generic GPIOs (in MM and LED queue) - LED

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-15 Thread David Brownell
Makes OMAP use the infrastructure in the preceding patch; slightly slows down the code, because it adds an indirect function call and uses a non-table lookup, but GPIOs aren't accessed on critical paths. === CUT HERE Update OMAP to use the new GPIO implementation framework. This is

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-15 Thread David Brownell
This patch shows some almost-mergeable code matching $SUBJECT. CUT HERE Provide some implementation infrastructure that platforms may choose to use when implementing the GPIO programming interface. As previously discussed on LKML, this can be very desirable on some platforms --

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-15 Thread David Brownell
On Thursday 12 April 2007 6:57 am, Paul Sokolovsky wrote: > Wednesday, April 11, 2007, 7:52:20 AM, you wrote: > > So, talking about what an (optional) implementation framework might > > look like (and which could handle the SOC, FPGA, I2C, and MFD cases > > I've looked at): See patches in

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-15 Thread David Brownell
On Thursday 12 April 2007 6:57 am, Paul Sokolovsky wrote: Wednesday, April 11, 2007, 7:52:20 AM, you wrote: So, talking about what an (optional) implementation framework might look like (and which could handle the SOC, FPGA, I2C, and MFD cases I've looked at): See patches in following

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-15 Thread David Brownell
To merge, this would be split apart ... what's interesting here is the way the new leds-gpio driver can be made to talk to leds that sit across an I2C link. == CUT HERE This presumes various patches updating: - LED framework to support generic GPIOs (in MM and LED queue) - LED

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-15 Thread David Brownell
Makes OMAP use the infrastructure in the preceding patch; slightly slows down the code, because it adds an indirect function call and uses a non-table lookup, but GPIOs aren't accessed on critical paths. === CUT HERE Update OMAP to use the new GPIO implementation framework. This is

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-15 Thread David Brownell
This patch shows some almost-mergeable code matching $SUBJECT. CUT HERE Provide some implementation infrastructure that platforms may choose to use when implementing the GPIO programming interface. As previously discussed on LKML, this can be very desirable on some platforms --

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-12 Thread Paul Sokolovsky
Hello David, Wednesday, April 11, 2007, 7:52:20 AM, you wrote: > On Tuesday 10 April 2007 4:11 pm, Paul Sokolovsky wrote: >> >> > /* defined by the platform using array, if/else/..., IDR, or >> > whatever */ >> > struct gpio_yyy *gpio_to_yyy(unsigned gpio); >> >>I assume

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-12 Thread Paul Sokolovsky
Hello David, Wednesday, April 11, 2007, 7:52:20 AM, you wrote: On Tuesday 10 April 2007 4:11 pm, Paul Sokolovsky wrote: /* defined by the platform using array, if/else/..., IDR, or whatever */ struct gpio_yyy *gpio_to_yyy(unsigned gpio); I assume by platform you

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-10 Thread David Brownell
On Tuesday 10 April 2007 4:11 pm, Paul Sokolovsky wrote: > > > /* defined by the platform using array, if/else/..., IDR, or > > whatever */ > > struct gpio_yyy *gpio_to_yyy(unsigned gpio); > >I assume by "platform" you mean CPU architecture. Nope. ARM (v4, v5, v6, etc) is

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-10 Thread Paul Sokolovsky
Hello David, Monday, April 9, 2007, 11:22:25 PM, you wrote: > On Monday 09 April 2007 10:18 am, Paul Sokolovsky wrote: >> > Nobody who really wants to have such an implementation framework has yet >> > ponied up and done the work to make one. >> >> Well, sorry if it wasn't made clear, but we

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-10 Thread Paul Sokolovsky
Hello David, Monday, April 9, 2007, 11:22:25 PM, you wrote: On Monday 09 April 2007 10:18 am, Paul Sokolovsky wrote: Nobody who really wants to have such an implementation framework has yet ponied up and done the work to make one. Well, sorry if it wasn't made clear, but we

Re: is there any generic GPIO chip framework like IRQ chips?

2007-04-10 Thread David Brownell
On Tuesday 10 April 2007 4:11 pm, Paul Sokolovsky wrote: /* defined by the platform using array, if/else/..., IDR, or whatever */ struct gpio_yyy *gpio_to_yyy(unsigned gpio); I assume by platform you mean CPU architecture. Nope. ARM (v4, v5, v6, etc) is a CPU