[PATCH 28/44] leon, grpci2: fixed wrong bit layout

Daniel Hellstrom daniel at gaisler.com
Fri Mar 3 14:57:01 UTC 2017


From: Javier Jalle <javier.jalle at gaisler.com>

---
 c/src/lib/libbsp/sparc/shared/pci/grpci2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c b/c/src/lib/libbsp/sparc/shared/pci/grpci2.c
index cf2f84f..c5832d5 100644
--- a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c
+++ b/c/src/lib/libbsp/sparc/shared/pci/grpci2.c
@@ -102,8 +102,8 @@ struct grpci2_regs {
 
 #define CTRL_SI (1<<27)
 #define CTRL_PE (1<<26)
-#define CTRL_EI (1<<25)
-#define CTRL_ER (1<<24)
+#define CTRL_ER (1<<25)
+#define CTRL_EI (1<<24)
 #define CTRL_BUS (0xff<<CTRL_BUS_BIT)
 #define CTRL_HOSTINT 0xf
 
-- 
2.7.4




More information about the devel mailing list