re-adding function for flash tps61310