Hi santhosha,
In imx6 bsp you can check available serial ports by using below command,
=> ls /dev/tty*
Below command for configure baudrate,
=> stty -F /dev/ttymxc1 115200
Note: for example i given "ttymxc1" you can this port name, with respect to your needed serial port.
Regards,
Aravinth