diff options
Diffstat (limited to 'drivers/usb/cdns3/io.h')
-rw-r--r-- | drivers/usb/cdns3/io.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/usb/cdns3/io.h b/drivers/usb/cdns3/io.h new file mode 100644 index 000000000000..c16edbf54b8b --- /dev/null +++ b/drivers/usb/cdns3/io.h @@ -0,0 +1,35 @@ +/** + * io.h - Cadence USB3 IO Header + * + * Copyright (C) 2016 Cadence Design Systems - https://www.cadence.com/ + * + * Authors: Rafal Ozieblo <rafalo@cadence.com>, + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +#ifndef __DRIVERS_USB_CDNS_IO_H +#define __DRIVERS_USB_CDNS_IO_H + +#include <linux/io.h> + +static inline u32 cdns_readl(uint32_t __iomem *reg) +{ + u32 value = 0; + + value = readl(reg); + return value; +} + +static inline void cdns_writel(uint32_t __iomem *reg, u32 value) +{ + writel(value, reg); +} + + +#endif /* __DRIVERS_USB_CDNS_IO_H */ |