--- zzzz-none-000/linux-3.10.107/arch/arm/include/asm/mach/flash.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/arch/arm/include/asm/mach/flash.h 2021-11-10 11:53:52.000000000 +0000 @@ -13,6 +13,11 @@ struct mtd_partition; struct mtd_info; +enum sw_version { + VERSION_1 = 0, + VERSION_2, +}; + /* * map_name: the map probe function name * name: flash device name (eg, as used with mtdparts=) @@ -23,6 +28,7 @@ * mmcontrol: method called to enable or disable Sync. Burst Read in OneNAND * parts: optional array of mtd_partitions for static partitioning * nr_parts: number of mtd_partitions for static partitoning + * version: software register interface version */ struct flash_platform_data { const char *map_name; @@ -34,6 +40,7 @@ void (*mmcontrol)(struct mtd_info *mtd, int sync_read); struct mtd_partition *parts; unsigned int nr_parts; + enum sw_version version; }; #endif