diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2015-02-27 02:26:55 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2015-03-01 00:02:49 +0900 |
commit | 4c7d025368fce4825a23aee90bd9a8fa1a95bbd7 (patch) | |
tree | 99a594ebefc99384b08ff91ed76b95e8a4559ec7 /arch/arm/mach-uniphier/include | |
parent | 44f597adebb369ceb5921d4f18b73e415e83441f (diff) | |
download | u-boot-imx-4c7d025368fce4825a23aee90bd9a8fa1a95bbd7.zip u-boot-imx-4c7d025368fce4825a23aee90bd9a8fa1a95bbd7.tar.gz u-boot-imx-4c7d025368fce4825a23aee90bd9a8fa1a95bbd7.tar.bz2 |
ARM: UniPhier: move uniphier_ehci_reset() function
Because uniphier_ehci_reset() is only called from ehci-uniphier.c,
it can be a static function there.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch/arm/mach-uniphier/include')
-rw-r--r-- | arch/arm/mach-uniphier/include/mach/ehci-uniphier.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/arm/mach-uniphier/include/mach/ehci-uniphier.h b/arch/arm/mach-uniphier/include/mach/ehci-uniphier.h deleted file mode 100644 index 3ba3183..0000000 --- a/arch/arm/mach-uniphier/include/mach/ehci-uniphier.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2014-2015 Panasonic Corporation - * Author: Masahiro Yamada <yamada.m@jp.panasonic.com> - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef __PLAT_UNIPHIER_EHCI_H -#define __PLAT_UNIPHIER_EHCI_H - -#include <linux/types.h> -#include <asm/io.h> -#include "mio-regs.h" - -static inline void uniphier_ehci_reset(int index, int on) -{ - u32 tmp; - - tmp = readl(MIO_USB_RSTCTRL(index)); - if (on) - tmp &= ~MIO_USB_RSTCTRL_XRST; - else - tmp |= MIO_USB_RSTCTRL_XRST; - writel(tmp, MIO_USB_RSTCTRL(index)); -} - -#endif /* __PLAT_UNIPHIER_EHCI_H */ |