Hi Stefan
I would very much prefer if you could add that function before we commit the M45 series. Feel free to split the existing patch on chip families... I will probably do that anyway before committing it.
Another general nitpick: if it is not too much of a hassle please do not spread the TODO comment for the .printlock field over 3 lines; "/* TODO: improve */" is used everywhere else and your editor probably expanded that automatically.
Thanks for your continued effort (and thanks to Steven for his reviews too).
I wrote function page programming erase block and sending a new version of patch