Searched refs:lpi2c_imx (Results 1 – 1 of 1) sorted by relevance
113 static void lpi2c_imx_intctrl(struct lpi2c_imx_struct *lpi2c_imx, in lpi2c_imx_intctrl() argument116 writel(enable, lpi2c_imx->base + LPI2C_MIER); in lpi2c_imx_intctrl()119 static int lpi2c_imx_bus_busy(struct lpi2c_imx_struct *lpi2c_imx) in lpi2c_imx_bus_busy() argument125 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy()129 writel(temp, lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy()137 dev_dbg(&lpi2c_imx->adapter.dev, "bus not work\n"); in lpi2c_imx_bus_busy()138 if (lpi2c_imx->adapter.bus_recovery_info) in lpi2c_imx_bus_busy()139 i2c_recover_bus(&lpi2c_imx->adapter); in lpi2c_imx_bus_busy()148 static void lpi2c_imx_set_mode(struct lpi2c_imx_struct *lpi2c_imx) in lpi2c_imx_set_mode() argument150 unsigned int bitrate = lpi2c_imx->bitrate; in lpi2c_imx_set_mode()[all …]