20 Feb, 2019
2 commits
-
Allow the 'gpio' command to match GPIO bank names regardless of the case
of each. While these are generally in upper case, it is useful to be able
to provide lower case with the command.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
At present the gpio command only shows GPIOs which are marked as in use.
This makes sense with 'gpio status' since we already have the '-a' flag
to indicate that all GPIOs should be shown. But when a particular GPIO is
requested, it seems better to always display it. At present the request is
simply ignored.For example if GPIO a10 is not in use, then:
> gpio status a10
shows nothing, not even the function being used for that GPIO. With this
change, it shows the pin status:> gpio status a10
a10: input: 0 [ ]Add an extra parameter for this to avoid changing the existing flag
parameter.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Bin Meng
[bmeng: correct the 'gpio' command in the commit message]
Signed-off-by: Bin Meng
01 Feb, 2019
1 commit
-
At present this file uses GPIO_OUTPUT and GPIO_INPUT as its sub-command
values. These are pretty generic names. Add a 'C' suffix to avoid possible
conflicts.Signed-off-by: Simon Glass
Reviewed-by: Philipp Tomsich
16 Jan, 2019
1 commit
-
gpio is defined as unsigned int. So we should use %u when calling printf().
Signed-off-by: Heinrich Schuchardt
Reviewed-by: Simon Glass
18 Mar, 2016
1 commit
-
Some controllers do not allow the output value to be read. Detect this and
report the error in that case.Signed-off-by: Simon Glass
16 Feb, 2016
1 commit
-
This is broken - we need to look at the first two characters to distinguish
'gpio status' from 'gpio set'.Fixes: 0ffe6ab5 (gpio: Allow 's' as an abbreviation for 'status')
Reported-by: Soeren Moch
Signed-off-by: Simon Glass
Tested-by: Soeren Moch
Reviewed-by: Bin Meng
Tested-by: Hannes Schmelzer
25 Jan, 2016
1 commit
-
Now that they are in their own directory, we can remove this prefix.
This makes it easier to find a file since the prefix does not get in the
way.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Reviewed-by: Heiko Schocher
Acked-by: Stefan Roese
Acked-by: Przemyslaw Marczak