Skip to content
Snippets Groups Projects
  1. Oct 13, 2010
  2. Oct 07, 2010
  3. Sep 30, 2010
    • Stefano Babic's avatar
      MX51: Register definitions cannot be included in board config file · f3554dfd
      Stefano Babic authored
      
      Due to wrong dependencies, it is not possible to include imx_regs.h
      inside the board configuration file.
      
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      f3554dfd
    • Stefano Babic's avatar
      MXC: Fix byte-ordering in SPI driver for i.MX31/i.MX51 · 2f721d17
      Stefano Babic authored
      
      The actual SPI driver for i.MX31 and i.MX51 controller
      use a wrong byte ordering, because it is supposed
      to work only with Freescale's devices, as the Power
      Controllers (PMIC). The driver is not suitable for
      general purposes, because the buffers passed to spi_xfer
      must be 32-bit aligned, as it is used mainly to send
      integer to PMIC devices.
      
      The patch drops any kind of limitation and makes the
      driver useful with devices controlled sending commands
      composed by single bytes (or by a odd number of bytes), such as
      spi flash, sensor, etc.
      
      Because the byte ordering is changed,
      any current driver using this controller must be adapted, too.
      
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      2f721d17
    • Stefano Babic's avatar
      MXC: Correct SPI_CPOL setting in SPI driver · 9f481e95
      Stefano Babic authored
      
      The handling of the SPI_CPOL bit inside the SPI
      driver was wrong. As reported by the manual,
      the meaning of the SSPOL inside the
      configuration register is the same as reported
      by SPI specification (0 if low in idle, 1 is high
      on idle). The driver inverts this logic.
      
      Because this patch sets the logic as specified, it is required
      to clear the CPOL bit in the configuration file to adapt
      to the correct logic.
      
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      Signed-off-by: default avatarDavid Jander <david.jander@protonic.nl>
      9f481e95
  4. Sep 29, 2010
  5. Sep 28, 2010
  6. Sep 27, 2010
  7. Sep 23, 2010
Loading