mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 00:18:51 +09:00
![Jiandong Zheng](/assets/img/avatar_default.png)
Add the required files for the Broadcom UDC OTG interface. Signed-off-by: Jiandong Zheng <jdzheng@broadcom.com> Signed-off-by: Steve Rae <srae@broadcom.com>
23 lines
427 B
C
23 lines
427 B
C
/*
|
|
* Copyright 2015 Broadcom Corporation.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __BCM_UDC_OTG_H
|
|
#define __BCM_UDC_OTG_H
|
|
|
|
#include <common.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
|