Hello Dhanapal,
It is very hard to find issue from your source code in patch, we don't have board to test it. but from your application, and refer to our Sabre AI baord & i.MX6 reference manual, your application is no problem.
you had better debug your source on your board, if you enconter questions, you can refer to BSP for Sabre AI board, because your application is very similar to it.
Regards,
Weidong