MMA : changing BOOT_STUB to COREBOOT region and few more things

(1) Added following new function.

cbfs_locate_file_in_region - to locate (and mmap) a file in a flash region
	This function is used to look for MMA blobs in "COREBOOT" cbfs region

(2) would write to "COREBOOT" region.

(3) changes in Few MMA tests need system to be COLD
rebooted before test can start. would do COLD reboot
after each test, and so i would sync the filesystem before doing COLD reboot.

TEST=Build and Boot kunimitsu (FAB4). Able to locate MMA files in CBFS
Not tested on Glados.

Change-Id: I402f84f5c46720710704dfd32b9319c73c412e47
Signed-off-by: Pratik Prajapati <>
Reviewed-by: Aaron Durbin <>
3 files changed