memory: pl172: correct MPMC peripheral ID register bits
authorVladimir Zapolskiy <vz@mleia.com>
Mon, 28 Sep 2015 16:51:18 +0000 (19:51 +0300)
committerJoachim Eastwood <manabian@gmail.com>
Tue, 29 Sep 2015 20:19:02 +0000 (22:19 +0200)
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>
drivers/memory/pl172.c

index b2ef6072fbf41193d636ff88415ee033e42021aa..95a4ad72c9929dd36202cb1ceaf414e2d7a8e332 100644 (file)
@@ -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 },
 };