Home
last modified time | relevance | path

Searched refs:p2wi (Results 1 – 2 of 2) sorted by relevance

/drivers/i2c/busses/
Di2c-sun6i-p2wi.c84 struct p2wi { struct
96 struct p2wi *p2wi = dev_id; in p2wi_interrupt() argument
99 status = readl(p2wi->regs + P2WI_INTS); in p2wi_interrupt()
100 p2wi->status = status; in p2wi_interrupt()
105 writel(status, p2wi->regs + P2WI_INTS); in p2wi_interrupt()
107 complete(&p2wi->complete); in p2wi_interrupt()
121 struct p2wi *p2wi = i2c_get_adapdata(adap); in p2wi_smbus_xfer() local
124 if (p2wi->slave_addr >= 0 && addr != p2wi->slave_addr) { in p2wi_smbus_xfer()
132 writel(command, p2wi->regs + P2WI_DADDR0); in p2wi_smbus_xfer()
137 writel(data->byte, p2wi->regs + P2WI_DATA0); in p2wi_smbus_xfer()
[all …]
DMakefile106 obj-$(CONFIG_I2C_SUN6I_P2WI) += i2c-sun6i-p2wi.o