11 Oct, 2011

1 commit

  • Move all common parts from sdio.c and spi.c to main.c, since they now
    can be handled as part of the platform driver.

    Signed-off-by: Felipe Balbi
    [forward-ported, cleaned-up and rephrased commit message]
    [added a bunch of fixes and a new pdata element]
    [moved some new code into main.c as well]
    Signed-off-by: Luciano Coelho

    Felipe Balbi
     

19 Apr, 2011

3 commits

  • Some platforms are incapable of triggering on level interrupts. Add a
    platform quirks member in the platform data structure, as well as an
    edge interrupt quirk which can be set on such platforms.

    When the interrupt is requested with IRQF_TRIGGER_RISING, IRQF_ONESHOT
    cannot be used, as we might miss interrupts that occur after the FW
    status is cleared and before the threaded interrupt handler exits.

    Moreover, when IRQF_ONESHOT is not set, iterating more than once in the
    threaded interrupt handler introduces a few race conditions between this
    handler and the hardirq handler. Currently this is worked around by
    limiting the loop to one iteration only. This workaround has an impact
    on performance. To remove to this restriction, the race conditions will
    need to be addressed.

    Signed-off-by: Ido Yariv
    Signed-off-by: Luciano Coelho

    Ido Yariv
     
  • Clean up the boot sequence code & fix the following issues:
    1. Always read the registers' values and set the relevant bits instead of
    zeroing all other bits
    2. Handle cases where wl1271_top_reg_read returns an error
    3. Verify that the HW can detect the selected clock source
    4. Remove 128x PG10 initialization code
    5. Configure the MCS PLL to work in HP mode

    Signed-off-by: Ido Yariv
    Reviewed-by: Luciano Coelho
    Signed-off-by: Luciano Coelho

    Ido Yariv
     
  • This new value is a new type of clock setting that is used by wl128x
    chipsets.

    Signed-off-by: Luciano Coelho

    Luciano Coelho
     

16 Nov, 2010

1 commit


30 Sep, 2010

1 commit


21 Sep, 2010

3 commits

  • The wl1271 device is using a reference clock that may change
    between board to board.

    Make the ref_clock parameter configurable by board settings
    instead of having a hard coded value in the sources.

    Signed-off-by: Ohad Ben-Cohen
    Signed-off-by: John W. Linville

    Ohad Ben-Cohen
     
  • Add a simple mechanism to pass platform data to the
    SDIO instances of wl12xx.

    This way there is no confusion over who owns the 'embedded data',
    typechecking is preserved, and no possibility for the wrong driver to
    pick up the data.

    Originally proposed by Russell King.

    Signed-off-by: Ohad Ben-Cohen
    Signed-off-by: John W. Linville

    Ohad Ben-Cohen
     
  • Move wl12xx.h outside of the spi-specific location,
    so it can be shared with both spi and sdio solutions.

    Update all users of spi/wl12xx.h accordingly

    Signed-off-by: Ohad Ben-Cohen
    Acked-by: Luciano Coelho
    Acked-by: Tony Lindgren
    Signed-off-by: John W. Linville

    Ohad Ben-Cohen