Skip to content
Snippets Groups Projects
Commit 89f643d9 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra
Browse files

The config space should behave like a normal WB device wrt. select lines.

parent 7a14ffe2
Branches
Tags
No related merge requests found
...@@ -281,7 +281,8 @@ resume_cycle: ...@@ -281,7 +281,8 @@ resume_cycle:
rptr += alignment; rptr += alignment;
if (wconfig) { if (wconfig) {
/* Our config space uses all bits of the address */ /* Our config space uses all bits of the address for WBA */
/* If it ever supports register write access, this would need to change */
} else { } else {
/* Wishbone devices ignore the low address bits and use the select lines */ /* Wishbone devices ignore the low address bits and use the select lines */
bwa &= address_filter_bits; bwa &= address_filter_bits;
...@@ -339,13 +340,9 @@ resume_cycle: ...@@ -339,13 +340,9 @@ resume_cycle:
ra = EB_LOAD(rptr, alignment); ra = EB_LOAD(rptr, alignment);
rptr += alignment; rptr += alignment;
if (rconfig) { /* Wishbone devices ignore the low address bits and use the select lines */
/* Our config space uses all bits of the address */ ra &= address_filter_bits;
} else { ra |= addr_low;
/* Wishbone devices ignore the low address bits and use the select lines */
ra &= address_filter_bits;
ra |= addr_low;
}
if (rconfig) { if (rconfig) {
if (sel_ok) { if (sel_ok) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment