avionic design with actual uboot and tooling
submodule of avionic design uboot bootloader and with included tools to get you started , read readme.md and readme-tk1-loader.md
This commit is contained in:
22
u-boot/drivers/usb/gadget/bcm_udc_otg.h
Normal file
22
u-boot/drivers/usb/gadget/bcm_udc_otg.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* 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
|
||||
Reference in New Issue
Block a user