Add a placeholder for now so that this code will compile. It currently does
nothing.
Signed-off-by: Simon Glass <sjg@chromium.org>
DECLARE_GLOBAL_DATA_PTR;
+#if CONFIG_IS_ENABLED(OF_PLATDATA)
+int regmap_init_mem_platdata(struct udevice *dev, fdt32_t *reg, int size,
+ struct regmap **mapp)
+{
+ /* TODO(sjg@chromium.org): Implement this when needed */
+ return 0;
+}
+#else
int regmap_init_mem(struct udevice *dev, struct regmap **mapp)
{
const void *blob = gd->fdt_blob;
return 0;
}
+#endif
void *regmap_get_range(struct regmap *map, unsigned int range_num)
{
*/
int regmap_init_mem(struct udevice *dev, struct regmap **mapp);
+int regmap_init_mem_platdata(struct udevice *dev, fdt32_t *reg, int size,
+ struct regmap **mapp);
+
/**
* regmap_get_range() - Obtain the base memory address of a regmap range
*