Lines Matching refs:ulpi_vp
23 static int ulpi_wait(struct ulpi_viewport *ulpi_vp, u32 mask) in ulpi_wait() argument
28 if (!(readl(ulpi_vp->viewport_addr) & mask)) in ulpi_wait()
40 static int ulpi_request(struct ulpi_viewport *ulpi_vp, u32 value) in ulpi_request() argument
44 writel(value, ulpi_vp->viewport_addr); in ulpi_request()
46 err = ulpi_wait(ulpi_vp, OMAP_ULPI_START); in ulpi_request()
53 int ulpi_write(struct ulpi_viewport *ulpi_vp, u8 *reg, u32 value) in ulpi_write() argument
55 u32 val = OMAP_ULPI_START | (((ulpi_vp->port_num + 1) & 0xf) << 24) | in ulpi_write()
58 return ulpi_request(ulpi_vp, val); in ulpi_write()
61 u32 ulpi_read(struct ulpi_viewport *ulpi_vp, u8 *reg) in ulpi_read() argument
64 u32 val = OMAP_ULPI_START | (((ulpi_vp->port_num + 1) & 0xf) << 24) | in ulpi_read()
67 err = ulpi_request(ulpi_vp, val); in ulpi_read()
71 return readl(ulpi_vp->viewport_addr) & 0xff; in ulpi_read()