Skip to content

Commit 4c3491d

Browse files
Ayush1325kartben
authored andcommitted
drivers: i2c: omap: Fix for RAM MMIO
- RAM MMIO is initialized using DEVICE_MMIO_MAP. So add it to init code. Signed-off-by: Ayush Singh <ayush@beagleboard.org>
1 parent d4ee678 commit 4c3491d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/i2c/i2c_omap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,8 @@ static int i2c_omap_init(const struct device *dev)
684684
const struct i2c_omap_cfg *cfg = DEV_CFG(dev);
685685
int ret;
686686

687+
DEVICE_MMIO_MAP(dev, K_MEM_CACHE_NONE);
688+
687689
ret = pinctrl_apply_state(cfg->pcfg, PINCTRL_STATE_DEFAULT);
688690
if (ret < 0) {
689691
LOG_ERR("failed to apply pinctrl");

0 commit comments

Comments
 (0)