summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/arch-quark
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-09-11 03:24:37 -0700
committerSimon Glass <sjg@chromium.org>2015-09-16 19:53:52 -0600
commit2afb62305e2a20c7a98b2c19d4902671c45f153c (patch)
tree5535d89d7e08bcb211688647da0342ecb896acad /arch/x86/include/asm/arch-quark
parent5841c5b0a7967364a8ec10d54ab77ad62f3ab164 (diff)
downloadu-boot-imx-2afb62305e2a20c7a98b2c19d4902671c45f153c.zip
u-boot-imx-2afb62305e2a20c7a98b2c19d4902671c45f153c.tar.gz
u-boot-imx-2afb62305e2a20c7a98b2c19d4902671c45f153c.tar.bz2
x86: quark: Add PCIe/USB static register programming after memory init
This adds static register programming for PCIe and USB after memory init as required by Quark firmware writer guide. Although not doing this did not cause any malfunction, just do it for safety. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/include/asm/arch-quark')
-rw-r--r--arch/x86/include/asm/arch-quark/quark.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/x86/include/asm/arch-quark/quark.h b/arch/x86/include/asm/arch-quark/quark.h
index 5d81976..eb3afbf 100644
--- a/arch/x86/include/asm/arch-quark/quark.h
+++ b/arch/x86/include/asm/arch-quark/quark.h
@@ -88,6 +88,20 @@
/* 64KiB of RMU binary in flash */
#define RMU_BINARY_SIZE 0x10000
+/* PCIe Root Port Configuration Registers */
+
+#define PCIE_RP_CCFG 0xd0
+#define CCFG_UPRS (1 << 14)
+#define CCFG_UNRS (1 << 15)
+#define CCFG_UNSD (1 << 23)
+#define CCFG_UPSD (1 << 24)
+
+#define PCIE_RP_MPC2 0xd4
+#define MPC2_IPF (1 << 11)
+
+#define PCIE_RP_MBC 0xf4
+#define MBC_SBIC (3 << 16)
+
/* Legacy Bridge PCI Configuration Registers */
#define LB_GBA 0x44
#define LB_PM1BLK 0x48
@@ -100,6 +114,14 @@
#define LB_BC 0xd8
#define LB_RCBA 0xf0
+/* USB EHCI memory-mapped registers */
+#define EHCI_INSNREG01 0x94
+
+/* USB device memory-mapped registers */
+#define USBD_INT_MASK 0x410
+#define USBD_EP_INT_STS 0x414
+#define USBD_EP_INT_MASK 0x418
+
#ifndef __ASSEMBLY__
/* Root Complex Register Block */