Acked-By: Henrik Nordstrom <hen...@henriknordstrom.net>

fre 2014-05-16 klockan 22:00 +0100 skrev Ian Campbell:
> This reverts commits d104fc0ee38a and af9f4057a591.
> 
> Henrik says in 
> https://groups.google.com/forum/#!msg/linux-sunxi/nSKH4IcTaX8/YBVQLMrzfKwJ:
> 
>     GPIO_OSCILLATE is a hack in our u-boot used for measuring PIO performance.
>     Should likely be removed.
> 
> This is one less thing to worry about for upstreaming, or at least removes
> something from the diff...
> 
> Signed-off-by: Ian Campbell <i...@hellion.org.uk>
> Cc: Henrik Nordstrom <hen...@henriknordstrom.net>
> ---
>  common/cmd_gpio.c | 10 ----------
>  1 file changed, 10 deletions(-)
> 
> diff --git a/common/cmd_gpio.c b/common/cmd_gpio.c
> index 0aa9ab0..778aa5f 100644
> --- a/common/cmd_gpio.c
> +++ b/common/cmd_gpio.c
> @@ -20,7 +20,6 @@ enum gpio_cmd {
>       GPIO_SET,
>       GPIO_CLEAR,
>       GPIO_TOGGLE,
> -     GPIO_OSCILLATE,
>  };
>  
>  #if defined(CONFIG_DM_GPIO) && !defined(gpio_status)
> @@ -139,7 +138,6 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, 
> char * const argv[])
>               case 's': sub_cmd = GPIO_SET;    break;
>               case 'c': sub_cmd = GPIO_CLEAR;  break;
>               case 't': sub_cmd = GPIO_TOGGLE; break;
> -             case 'o': sub_cmd = GPIO_OSCILLATE; break;
>               default:  goto show_usage;
>       }
>  
> @@ -170,14 +168,6 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, 
> char * const argv[])
>       if (sub_cmd == GPIO_INPUT) {
>               gpio_direction_input(gpio);
>               value = gpio_get_value(gpio);
> -     } else if (sub_cmd == GPIO_OSCILLATE) {
> -             int i;
> -             gpio_direction_output(gpio, 0);
> -             for (i = 0; i < 100000000; i++) {
> -                     gpio_set_value(gpio, i&1);
> -             }
> -             gpio_direction_input(gpio);
> -             value = 0;
>       } else {
>               switch (sub_cmd) {
>                       case GPIO_SET:    value = 1; break;


-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to