Add support for more spansion flash
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 24 Sep 2021 04:24:37 +0000 (14:24 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 25 Sep 2021 08:18:32 +0000 (18:18 +1000)
That's the one on the Wukong v2

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
litedram/gen-src/sdram_init/main.c

index 28a259987f4e937a8ad95588ff59e485970a278c..19bbaaf630604cc190e5d54e913d02b35b35d70d 100644 (file)
@@ -125,7 +125,7 @@ static bool check_flash(void)
 
        /* Supported flash types for quad mode */
        if (id[0] == 0x01 &&
-           (id[1] == 0x02 || id[1] == 0x20) &&
+           (id[1] == 0x02 || id[1] == 0x20 || id[1] == 0x60) &&
            (id[2] == 0x18 || id[2] == 0x19)) {
                check_spansion_quad_mode();
                quad = true;