Thread (96 messages) 96 messages, 9 authors, 2012-06-26
STALE5084d

[RFC PATCH v2 03/11] mfd: omap: control: core system control driver

From: tony@atomide.com (Tony Lindgren)
Date: 2012-06-20 10:22:25
Also in: linux-omap, linux-pm

* Konstantin Baydarov [off-list ref] [120618 04:36]:
This patch introduces a MFD core device driver for
OMAP system control module.

The control module allows software control of
various static modes supported by the device. It is
composed of two control submodules: general control
module and device (padconfiguration) control
module.
quoted hunk ↗ jump to hunk
+++ linux-2.6/drivers/mfd/omap-control-core.c
...

+u32 omap_control_readl(u16 offset)
+{
+	return __raw_readl(omap_control_base + (offset));
+}
+
+void omap_control_writel(u32 val, u16 offset)
+{
+	__raw_writel(val, omap_control_base + (offset));
+}
There should not be any need to have the individual drivers use
these. Please instead just set up something where individual drivers
register with the control module core, and get their own iobase
returned so they can use readl/writel and behave like normal device
drivers.

Regards,

Tony
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help