summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-11-07 18:48:32 +0900
committerMasahiro Yamada <yamada.m@jp.panasonic.com>2014-11-12 00:21:28 +0900
commit113ef59e45b35f95b3b6b914bae671d61721e9ca (patch)
tree06a9470075cb8a4b6a4fdb40af676507090883cf
parent6e7e9294d321b65bee0821be36964bbd01df3350 (diff)
downloadu-boot-imx-113ef59e45b35f95b3b6b914bae671d61721e9ca.zip
u-boot-imx-113ef59e45b35f95b3b6b914bae671d61721e9ca.tar.gz
u-boot-imx-113ef59e45b35f95b3b6b914bae671d61721e9ca.tar.bz2
ARM: UniPhier: add MIO register file
This commit adds register defines of MIO (Media I/O) block of UniPhier platform. This file is necessary to control the reset signals of the USB cores. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
-rw-r--r--arch/arm/include/asm/arch-uniphier/mio-regs.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-uniphier/mio-regs.h b/arch/arm/include/asm/arch-uniphier/mio-regs.h
new file mode 100644
index 0000000..3306934
--- /dev/null
+++ b/arch/arm/include/asm/arch-uniphier/mio-regs.h
@@ -0,0 +1,20 @@
+/*
+ * UniPhier MIO (Media I/O) registers
+ *
+ * Copyright (C) 2014 Panasonic Corporation
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef ARCH_MIO_REGS_H
+#define ARCH_MIO_REGS_H
+
+#define MIO_BASE 0x59810000
+
+#define MIO_CLKCTRL(i) (MIO_BASE + 0x200 * (i) + 0x0020)
+#define MIO_RSTCTRL(i) (MIO_BASE + 0x200 * (i) + 0x0110)
+#define MIO_USB_RSTCTRL(i) (MIO_BASE + 0x200 * (i) + 0x0114)
+
+#define MIO_USB_RSTCTRL_XRST (0x1 << 0)
+
+#endif /* ARCH_MIO_REGS_H */