25 Sep, 2014
1 commit
-
This would be useful to start moving various config options.
Signed-off-by: Masahiro Yamada
Acked-by: Simon Glass
Tested-by: Simon Glass
11 Sep, 2014
1 commit
-
This is an implementation of GPIOs for Tegra that uses driver model. It has
been tested on trimslice and also using the new iotrace feature.The implementation uses a top-level GPIO device (which has no actual GPIOS).
Under this all the banks are created as separate GPIO devices.The GPIOs are named as per the Tegra datasheet/header files: A0..A7, B0..B7,
..., Z0..Z7, AA0..AA7, etc.Since driver model is not yet available before relocation, or in SPL, a
special function is provided for seaboard's SPL code.Signed-off-by: Simon Glass
28 Jul, 2014
1 commit
23 Jul, 2014
1 commit
-
Driver model does not support SPL yet, so we should not use the GPIO
uclass for SPL.Signed-off-by: Simon Glass
19 Jul, 2014
1 commit
-
This patch enables CONFIG_CMD_GPIO for the Allwinner (sunxi) platform as well
as providing the common gpio API (gpio_request/free, direction in/out, get/set
etc).Signed-off-by: Chen-Yu Tsai
Signed-off-by: Hans de Goede
Signed-off-by: Ma Haijun
Signed-off-by: Oliver Schinagl
Signed-off-by: Ian Campbell
Cc: Henrik Nordström
Cc: Tom Cubie
Acked-by: Hans de Goede
05 Jul, 2014
1 commit
-
In current gpio_set_value() implementation, it always sets the gpio control bit
no matter the value argument is 0 or 1. Thus the GPIOs never set to low.
This patch fixes this bug.The address bus is used as a mask on read/write operations, so that independent
software drivers can set their GPIO bits without affecting any other pins in a
single write operation. Thus we don't need a read-modify-write to update the
register.Signed-off-by: Axel Lin
Acked-by: Stefan Roese
Reviewed-by: Vipin Kumar
Reviewed-by: Michael Trimarchi
21 Jun, 2014
2 commits
-
We want 'N0' and 'n0' to mean the same thing, so ensure that case is not
considered when naming GPIO banks.Signed-off-by: Simon Glass
-
It is best to avoid having any occurence of 'struct device' in driver
model, so rename to achieve this.Signed-off-by: Simon Glass
30 May, 2014
1 commit
27 May, 2014
2 commits
-
using UBI and DM together leads in compiler error, as
both define a "struct device", so rename "struct device"
in include/dm/device.h to "struct udevice", as we use
linux code (MTD/UBI/UBIFS some USB code,...) and cannot
change the linux "struct device"Signed-off-by: Heiko Schocher
Cc: Simon Glass
Cc: Marek Vasut -
We need check the NULL pointer as at91_pio_get_port() may return NULL.
Also print a error message when at91_pio_get_port() failed otherwise we
cannot notice the failure.Signed-off-by: Josh Wu
Signed-off-by: Andreas Bießmann
15 May, 2014
1 commit
14 May, 2014
1 commit
-
The HW-defined procedure for booting Tegra requires that some pins be
set up as GPIOs immediately at boot in order to avoid glitches on those
pins, when the pinmux is programmed. Add a feature to the GPIO driver
which executes a GPIO configuration table. Board files will use this to
implement the correct HW initialization procedure.Signed-off-by: Stephen Warren
Signed-off-by: Tom Warren
13 May, 2014
1 commit
-
This patch includes following changes :
* Adds gpio pin numbering support for EXYNOS SOCs.
To have consistent 0..n-1 GPIO numbering the banks are divided
into different parts where ever they have holes in them.* Rename GPIO definitions from GPIO_... to S5P_GPIO_...
These changes were done to enable cmd_gpio for EXYNOS and
cmd_gpio has GPIO_INPUT same as s5p_gpio driver and hence
getting a error during compilation.* Adds support for name to gpio conversion in s5p_gpio to enable
gpio command EXYNOS SoCs. Function has been added to asm/gpio.h
to decode the input gpio name to gpio number.
Example: SMDK5420 # gpio set gpa00Signed-off-by: Leela Krishna Amudala
Signed-off-by: Rajeshwari Shinde
Signed-off-by: Akshay Saraswat
Acked-by: Przemyslaw Marczak
Signed-off-by: Minkyu Kang
05 Mar, 2014
3 commits
-
Convert sandbox over to use driver model GPIOs.
Signed-off-by: Simon Glass
-
Add driver model support for GPIOs. Since existing GPIO drivers do not use
driver model, this feature must be enabled by CONFIG_DM_GPIO. After all
GPO drivers are converted over we can perhaps remove this config.Tests are provided for the sandbox implementation, and are a sufficient
sanity check for basic operation.The GPIO uclass understands the concept of named banks of GPIOs, with each
GPIO device providing a single bank. Within each bank the GPIOs are numbered
using an offset from 0 to n-1. For example a bank named 'b' with 20
offsets will provide GPIOs named b0 to b19.Anonymous GPIO banks are also supported, and are just numbered without any
prefix.Each time a GPIO driver is added to the uclass, the GPIOs are renumbered
accordinging, so there is always a global GPIO numbering order.Signed-off-by: Simon Glass
Signed-off-by: Marek Vasut
Signed-off-by: Pavel Herrmann
Signed-off-by: Viktor Křivák
Signed-off-by: Tomas Hlavacek -
Copied from Linux sources "include/linux/sizes.h" commit
413541dd66d51f791a0b169d9b9014e4f56be13cSigned-off-by: Alexey Brodkin
Cc: Vineet Gupta
Cc: Tom Rini
Cc: Stefan Roese
Cc: Albert Aribaud
Acked-by: Tom Rini
Acked-by: Stefan Roese
[trini: Add bcm Kona platforms to the patch]
Signed-off-by: Tom Rini
23 Feb, 2014
1 commit
-
Add support for the Kona GPIO controller found on Broadcom mobile SoCs.
Signed-off-by: Darwin Rambo
Reviewed-by: Steve Rae
Reviewed-by: Markus Mayer
Reviewed-by: Tim Kryger
03 Feb, 2014
1 commit
-
Old s5p gpio coding method was not clean and was not working properly
for all parts and banks. New method is clean and easy to extend.Gpio coding mask:
0x000000ff - pin number
0x00ffff00 - bank offset
0xff000000 - part numberSigned-off-by: Przemyslaw Marczak
Signed-off-by: Minkyu Kang
06 Jan, 2014
1 commit
-
Conflicts:
include/micrel.hThe conflict above was trivial, caused by four lines being
added in both branches with different whitepace.
09 Dec, 2013
1 commit
-
This patch define new names for GPIO pins on at91 devices. Follow up patches
will convert the whole infrastructure to use these new definitions.Signed-off-by: Andreas Bießmann
Tested-by: Bo Shen
13 Nov, 2013
1 commit
-
Setting the direction and an output value should be done by
1) set the desired output value,
2) switch to output.If this is done in the inverse order, there can be a glitch on
the GPIO line.This patch fixes this by using the order as described above.
Signed-off-by: Michael Heimpold
Acked-by: Stefano Babic
08 Nov, 2013
1 commit
-
Signed-off-by: Viktar Palstsiuk
04 Nov, 2013
2 commits
-
Easy to resolve conflict on the GPIO change.
Conflicts:
arch/blackfin/cpu/MakefileSigned-off-by: Tom Rini
-
The gpio register mappings are different among blackfin processors.
Signed-off-by: Steven Miao
Signed-off-by: Sonic Zhang
01 Nov, 2013
1 commit
-
Signed-off-by: Masahiro Yamada
04 Sep, 2013
1 commit
22 Aug, 2013
3 commits
-
Signed-off-by: Bo Shen
Acked-by: Jens Scharsig
Signed-off-by: Andreas Bießmann -
add gpio common API support for gpio command
Signed-off-by: Bo Shen
[fix unnecessary cast]
Signed-off-by: Andreas Bießmann -
fix code to use pointer for pio port as the warning message suggested
remove the warning messageSigned-off-by: Bo Shen
Signed-off-by: Andreas Bießmann
20 Aug, 2013
1 commit
-
Unlike the other patches in this series so far, this commit fixes a
ambiguity in the license terms for some OMAP files: the code was
originally derived from the Linux kernel sources, where it was clearly
marked as GPL-2.0 (i. e. without the "or later" part), but the U-Boot
version had a GPL-2.0+ file header added, apparently without
permission / relicensing from the original authors of the code.Insert a GPL-2.0 SPDX-License-Identifier to fix this.
Signed-off-by: Wolfgang Denk
cc: Tom Rix
Cc: Tom Rini
Cc: Albert Aribaud
Acked-by: Tom Rini
19 Aug, 2013
1 commit
-
Fixup an easy conflict over adding the clk_get prototype and USB_OTG
defines for am33xx having moved.Conflicts:
arch/arm/include/asm/arch-am33xx/hardware.hSigned-off-by: Tom Rini
17 Aug, 2013
1 commit
-
Signed-off-by: Axel Lin
Reviewed-by: Thierry Reding
Acked-by: Marek Vasut
31 Jul, 2013
2 commits
-
Conflicts:
board/freescale/mx6qsabrelite/Makefile
board/freescale/mx6qsabrelite/mx6qsabrelite.c
include/configs/mx6qsabrelite.hSigned-off-by: Stefano Babic
-
In special_gpio_free(), call unreserve() rather than reserve() to release gpio.
Signed-off-by: Axel Lin
Signed-off-by: Sonic Zhang
30 Jul, 2013
1 commit
-
Add the tca642x gpio expander driver
Datasheet:
http://www.ti.com/product/tca6424aSigned-off-by: Dan Murphy
24 Jul, 2013
2 commits
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini -
Setting the direction and an output value should be done by
First, set the desired output value.
Then, switch to output.
If this is done in the inverse order, like at the moment,
there can be a glitch on the GPIO line while switching first
the old output value and aftwards the new one.Fix this by inverting the order of the direction/set_value
calls.Signed-off-by: Dirk Behme
Acked-by: Stefano Babic
11 Jul, 2013
1 commit
02 Jul, 2013
1 commit
-
The omap_gpio driver is used by AM33XX, OMAP3/4, OMAP54XX and DRA7XX SoCs.
These SoCs have different gpio count but currently omap_gpio driver uses hard
coded 192 which is wrong.This patch fixes this issue by:
1. Move define of OMAP_MAX_GPIO to all arch/arm/include/asm/arch-omap*/gpio.h.
2. Update gpio bank settings and enable GPIO modules 7 & 8 clocks for OMAP5.Thanks for Lubomir Popov to provide valuable comments to fix this issue.
Signed-off-by: Axel Lin
Tested-by: Lubomir Popov
Acked-by: Heiko Schocher