23 Dec, 2015

1 commit


24 Apr, 2015

1 commit


23 Apr, 2015

1 commit

  • On CPM2, the SPI parameter RAM is dynamically allocated in the
    dualport RAM whereas in CPM1, it is statically allocated to a default
    address with capability to relocate it somewhere else via the use of
    CPM micropatch. The address of the parameter RAM is given by the boot
    loader and expected to be mapped via devm_ioremap_resource()

    In the current implementation, in function fsl_spi_cpm_get_pram()
    there is a confusion between the SPI_BASE register and the base of the
    SPI parameter RAM. Fortunatly, it is working properly with MPC866 and
    MPC885 because they do set SPI_BASE, but on MPC860 and other old
    MPC8xx that doesn't set SPI_BASE, pram_ofs is not properly set.
    Also, the parameter RAM is not properly mapped with
    devm_ioremap_resource() as it should but still gets accessible by
    chance through the full RAM which is mapped from somewhere else.

    This patch applies to the SPI driver the same principle as for the
    CPM UART: when the CPM is of type CPM1, we simply do an
    devm_ioremap_resource() of the area provided via the device tree.

    Signed-off-by: Christophe Leroy
    Signed-off-by: Mark Brown

    Christophe Leroy
     

07 Jan, 2015

1 commit


22 Nov, 2014

1 commit

  • On CPM1, when the SPI parameter RAM is relocated to somewhere else than the
    default location, in accordance with freescale documentation
    (refer micropatch SPI application note EB662), init RX/TX params command shall
    not be used because it doesn't take into account the new location, and
    overwrites data that is in original location of SPI param ram at addresses
    SCC2 param base + (u32*)0x88 (u16*)0x90 (u32*)0x98 (u16*)0xA0, hence breaking
    activity on SCC2 if SCC2 is used in a mode like QMC for instance.

    Therefore, the action shall be done manually as described by freescale and as
    was already partly done by the driver.

    Reported-by: Patrick Vasseur
    Signed-off-by: Christophe Leroy
    Tested-by: Patrick Vasseur
    Signed-off-by: Mark Brown

    Christophe Leroy
     

30 Sep, 2014

1 commit

  • Sort all the include headers alphabetically for the freescale
    spi drivers. If the inlcude headers sorted out of order, maybe
    the best logical choice is to append new ones after the exist
    ones, while this may create a lot of potential for duplicates
    and conflicts for each diffenent changes will add new headers
    in the same location.

    Signed-off-by: Xiubo Li
    Signed-off-by: Mark Brown

    Xiubo Li
     

12 Nov, 2013

1 commit

  • Pull devicetree updates from Rob Herring:
    "DeviceTree updates for 3.13. This is a bit larger pull request than
    usual for this cycle with lots of clean-up.

    - Cross arch clean-up and consolidation of early DT scanning code.
    - Clean-up and removal of arch prom.h headers. Makes arch specific
    prom.h optional on all but Sparc.
    - Addition of interrupts-extended property for devices connected to
    multiple interrupt controllers.
    - Refactoring of DT interrupt parsing code in preparation for
    deferred probe of interrupts.
    - ARM cpu and cpu topology bindings documentation.
    - Various DT vendor binding documentation updates"

    * tag 'devicetree-for-3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (82 commits)
    powerpc: add missing explicit OF includes for ppc
    dt/irq: add empty of_irq_count for !OF_IRQ
    dt: disable self-tests for !OF_IRQ
    of: irq: Fix interrupt-map entry matching
    MIPS: Netlogic: replace early_init_devtree() call
    of: Add Panasonic Corporation vendor prefix
    of: Add Chunghwa Picture Tubes Ltd. vendor prefix
    of: Add AU Optronics Corporation vendor prefix
    of/irq: Fix potential buffer overflow
    of/irq: Fix bug in interrupt parsing refactor.
    of: set dma_mask to point to coherent_dma_mask
    of: add vendor prefix for PHYTEC Messtechnik GmbH
    DT: sort vendor-prefixes.txt
    of: Add vendor prefix for Cadence
    of: Add empty for_each_available_child_of_node() macro definition
    arm/versatile: Fix versatile irq specifications.
    of/irq: create interrupts-extended property
    microblaze/pci: Drop PowerPC-ism from irq parsing
    of/irq: Create of_irq_parse_and_map_pci() to consolidate arch code.
    of/irq: Use irq_of_parse_and_map()
    ...

    Linus Torvalds
     

17 Oct, 2013

1 commit


10 Oct, 2013

1 commit


07 Apr, 2013

1 commit

  • This makes the spi-fsl-spi driver usable in CPU mode outside of an FSL_SOC and
    even an powerpc environment by moving CPM mode functionality to a separate file
    that is only compiled and linked in an FSL_SOC environment and adding some
    ifdefs to hide types and functions or provide alternatives.

    For devicetree probing a "clock-frequency" property is used for clock frequency
    instead of calls to FSL_SOC-specific functions.

    Acked-by: Anton Vorontsov
    Signed-off-by: Andreas Larsson
    Signed-off-by: Grant Likely

    Andreas Larsson