summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2015-09-28 19:51:18 +0300
committerJoachim Eastwood <manabian@gmail.com>2015-09-29 22:19:02 +0200
commit5b32b1368ae532a2d06c931ba6356c39a9de63ac (patch)
tree303fe201b15b0ff4d49b2d794da5544a59604b15 /drivers
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff)
memory: pl172: correct MPMC peripheral ID register bits
According to PL172 TRM read of bits [7:6] of MPMCPeriphID3 is undefined, so unmask them. Also the driver supports all currently present revisions of PL172, this allows to alleviate requirements to the revision version matched by the driver. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/memory/pl172.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/memory/pl172.c b/drivers/memory/pl172.c
index b2ef6072fbf4..95a4ad72c992 100644
--- a/drivers/memory/pl172.c
+++ b/drivers/memory/pl172.c
@@ -278,9 +278,10 @@ static int pl172_remove(struct amba_device *adev)
}
static const struct amba_id pl172_ids[] = {
+ /* PrimeCell MPMC PL172, EMC found on NXP LPC18xx and LPC43xx */
{
- .id = 0x07341172,
- .mask = 0xffffffff,
+ .id = 0x07041172,
+ .mask = 0x3f0fffff,
},
{ 0, 0 },
};