[TF-M] SPM source and internal function changes