Re: [U-Boot] [RFC PATCH 1/3] sandbox: gpio: WIP add basic driver for simulating GPIOs

2011-10-28 Thread Simon Glass
Hi Mike, On Fri, Oct 28, 2011 at 5:42 PM, Mike Frysinger wrote: > ignoring the upgrade issues, i think this is useful.  only thing > "missing" is having the pin update state externally, but maybe i'm > crazy in thinking we need that.  it certainly could be done in a > follow up patch once your v2

Re: [U-Boot] [RFC PATCH 1/3] sandbox: gpio: WIP add basic driver for simulating GPIOs

2011-10-28 Thread Mike Frysinger
ignoring the upgrade issues, i think this is useful. only thing "missing" is having the pin update state externally, but maybe i'm crazy in thinking we need that. it certainly could be done in a follow up patch once your v2 of this patch gets updated, and once we actually have a proposed interfac

Re: [U-Boot] [RFC PATCH 1/3] sandbox: gpio: WIP add basic driver for simulating GPIOs

2011-10-28 Thread Simon Glass
Hi Mike, On Wed, Oct 26, 2011 at 11:14 PM, Mike Frysinger wrote: > On Wed, Oct 26, 2011 at 18:54, Simon Glass wrote: >> --- /dev/null >> +++ b/drivers/gpio/sandbox.c >> >> +#include >> +#include > > not used > >> +#include > > should be asm/gpio.h > >> +/* These functions make up what could be

Re: [U-Boot] [RFC PATCH 1/3] sandbox: gpio: WIP add basic driver for simulating GPIOs

2011-10-26 Thread Mike Frysinger
On Wed, Oct 26, 2011 at 18:54, Simon Glass wrote: > --- /dev/null > +++ b/drivers/gpio/sandbox.c > > +#include > +#include not used > +#include should be asm/gpio.h > +/* These functions make up what could be a public interface within U-Boot */ these are the public interface in u-boot. i w

[U-Boot] [RFC PATCH 1/3] sandbox: gpio: WIP add basic driver for simulating GPIOs

2011-10-26 Thread Simon Glass
This provides a way of simulating GPIOs by setting values which are seen by the normal gpio_get/set_value() calls. Signed-off-by: Simon Glass --- drivers/gpio/Makefile |1 + drivers/gpio/sandbox.c | 213 include/sandbox_gpio.h | 50 +++