How to boot the edk2 from the qspi flash

This thread talks about running u-boot from flash.
Booting from Flash
Running edk2 from flash should work the same way. I’ve never used edk2 so can’t comment on that.