2 * Copyright 2015 Broadcom Corporation.
4 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef __BCM_UDC_OTG_H
8 #define __BCM_UDC_OTG_H
12 static inline void wfld_set(uintptr_t addr, uint32_t fld_val, uint32_t fld_mask)
14 writel(((readl(addr) & ~(fld_mask)) | (fld_val)), (addr));
17 static inline void wfld_clear(uintptr_t addr, uint32_t fld_mask)
19 writel((readl(addr) & ~(fld_mask)), (addr));