20 May, 2011

2 commits

  • Allow GPIO_BASIC_MMIO_CORE to be used to provide an accessor library
    for implementing GPIO drivers whilst abstracting the register access
    detail. Based on a patch from Anton Vorontsov[1] and adapted to allow
    bgpio_chip to be embedded in another structure.

    Changes since v1:
    - Register the gpio_chip in the platform device probe

    1. https://lkml.org/lkml/2011/4/19/401

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Jamie Iles
    Signed-off-by: Grant Likely

    Jamie Iles
     
  • Some platforms may have a number of GPIO that is less than the register
    width of the peripheral.

    Signed-off-by: Jamie Iles
    Acked-by: Anton Vorontsov
    Signed-off-by: Grant Likely

    Jamie Iles
     

28 Oct, 2010

1 commit

  • The basic GPIO controllers may be found in various on-board FPGA and ASIC
    solutions that are used to control board's switches, LEDs, chip-selects,
    Ethernet/USB PHY power, etc.

    These controllers may not provide any means of pin setup
    (in/out/open drain).

    The driver supports:
    - 8/16/32/64 bits registers;
    - GPIO controllers with clear/set registers;
    - GPIO controllers with a single "data" register;
    - Big endian bits/GPIOs ordering (mostly used on PowerPC).

    Signed-off-by: Anton Vorontsov
    Reviewed-by: Mark Brown
    Cc: David Brownell
    Cc: Samuel Ortiz ,
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anton Vorontsov