diff options
author | Simon Glass <sjg@chromium.org> | 2016-07-04 11:57:59 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-07-14 20:40:24 -0600 |
commit | 3b2a29e0971397085c616c89a3a09f2609f50ca4 (patch) | |
tree | 379cfe7c873e58ea50ede61ae087baa1d3d7d050 /drivers/core | |
parent | 29629eb897f8d8119b06477d0ca3c4b424726e51 (diff) | |
download | u-boot-imx-3b2a29e0971397085c616c89a3a09f2609f50ca4.zip u-boot-imx-3b2a29e0971397085c616c89a3a09f2609f50ca4.tar.gz u-boot-imx-3b2a29e0971397085c616c89a3a09f2609f50ca4.tar.bz2 |
dm: regmap: Add a dummy implementation for of-platdata
Add a placeholder for now so that this code will compile. It currently does
nothing.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core')
-rw-r--r-- | drivers/core/regmap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/core/regmap.c b/drivers/core/regmap.c index 519832f..7e073cf 100644 --- a/drivers/core/regmap.c +++ b/drivers/core/regmap.c @@ -15,6 +15,14 @@ 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; @@ -64,6 +72,7 @@ int regmap_init_mem(struct udevice *dev, struct regmap **mapp) return 0; } +#endif void *regmap_get_range(struct regmap *map, unsigned int range_num) { |