]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
soc: renesas: Identify R-Car M3-W ES1.1
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 30 Oct 2017 17:29:58 +0000 (18:29 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 27 Nov 2017 10:40:57 +0000 (11:40 +0100)
The Product Register of R-Car M3-W ES1.1 incorrectly identifies the SoC
revision as ES2.0.  Add a workaround to fix this.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/soc/renesas/renesas-soc.c

index 9f4ee2567c72c6714cd0d7a258b47cff25fdfd96..926b7fd6db2d08c4ff1b762c2b1ff2e1e05fb324 100644 (file)
@@ -250,6 +250,9 @@ static int __init renesas_soc_init(void)
        if (chipid) {
                product = readl(chipid);
                iounmap(chipid);
+               /* R-Car M3-W ES1.1 incorrectly identifies as ES2.0 */
+               if ((product & 0x7fff) == 0x5210)
+                       product ^= 0x11;
                if (soc->id && ((product >> 8) & 0xff) != soc->id) {
                        pr_warn("SoC mismatch (product = 0x%x)\n", product);
                        return -ENODEV;