[RFC v4 net-next 12/17] mfd: ocelot: add shared resource names for switch functionality

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The switch portion of the Ocelot chip relies on several resources. Define
the resource names here, so they can be referenced by both the switch
driver and the MFD.

Signed-off-by: Colin Foster <colin.foster@xxxxxxxxxxxxxxxx>
---

v4
    * New patch. Previous versions had entire structures shared,
      this only requires that the names be shared.

---
 include/linux/mfd/ocelot.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/linux/mfd/ocelot.h b/include/linux/mfd/ocelot.h
index dd72073d2d4f..b80f2f5ff1d6 100644
--- a/include/linux/mfd/ocelot.h
+++ b/include/linux/mfd/ocelot.h
@@ -13,6 +13,15 @@
 
 struct resource;
 
+#define OCELOT_RES_NAME_ANA	"ana"
+#define OCELOT_RES_NAME_QS	"qs"
+#define OCELOT_RES_NAME_QSYS	"qsys"
+#define OCELOT_RES_NAME_REW	"rew"
+#define OCELOT_RES_NAME_SYS	"sys"
+#define OCELOT_RES_NAME_S0	"s0"
+#define OCELOT_RES_NAME_S1	"s1"
+#define OCELOT_RES_NAME_S2	"s2"
+
 static inline struct regmap *
 ocelot_regmap_from_resource_optional(struct platform_device *pdev,
 				     unsigned int index,
-- 
2.25.1




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux