1. 26 7月, 2014 1 次提交
  2. 01 5月, 2014 2 次提交
  3. 18 4月, 2014 1 次提交
  4. 14 4月, 2014 1 次提交
    • X
      regmap: implement LE formatting/parsing for 16/32-bit values. · 4aa8c069
      Xiubo Li 提交于
      Allow busses to request little endianness formatting and
      parsing for 16- and 32-bit values. This will be useful to
      support regmap-mmio.
      
      For the following the scenarios using the regmap-mmio,
      for example:
      
      Index    CPU       Device     Endianess flag for values
      ----------------------------------------------------------
      1        LE        LE         REGMAP_ENDIAN_DEFAULT/NATIVE
      2        LE        BE         REGMAP_ENDIAN_BIG
      3        BE        BE         REGMAP_ENDIAN_DEFAULT/NATIVE
      4        BE        LE         REGMAP_ENDIAN_LITTLE
      
      For one device driver, which will support all the cases above,
      needs two boolean properties in DT node like: 'big-endian'
      for case 2 and 'little-endian' for case 4, and for cases 1
      and 3 they all will be absent.
      Signed-off-by: NXiubo Li <Li.Xiubo@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      4aa8c069
  5. 01 4月, 2014 1 次提交
  6. 18 3月, 2014 2 次提交
  7. 11 3月, 2014 1 次提交
  8. 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
  9. 26 2月, 2014 3 次提交
  10. 22 2月, 2014 2 次提交
  11. 20 2月, 2014 1 次提交
  12. 16 2月, 2014 1 次提交
  13. 12 2月, 2014 1 次提交
  14. 30 12月, 2013 1 次提交
  15. 17 12月, 2013 1 次提交
  16. 24 11月, 2013 1 次提交
  17. 21 11月, 2013 1 次提交
  18. 12 11月, 2013 1 次提交
  19. 15 10月, 2013 1 次提交
  20. 14 10月, 2013 1 次提交
  21. 11 10月, 2013 1 次提交
  22. 10 10月, 2013 1 次提交
    • A
      regmap: Fix regmap_bulk_write single-rw mutex deadlock · 4174a7a4
      Anthony Olech 提交于
      When regmap_bulk_write() is called with the map->use_single_rw flag set
      an immediate mutex deadlock happens because regmap_raw_write() is called
      after obtaining the mutex and regmap_raw_write() itself then tries to
      obtain the mutex as well.
      
      It is obvious that no one other than myself tried it with a real device.
      I did, but only for the purposes of an experiment and demonstration.
      
      But even if this situation will never ever happen with a real device, it
      is a bug and therefore should be fixed.
      Signed-off-by: NAnthony Olech <anthony.olech.opensource@diasemi.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      4174a7a4
  23. 09 10月, 2013 3 次提交
  24. 08 10月, 2013 1 次提交
  25. 17 9月, 2013 2 次提交
  26. 17 8月, 2013 1 次提交
  27. 09 8月, 2013 1 次提交
    • I
      regmap: regcache: allow read-only regs to be cached · 515f2261
      Ionut Nicu 提交于
      The regmap_writeable() check should not be done in
      regcache_write() because this prevents read-only
      registers to be cached. After a read on a read-only
      register its value will not be stored in the cache
      and the next time someone will try to read it the
      value will be read from the bus instead of the
      cache.
      
      Instead the regmap_writeable() check should be done
      in _regmap_write() to prevent callers from writing
      to read-only registers.
      Signed-off-by: NIonut Nicu <ioan.nicu.ext@nsn.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      515f2261
  28. 07 8月, 2013 1 次提交
    • P
      regmap: core: allow a virtual range to cover its own data window · f161d220
      Philipp Zabel 提交于
      I see no reason why a virtual range shouldn't be allowed to cover its
      own data window if the page selection register is in the same place
      on every page.
      For chips which use paged access for all of their registers, but only
      when connected via I2C, and which can access the whole register space
      directly when connected via SPI, this allows to avoid acrobatics with
      the register ranges by simply mapping the I2C ranges over the data
      window beginning at 0x0, and then using linear access for the SPI
      variant.
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      f161d220
  29. 16 7月, 2013 1 次提交
  30. 04 7月, 2013 1 次提交
  31. 12 6月, 2013 1 次提交
    • S
      regmap: Add regmap_field APIs · 67252287
      Srinivas Kandagatla 提交于
      It is common to access regmap registers at bit level, using
      regmap_update_bits or regmap_read functions, however the end user has to
      take care of a mask or shifting. This becomes overhead when such use
      cases are high. Having a common function to do this is much convenient
      and less error prone.
      
      The idea of regmap_field is simple, regmap_field gives a logical
      structure to bits of the regmap register, and the driver can use this
      logical entity without the knowledge of the bit positions and masks all
      over the code. This way code looks much neat and it need not handle the
      masks, shifts every time it access the those entities.
      
      With this new regmap_field_read/write apis the end user can setup a
      regmap field using regmap_field_init and use the return regmap_field to
      read write the register field without worrying about the masks or
      shifts.
      
      Also this apis will be useful for drivers which are based on regmaps,
      like some clocks or pinctrls which can work on the regmap_fields
      directly without having to worry about bit positions.
      Signed-off-by: NSrinivas Kandagatla <srinivas.kandagatla@st.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      67252287
  32. 04 6月, 2013 1 次提交