aboutsummaryrefslogtreecommitdiff
path: root/include/syscon.h
diff options
context:
space:
mode:
authorSimon Glass2016-07-04 11:58:00 -0600
committerSimon Glass2016-07-14 20:40:24 -0600
commit04ecf36ba60f41f695095226e53310b4acaebf1e (patch)
tree1ff3310987f63694b65d5b7bd99348e8099faf03 /include/syscon.h
parent3b2a29e0971397085c616c89a3a09f2609f50ca4 (diff)
dm: syscon: Add support for of-platdata
Provide a new function which can cope with obtaining information from of-platdata instead of the device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/syscon.h')
-rw-r--r--include/syscon.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/syscon.h b/include/syscon.h
index 4593b6e3ebf..34842aa4705 100644
--- a/include/syscon.h
+++ b/include/syscon.h
@@ -23,6 +23,17 @@ struct syscon_ops {
#define syscon_get_ops(dev) ((struct syscon_ops *)(dev)->driver->ops)
+#if CONFIG_IS_ENABLED(OF_PLATDATA)
+/*
+ * We don't support 64-bit machines. If they are so resource-contrained that
+ * they need to use OF_PLATDATA, something is horribly wrong with the
+ * education of our hardware engineers.
+ */
+struct syscon_base_platdata {
+ u32 reg[2];
+};
+#endif
+
/**
* syscon_get_regmap() - Get access to a register map
*