summaryrefslogtreecommitdiff
path: root/src/dev/i2c
diff options
context:
space:
mode:
authorNikos Nikoleris <nikos.nikoleris@arm.com>2018-06-04 17:50:46 +0100
committerNikos Nikoleris <nikos.nikoleris@arm.com>2018-06-15 10:51:28 +0000
commit71c6a68a2f363de3b50ec15151e5d78605666292 (patch)
tree07013f950da0bbaf0b487ccdeddacaf0b4f7b510 /src/dev/i2c
parente502572ce4c30a74ea1847e123c886f984dee311 (diff)
downloadgem5-71c6a68a2f363de3b50ec15151e5d78605666292.tar.xz
dev-arm: Fix the address range for some I/O devices
Previously, many devices were incorrecty configured to respond to an address range of size 0xfff. This changes fixes this and sets it to 0x1000. Change-Id: I4b027a27adf60ceae4859e287d7f34443b398752 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/11116 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/dev/i2c')
-rw-r--r--src/dev/i2c/bus.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/i2c/bus.cc b/src/dev/i2c/bus.cc
index af5d6c825..bf8cb8701 100644
--- a/src/dev/i2c/bus.cc
+++ b/src/dev/i2c/bus.cc
@@ -53,7 +53,7 @@ using std::map;
* http://infocenter.arm.com/help/topic/com.arm.doc.dui0440b/Bbajihec.html
*/
I2CBus::I2CBus(const I2CBusParams *p)
- : BasicPioDevice(p, 0xfff), scl(1), sda(1), state(IDLE), currBit(7),
+ : BasicPioDevice(p, 0x1000), scl(1), sda(1), state(IDLE), currBit(7),
i2cAddr(0x00), message(0x00)
{
vector<I2CDevice*> devs = p->devices;