nxp: helper function used by plat & common code
nxp: helper function used by plat & common code

Signed-off-by: rocket <7bfbe6809ea19daf860de7eff5f62bdde4f715e4@nxp.com>
Signed-off-by: Pankaj Gupta <c3ec4fc81871614951009ffb2adac92410a42e25@nxp.com>
Change-Id: Idafd8b0d94edf3515e8317431274d77289b7a1d0

achingupta/arm-trusted-firmware,achingupta/arm-trusted-firmware