15 Sep, 2011

1 commit

  • Building a kernel with hotplug disabled results in a link failure:

    `bgpio_remove' referenced in section `___ksymtab_gpl+bgpio_remove' of drivers/built-in.o: defined in discarded section `.devexit.text' of drivers/built-in.o

    This is because of bgpio_remove() is exported. It is illegal to export
    symbols which are discarded either at link time or as part of an
    init/exit section.

    Fix this by dropping the __devexit attributation from bgpio_remove().
    Also drop the __devinit attributation from bgpio_init().

    Signed-off-by: Russell King
    Cc: Grant Likely
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Russell King
     

10 Jun, 2011

1 commit

  • include/linux/basic_mmio_gpio.h uses a spinlock_t without including any
    of the spinlock headers resulting in this compiler warning.

    include/linux/basic_mmio_gpio.h:51:2: error: expected specifier-qualifier-list before 'spinlock_t'

    Explicitly include linux/spinlock_types.h to fix it.

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

    Jamie Iles
     

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