Lines Matching +full:ulpi +full:- +full:0
1 // SPDX-License-Identifier: GPL-2.0
3 * OMAP ulpi viewport support
4 * Based on drivers/usb/ulpi/ulpi-viewport.c
6 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com
12 #include <usb/ulpi.h>
19 * Wait for having ulpi in done state
25 while (--timeout) { in ulpi_wait()
26 if (!(readl(ulpi_vp->viewport_addr) & mask)) in ulpi_wait()
27 return 0; in ulpi_wait()
36 * Issue a ULPI read/write request
42 writel(value, ulpi_vp->viewport_addr); in ulpi_request()
46 debug("ULPI request timed out\n"); in ulpi_request()
53 u32 val = OMAP_ULPI_START | (((ulpi_vp->port_num + 1) & 0xf) << 24) | in ulpi_write()
54 OMAP_ULPI_WR_OPSEL | ((u32)reg << 16) | (value & 0xff); in ulpi_write()
62 u32 val = OMAP_ULPI_START | (((ulpi_vp->port_num + 1) & 0xf) << 24) | in ulpi_read()
69 return readl(ulpi_vp->viewport_addr) & 0xff; in ulpi_read()