20 Jul, 2011

1 commit


16 Jul, 2011

3 commits

  • Add i2c bindings for the mcp230xx devices. This is quite a lot simpler
    than the spi one as there's no funky sub addressing done (one struct
    i2c_client per struct gpio_chip).

    The mcp23s08_platform_data structure is reused for i2c, even though
    only a single mcp23s08_chip_info structure is needed.

    To use, simply fill out a platform_data structure and pass it in
    i2c_board_info, E.G.:

    static const struct mcp23s08_platform_data mcp23017_data = {
    .chip[0] = {
    .pullups = 0x00ff,
    },
    .base = 240,
    };

    static struct i2c_board_info __initdata i2c_devs[] = {
    { I2C_BOARD_INFO("mcp23017", 0x20),
    .platform_data = &smartview_mcp23017_data, },
    ...
    };

    Signed-off-by: Peter Korsgaard
    Signed-off-by: Grant Likely

    Peter Korsgaard
     
  • Change spi member of struct mcp23s08 to be a ops-specific opaque data
    pointer, and move spi specific knowledge out of mcp23s08_probe_one().

    No functional change, but is needed to add i2c support.

    Signed-off-by: Peter Korsgaard
    Signed-off-by: Grant Likely

    Peter Korsgaard
     
  • There's no in-tree users, and bus notifiers are more generic anyway.

    Signed-off-by: Peter Korsgaard
    Signed-off-by: Grant Likely

    Peter Korsgaard
     

15 Jul, 2011

1 commit


14 Jul, 2011

1 commit


09 Jul, 2011

2 commits


08 Jul, 2011

1 commit

  • The bgpio_init() function does not initialise the shadow register for
    the GPIO direction register. Thus, when configuring the first GPIO with
    gpio_set_direction() all other GPIOs of the same bank will be
    configured as inputs. Since the bgpio layer cannot know whether the
    register is readable, the initialisation should be done by the caller
    of bgpio_init().

    Also, the 'data' shadow variable that is used inside basic_mmio_gpio
    to cache the current value of the GPIO_DR register is initialised from
    the GPIO_PSR register within bgpio_init(). Thus when setting the
    output value of a certain GPIO, the other GPIO outputs of the same
    bank will be set or cleared depending on the pin state of the GPIO
    inputs during bgpio_init().

    Signed-off-by: Lothar Waßmann
    Signed-off-by: Grant Likely

    Lothar Waßmann
     

07 Jul, 2011

2 commits


06 Jul, 2011

1 commit


29 Jun, 2011

1 commit


17 Jun, 2011

19 commits


16 Jun, 2011

3 commits


14 Jun, 2011

3 commits


13 Jun, 2011

2 commits