1. 08 11月, 2011 1 次提交
    • M
      regmap: Add a reusable irq_chip for regmap based interrupt controllers · f8beab2b
      Mark Brown 提交于
      There seem to be lots of regmap-using devices with very similar interrupt
      controllers with a small bank of interrupt registers and mask registers
      with an interrupt per bit. This won't cover everything but it's a good
      start.
      
      Each chip supplies a base for the status registers, a base for the mask
      registers, an optional base for writing acknowledgements (which may be the
      same as the status registers) and an array of bits within each of these
      register banks which indicate the interrupt.
      
      There is an assumption that the bit for each interrupt will be the same
      in each of the register bank.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      f8beab2b
  2. 20 9月, 2011 1 次提交
    • D
      regmap: Add the LZO cache support · 2cbbb579
      Dimitris Papastamos 提交于
      This patch adds support for LZO compression when storing the register
      cache.
      
      For a typical device whose register map would normally occupy 25kB or 50kB
      by using the LZO compression technique, one can get down to ~5-7kB.  There
      might be a performance penalty associated with each individual read/write
      due to decompressing/compressing the underlying cache, however that should not
      be noticeable.  These memory benefits depend on whether the target architecture
      can get rid of the memory occupied by the original register defaults cache
      which is marked as __devinitconst.  Nevertheless there will be some memory
      gain even if the target architecture can't get rid of the original register
      map, this should be around ~30-32kB instead of 50kB.
      Signed-off-by: NDimitris Papastamos <dp@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      2cbbb579
  3. 23 7月, 2011 3 次提交