]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/syscon.h
configs: imx6q_logic: Move CONFIG_PHY_SMSC to defconfig
[people/ms/u-boot.git] / include / syscon.h
index 4593b6e3ebfdb96e7869cc9cc88045eaa42cb35d..5d52b1cc3c3d0a7d86bd54cf32383641fe7966f7 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __SYSCON_H
 #define __SYSCON_H
 
+#include <fdtdec.h>
+
 /**
  * struct syscon_uc_info - Information stored by the syscon UCLASS_UCLASS
  *
@@ -23,6 +25,19 @@ 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.
+ *
+ * Update: 64-bit is now supported and we have an education crisis.
+ */
+struct syscon_base_platdata {
+       fdt_val_t reg[2];
+};
+#endif
+
 /**
  * syscon_get_regmap() - Get access to a register map
  *