Re: [U-Boot] [PATCH] post: add gpio hotkey support

2011-07-26 Thread Wolfgang Denk
Dear Mike Frysinger, In message <1305046881-5818-1-git-send-email-vap...@gentoo.org> you wrote: > Now that we have the generic GPIO layer, we can easily provide a common > implementation for the post_hotkeys_pressed() function based on it. > > Signed-off-by: Mike Frysinger > --- > post/post.c |

Re: [U-Boot] [PATCH] post: add gpio hotkey support

2011-05-12 Thread Mike Frysinger
On Thursday, May 12, 2011 08:47:56 Sergei Shtylyov wrote: > On 11-05-2011 18:54, Mike Frysinger wrote: > >>>int __post_hotkeys_pressed(void) > >>>{ > >>> +#ifdef CONFIG_SYS_POST_HOTKEYS_GPIO > >>> + return ret; > >>> +#endif > >>> > >> You surely meant #else here? > >>> > >>>

Re: [U-Boot] [PATCH] post: add gpio hotkey support

2011-05-12 Thread Sergei Shtylyov
Hello. On 11-05-2011 18:54, Mike Frysinger wrote: >>> @@ -68,6 +72,23 @@ int post_init_f (void) >>>int __post_hotkeys_pressed(void) >>>{ >>> +#ifdef CONFIG_SYS_POST_HOTKEYS_GPIO >>> + int ret; >>> + unsigned gpio = CONFIG_SYS_POST_HOTKEYS_GPIO; >>> + >>> + ret = gpio_request(gpio, "

Re: [U-Boot] [PATCH] post: add gpio hotkey support

2011-05-11 Thread Mike Frysinger
On Wednesday, May 11, 2011 07:42:09 Sergei Shtylyov wrote: > On 10-05-2011 21:01, Mike Frysinger wrote: > > @@ -68,6 +72,23 @@ int post_init_f (void) > > int __post_hotkeys_pressed(void) > > { > > +#ifdef CONFIG_SYS_POST_HOTKEYS_GPIO > > + int ret; > > + unsigned gpio = CONFIG_SYS_POST_HOTK

Re: [U-Boot] [PATCH] post: add gpio hotkey support

2011-05-11 Thread Sergei Shtylyov
Hello. On 10-05-2011 21:01, Mike Frysinger wrote: > Now that we have the generic GPIO layer, we can easily provide a common > implementation for the post_hotkeys_pressed() function based on it. > Signed-off-by: Mike Frysinger > --- > post/post.c | 21 + > 1 files changed

[U-Boot] [PATCH] post: add gpio hotkey support

2011-05-10 Thread Mike Frysinger
Now that we have the generic GPIO layer, we can easily provide a common implementation for the post_hotkeys_pressed() function based on it. Signed-off-by: Mike Frysinger --- post/post.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/post/post.c b/po