1. 17 8月, 2014 1 次提交
    • X
      regmap: add DT endianness binding support. · d647c199
      Xiubo Li 提交于
      For many drivers which will support rich endianness of Devices
      need define DT properties by itself with the binding support.
      
      The endianness using regmap:
      Index      Device     Properties if needs bytes-swap,
                            or just ignore it
      -------------------------------------------------------------
      1          BE         'big-endian'
      2          LE         'little-endian'
      
      The properties include all the register values and the buffers.
      And these properties are very usful for the MMIO devices:
      
      Such as: a memory-mapped device, on one SoC is in BE mode, while
      in another SoC will be in LE mode, and the CPU will always in LE
      mode.
      
      For the first case, we must use cpu_to_be32/be32_to_cpu for
      32-bit registers accessing, so the 'big-endian' property is needed.
      
      For the second case, we can just ignore the bytes-swap
      functions like cpu_to_le32/le32_to_cpu, so the 'little-endian'
      property could be abscent.
      
      And vice versa...
      Signed-off-by: NXiubo Li <Li.Xiubo@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      d647c199
  2. 26 7月, 2014 2 次提交
  3. 26 5月, 2014 2 次提交
  4. 01 5月, 2014 2 次提交
  5. 22 4月, 2014 1 次提交
  6. 18 4月, 2014 1 次提交
  7. 14 4月, 2014 3 次提交
  8. 01 4月, 2014 1 次提交
  9. 28 3月, 2014 1 次提交
  10. 27 3月, 2014 2 次提交
  11. 19 3月, 2014 2 次提交
  12. 18 3月, 2014 2 次提交
  13. 14 3月, 2014 1 次提交
  14. 11 3月, 2014 1 次提交
  15. 06 3月, 2014 1 次提交
    • N
      regmap: add regmap_parse_val api · 13ff50c8
      Nenghua Cao 提交于
          In some cases, we need regmap's format parse_val function
      to do be/le translation according to the bus configuration.
      For example, snd_soc_bytes_put() uses regmap to write/read values,
      and use cpu_to_be() directly to covert MASK into big endian. This
      is a defect, and should use regmap's format function to do it according
      to bus configuration.
      Signed-off-by: NNenghua Cao <nhcao@marvell.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      13ff50c8
  16. 26 2月, 2014 3 次提交
  17. 22 2月, 2014 2 次提交
  18. 20 2月, 2014 1 次提交
  19. 16 2月, 2014 2 次提交
  20. 15 2月, 2014 1 次提交
  21. 12 2月, 2014 1 次提交
  22. 03 2月, 2014 2 次提交
  23. 28 1月, 2014 1 次提交
    • D
      regmap: cache: Handle stride > 1 in sync_block_raw_flush · 78ba73ee
      Dylan Reid 提交于
      regcache_sync_block_raw_flush takes the address of the base register
      and the address of one past the last register to write to.  "count" is
      the number of registers in the range, not the number of bytes, it
      should be (end addr - start addr) / stride. Without accounting for
      strides greater than one, registers past the end might be synced or
      the writeable_reg callback at the beginning of _regmap_raw_write will
      fail and nothing will be written.
      Signed-off-by: NDylan Reid <dgreid@chromium.org>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      78ba73ee
  24. 30 12月, 2013 1 次提交
  25. 17 12月, 2013 2 次提交
  26. 26 11月, 2013 1 次提交