I am trying to use some of Xilinx API's from gpio module in XilinxProcessorIPLib by includeing xgpio.h header file, but i am facing compilation error (fatal error: xgpio.h: No such file or directory).
I am doing a #include "xgpio.h" in "xfsbl_main.c" , is there some way where i can enable the gpio driver module so that it gets included with fsbl source code
Are you trying to use the API in the XilinxProcessorIPLib in Linux? The drivers here are baremetal drivers, and will not work in linux.
If you are using baremetal, then you can go to the BSP settings in Vitis, and add the gpio driver here.