25 Sep, 2014

1 commit


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

    Simon Glass
     

28 Jul, 2014

1 commit


23 Jul, 2014

1 commit


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

    Ian Campbell
     

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

    Axel Lin
     

21 Jun, 2014

2 commits


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

    Heiko Schocher
     
  • 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

    Wu, Josh
     

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

    Stephen 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 gpa00

    Signed-off-by: Leela Krishna Amudala
    Signed-off-by: Rajeshwari Shinde
    Signed-off-by: Akshay Saraswat
    Acked-by: Przemyslaw Marczak
    Signed-off-by: Minkyu Kang

    Akshay Saraswat
     

05 Mar, 2014

3 commits

  • Convert sandbox over to use driver model GPIOs.

    Signed-off-by: Simon Glass

    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

    Simon Glass
     
  • Copied from Linux sources "include/linux/sizes.h" commit
    413541dd66d51f791a0b169d9b9014e4f56be13c

    Signed-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

    Alexey Brodkin
     

23 Feb, 2014

1 commit


03 Feb, 2014

1 commit


06 Jan, 2014

1 commit


09 Dec, 2013

1 commit


13 Nov, 2013

1 commit


08 Nov, 2013

1 commit


04 Nov, 2013

2 commits


01 Nov, 2013

1 commit


04 Sep, 2013

1 commit


22 Aug, 2013

3 commits


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

    Wolfgang Denk
     

19 Aug, 2013

1 commit


17 Aug, 2013

1 commit


31 Jul, 2013

2 commits


30 Jul, 2013

1 commit


24 Jul, 2013

2 commits


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

    Axel Lin