X-Git-Url: https://repo.jachan.dev/J-u-boot.git/blobdiff_plain/d82477748d641e60ba3e1a0b55d98362aed70f80..0bb430c8494e26e8d258cf6957cdd39d2ce4f309:/include/syscon.h diff --git a/include/syscon.h b/include/syscon.h index 4593b6e3ebf..5d52b1cc3c3 100644 --- a/include/syscon.h +++ b/include/syscon.h @@ -8,6 +8,8 @@ #ifndef __SYSCON_H #define __SYSCON_H +#include + /** * 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 *