flash partitions: adapt CC/CC3D to new flash partition API