mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
cb3ce95401
In order to make it easier to move on to dropping common.h from code directly, remove common.h inclusion from the rest of the header file which had been including it. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
19 lines
406 B
C
19 lines
406 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2015 Broadcom Corporation.
|
|
*/
|
|
|
|
#ifndef __BCM_UDC_OTG_H
|
|
#define __BCM_UDC_OTG_H
|
|
|
|
static inline void wfld_set(uintptr_t addr, uint32_t fld_val, uint32_t fld_mask)
|
|
{
|
|
writel(((readl(addr) & ~(fld_mask)) | (fld_val)), (addr));
|
|
}
|
|
|
|
static inline void wfld_clear(uintptr_t addr, uint32_t fld_mask)
|
|
{
|
|
writel((readl(addr) & ~(fld_mask)), (addr));
|
|
}
|
|
|
|
#endif
|