Secure boot code for Freescale i.MX6 and P/T series processors