diff mbox

[U-Boot,v2,4/8] sandbox: Enable GPIO driver

Message ID 1326242752-9981-4-git-send-email-sjg@chromium.org
State Superseded, archived
Delegated to: Mike Frysinger
Headers show

Commit Message

Simon Glass Jan. 11, 2012, 12:45 a.m. UTC
Enable the new GPIO driver for sandbox.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/configs/sandbox.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Comments

Mike Frysinger Jan. 20, 2012, 6:59 p.m. UTC | #1
On Tuesday 10 January 2012 19:45:48 Simon Glass wrote:
> --- a/include/configs/sandbox.h
> +++ b/include/configs/sandbox.h
> 
> +#define CONFIG_SANDBOX_GPIO_COUNT	224

do we really need 224 examples GPIOs ?  can't we do with like 20 ?
-mike
Simon Glass Jan. 23, 2012, 6:21 a.m. UTC | #2
Hi Mike,

On Fri, Jan 20, 2012 at 10:59 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Tuesday 10 January 2012 19:45:48 Simon Glass wrote:
>> --- a/include/configs/sandbox.h
>> +++ b/include/configs/sandbox.h
>>
>> +#define CONFIG_SANDBOX_GPIO_COUNT    224
>
> do we really need 224 examples GPIOs ?  can't we do with like 20 ?

Yes, should be plenty to cover the zero we need right now :-)

> -mike

Regards,
Simon
diff mbox

Patch

diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index 6790216..e7e97cc 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -34,6 +34,10 @@ 
 
 #define CONFIG_SYS_VSNPRINTF
 
+#define CONFIG_CMD_GPIO
+#define CONFIG_SANDBOX_GPIO
+#define CONFIG_SANDBOX_GPIO_COUNT	224
+
 /*
  * Size of malloc() pool, although we don't actually use this yet.
  */