1. 05 2月, 2013 1 次提交
  2. 04 2月, 2013 2 次提交
    • A
      regmap: Export regmap_async_complete_cb · f804fb56
      Axel Lin 提交于
      This fixes below build error when CONFIG_REGMAP=y && CONFIG_REGMAP_SPI=m
      
      ERROR: "regmap_async_complete_cb" [drivers/base/regmap/regmap-spi.ko] undefined!
      make[1]: *** [__modpost] Error 1
      make: *** [modules] Error 2
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      f804fb56
    • S
      regmap: include linux/sched.h to fix build · 30b2a553
      Stephen Warren 提交于
      This fixes:
      
      drivers/base/regmap/regmap.c: In function 'regmap_async_complete_cb':
      drivers/base/regmap/regmap.c:1656:3: error: 'TASK_NORMAL' undeclared (first use in this function)
      drivers/base/regmap/regmap.c:1656:3: note: each undeclared identifier is reported only once for each function it appears in
      drivers/base/regmap/regmap.c: In function 'regmap_async_complete':
      drivers/base/regmap/regmap.c:1688:2: error: 'TASK_UNINTERRUPTIBLE' undeclared (first use in this function)
      drivers/base/regmap/regmap.c:1688:2: error: implicit declaration of function 'schedule'
      
      An alternative might be to adjust linux/wait.h to include linux/sched.h,
      but since that hasn't been done before, I assume we're consciously
      avoiding doing that.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      30b2a553
  3. 29 1月, 2013 2 次提交
  4. 14 1月, 2013 2 次提交
  5. 11 12月, 2012 3 次提交
  6. 06 12月, 2012 1 次提交
  7. 21 11月, 2012 1 次提交
  8. 30 10月, 2012 1 次提交
  9. 26 10月, 2012 1 次提交
  10. 17 10月, 2012 2 次提交
    • D
      regmap: select REGMAP if REGMAP_MMIO and REGMAP_IRQ enabled · 5784ee4d
      Dong Aisheng 提交于
      The regmap_mmio and regmap_irq depend on regmap core, if not select,
      we may not compile regmap core and meet compiling errors as follows
      if REGMAP_MMIO is selected by client drivers:
      drivers/mfd/syscon.c:94:15: error: variable 'syscon_regmap_config' has initializer but incomplete type
      drivers/mfd/syscon.c:95:2: error: unknown field 'reg_bits' specified in initializer
      drivers/mfd/syscon.c:95:2: warning: excess elements in struct initializer [enabled by default]
      drivers/mfd/syscon.c:95:2: warning: (near initialization for 'syscon_regmap_config') [enabled by default]
      drivers/mfd/syscon.c:96:2: error: unknown field 'val_bits' specified in initializer
      drivers/mfd/syscon.c:96:2: warning: excess elements in struct initializer [enabled by default]
      drivers/mfd/syscon.c:96:2: warning: (near initialization for 'syscon_regmap_config') [enabled by default]
      drivers/mfd/syscon.c:97:2: error: unknown field 'reg_stride' specified in initializer
      drivers/mfd/syscon.c:97:2: warning: excess elements in struct initializer [enabled by default]
      drivers/mfd/syscon.c:97:2: warning: (near initialization for 'syscon_regmap_config') [enabled by default]
      drivers/mfd/syscon.c: In function 'syscon_probe':
      drivers/mfd/syscon.c:124:2: error: invalid use of undefined type 'struct regmap_config'
      drivers/mfd/syscon.c:125:2: error: implicit declaration of function 'devm_regmap_init_mmio' [-Werror=implicit-function-declaration]
      drivers/mfd/syscon.c:125:17: warning: assignment makes pointer from integer without a cast [enabled by default]
      cc1: some warnings being treated as errors
      
      drivers/mfd/Kconfig:
      config MFD_SYSCON
              bool "System Controller Register R/W Based on Regmap"
      	depends on OF
      	select REGMAP_MMIO
      	help
      	  Select this option to enable accessing system control registers
      	    via regmap.
      Signed-off-by: NDong Aisheng <dong.aisheng@linaro.org>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      5784ee4d
    • D
      regmap: make lock/unlock functions customizable · 0d4529c5
      Davide Ciminaghi 提交于
      It is sometimes convenient for a regmap user to override the standard
      regmap lock/unlock functions with custom functions.
      For instance this can be useful in case an already existing spinlock
      or mutex has to be used for locking a set of registers instead of the
      internal regmap spinlock/mutex.
      Note that the fast_io field of struct regmap_bus is ignored in case
      custom locking functions are used.
      Signed-off-by: NDavide Ciminaghi <ciminaghi@gnudd.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      0d4529c5
  11. 15 10月, 2012 10 次提交
  12. 09 9月, 2012 1 次提交
  13. 31 8月, 2012 1 次提交
  14. 08 8月, 2012 1 次提交
  15. 04 8月, 2012 7 次提交
  16. 19 7月, 2012 1 次提交
  17. 06 7月, 2012 1 次提交
  18. 19 6月, 2012 1 次提交
  19. 18 6月, 2012 1 次提交
    • K
      regmap: Add support for register indirect addressing. · 6863ca62
      Krystian Garbaciak 提交于
      Devices with register paging or indirectly accessed registers can configure
      register mapping to map those on virtual address range. During access to
      virtually mapped register range, indirect addressing is processed
      automatically, in following steps:
        1. selector for page or indirect register is updated (when needed);
        2. register in data window is accessed.
      
      Configuration should provide minimum and maximum register for virtual range,
      details of selector field for page selection, minimum and maximum register of
      data window for indirect access.
      
      Virtual range registers are managed by cache as well as direct access
      registers. In order to make indirect access more efficient, selector register
      should be declared as non-volatile, if possible.
      
      struct regmap_config is extended with the following:
      struct regmap_range_cfg	*ranges;
      unsigned int		n_ranges;
      
      [Also reordered debugfs init to later on since the cleanup code was
      conflicting with the new cleanup code for ranges anyway -- broonie]
      Signed-off-by: NKrystian Garbaciak <krystian.garbaciak@diasemi.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      6863ca62