Suppose I have a WL1835MOD bluetooth module(or CC2540, or some other devices like a keyboard), and I want to let it work both in secure state(SCR_EL3.NS=0) and in Non-secure state(SCR_EL3.NS=0), how should I config it?
I understand that Hikey provide with the TrustZone feature, but I don’t quite understand how to config it to work when in secure state(when SCR_EL3.NS=0). Can I simply change the NS bit in SCR register to make it work?
I have roughly searched the arm documentation of armv8, but all I get is that the NS bit in SCR_EL3 register will infect the secure state. I really don’t know much about SoC before, could anyone please give me some advice?
Thanks a lot.