diff --git a/br-ext-chip-goke/board/gk710x/kernel/patches/0004-gkflash-add-xm25qh64a.patch b/br-ext-chip-goke/board/gk710x/kernel/patches/0004-gkflash-add-xm25qh64a.patch new file mode 100644 index 00000000..9832ad0e --- /dev/null +++ b/br-ext-chip-goke/board/gk710x/kernel/patches/0004-gkflash-add-xm25qh64a.patch @@ -0,0 +1,27 @@ +--- a/drivers/mtd/devices/gk_sflash_v1_00.c ++++ b/drivers/mtd/devices/gk_sflash_v1_00.c +@@ -732,7 +732,23 @@ + /* lock_mask */ 0xFFFF, + /* io4_mask */ 0xFFFF, + /* channel */ 0x0, +- } ++ }, ++ { ++ /* manufacture_ID */ 0x20, ++ /* device_ID */ 0x7017, ++ /* manufacture_name */ "XMC", ++ /* device_name */ "XM25QH64A", ++ /* device_bytes */ 8388608, ++ /* sector_count */ 128, ++ /* sector_bytes */ 65536, ++ /* sector_pages */ 256, ++ /* page_bytes */ 256, ++ /* commands */ &sflash_commands_eon, ++ /* feature */ GD_SFLASH_1X_WRITE | GD_SFLASH_1X_READ, ++ /* lock_mask */ 0x003C, ++ /* io4_mask */ 0xFFFF, ++ /* channel */ 0x0, ++ }, + + }; + static goke_sflash_feature_e old_feature = GOKE_SFLASH_FEATURE_IO1;