diff options
author | Vladimir Zapolskiy <vz@mleia.com> | 2015-09-28 12:51:18 -0400 |
---|---|---|
committer | Joachim Eastwood <manabian@gmail.com> | 2015-09-29 16:19:02 -0400 |
commit | 5b32b1368ae532a2d06c931ba6356c39a9de63ac (patch) | |
tree | 303fe201b15b0ff4d49b2d794da5544a59604b15 | |
parent | 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (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>
-rw-r--r-- | drivers/memory/pl172.c | 5 |
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) | |||
278 | } | 278 | } |
279 | 279 | ||
280 | static const struct amba_id pl172_ids[] = { | 280 | static const struct amba_id pl172_ids[] = { |
281 | /* PrimeCell MPMC PL172, EMC found on NXP LPC18xx and LPC43xx */ | ||
281 | { | 282 | { |
282 | .id = 0x07341172, | 283 | .id = 0x07041172, |
283 | .mask = 0xffffffff, | 284 | .mask = 0x3f0fffff, |
284 | }, | 285 | }, |
285 | { 0, 0 }, | 286 | { 0, 0 }, |
286 | }; | 287 | }; |