Skip to contentSkip to conversation

regmap: Add regmap dummy driver

PATCH Superseded Dimitris Papastamos 1 participant 1 message Jul 27, 2012

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regmap: Add regmap dummy driver

Add a pseudo-driver for debugging and stress-testing the regmap/regcache APIs. A standard set of tools for working with this driver (mainly sh scripts) will be put in a repo at https://github.com/quantumdream/regmap-tools.

Change-Id Ie6498f18d6f9a1f7a7cf813240e87ffed0d6f047

---
This is an initial implementation of the regdummy driver for regmap.

This is mainly useful for debugging/stress-testing regcache as it removes the need for real hardware and can be done in an emulated environment very easily.

There'll be incremental patches adding more features such as, support for configurable volatile/readable/etc. registers via debugfs entries.

 drivers/base/regmap/Kconfig        |   8 +
 drivers/base/regmap/Makefile       |   1 +
 drivers/base/regmap/regmap-dummy.c | 599 +++++++++++++++++++++++++++++++++++++
 3 files changed, 608 insertions(+)
 create mode 100644 drivers/base/regmap/regmap-dummy.c
drivers/base/regmap/Kconfig +8 -0
index 6be390b..5a1ab02 100644
@@ -20,3 +20,11 @@ config REGMAP_MMIO
 
 config REGMAP_IRQ
 	bool
+
+config REGMAP_DUMMY
+	tristate
+	select REGMAP_MMIO
+	help
+	  Say Y or M if you want to add the regdummy driver for regmap.
+	  This is a pseudo-driver used for debugging and stress-testing
+	  the regmap/regcache APIs.
drivers/base/regmap/Makefile +1 -0
index 5e75d1b..c5d70f1 100644
@@ -5,3 +5,4 @@ obj-$(CONFIG_REGMAP_I2C) += regmap-i2c.o
 obj-$(CONFIG_REGMAP_SPI) += regmap-spi.o
 obj-$(CONFIG_REGMAP_MMIO) += regmap-mmio.o
 obj-$(CONFIG_REGMAP_IRQ) += regmap-irq.o
+obj-$(CONFIG_REGMAP_DUMMY) += regmap-dummy.o
drivers/base/regmap/regmap-dummy.c new file +599 -0

599 lines not on this page · raw message

Signature · 1 line
1.7.11.3