s5j/serial: fix initialization order
s5j/serial: fix initialization order

GPIO pinmux configuration should be done before starting to supply PCLK
and EXTCLK to UART when opening it. Otherwise, a noise signal may be
introduced into the receiving FIFO, causing an odd RX interrupt. For the
same reason, this also applies when closing it.

This commit fixes the issue that select() and poll() fails on serial
devices.

Change-Id: I05309a1637574936f53a529d018dd28600b14295
Signed-off-by: Heesub Shin <45471ea77bd08f3d26635f3f5adb40ba41250a2b@samsung.com>

jeongarmy/TizenRT,davidfather/TizenRT,heejin-kim/TizenRT,btheosam/TizenRT,Parkjihooni6186/TizenRT,HONGCHAEHEE/TizenRT,JeonginKim/TizenRT,jeongarmy/TizenRT,an4967/TizenRT,Samsung/TizenRT,JeonginKim/TizenRT,davidfather/TizenRT,jeongchanKim/TizenRT,heejin-kim/TizenRT,btheosam/TizenRT,yashwanth686007/TizenRTOS,yashwanth686007/TizenRTOS,Samsung/TizenRT,an4967/TizenRT,shivgarg/TizenRT,Samsung/TizenRT,chanijjani/TizenRT,junmin-kim/TizenRT,jsdosa/TizenRT,shivgarg/TizenRT,an4967/TizenRT,junmin-kim/TizenRT,lokeshbv/TizenRT,lokeshbv/TizenRT,Parkjihooni6186/TizenRT,an4967/TizenRT,an4967/TizenRT,sunghan-chang/TizenRT,shivgarg/TizenRT,sunghan-chang/TizenRT,lokeshbv/TizenRT,chanijjani/TizenRT,pillip8282/TizenRT,btheosam/TizenRT,sunghan-chang/TizenRT,jeongchanKim/TizenRT,lokeshbv/TizenRT,junmin-kim/TizenRT,chanijjani/TizenRT,chanijjani/TizenRT,shivgarg/TizenRT,jsdosa/TizenRT,davidfather/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,btheosam/TizenRT,btheosam/TizenRT,yashwanth686007/TizenRTOS,heejin-kim/TizenRT,JeonginKim/TizenRT,JeongJunSik/TizenRT,JeongJunSik/TizenRT,HONGCHAEHEE/TizenRT,davidfather/TizenRT,jeongarmy/TizenRT,shivgarg/TizenRT,jeongchanKim/TizenRT,JeongJunSik/TizenRT,jeongchanKim/TizenRT,chanijjani/TizenRT,btheosam/TizenRT,yashwanth686007/TizenRTOS,HONGCHAEHEE/TizenRT,Samsung/TizenRT,HONGCHAEHEE/TizenRT,JeongJunSik/TizenRT,davidfather/TizenRT,HONGCHAEHEE/TizenRT,jeongarmy/TizenRT,heejin-kim/TizenRT,pillip8282/TizenRT,jsdosa/TizenRT,jeongchanKim/TizenRT,heejin-kim/TizenRT,sunghan-chang/TizenRT,pillip8282/TizenRT,JeonginKim/TizenRT,junmin-kim/TizenRT,jeongchanKim/TizenRT,HONGCHAEHEE/TizenRT,yashwanth686007/TizenRTOS,pillip8282/TizenRT,Samsung/TizenRT,JeonginKim/TizenRT,shivgarg/TizenRT,JeonginKim/TizenRT,Samsung/TizenRT,sunghan-chang/TizenRT,davidfather/TizenRT,pillip8282/TizenRT,davidfather/TizenRT,Parkjihooni6186/TizenRT,sunghan-chang/TizenRT,jsdosa/TizenRT,lokeshbv/TizenRT,chanijjani/TizenRT,junmin-kim/TizenRT,an4967/TizenRT,sunghan-chang/TizenRT,JeongJunSik/TizenRT,jsdosa/TizenRT,chanijjani/TizenRT,jeongarmy/TizenRT,an4967/TizenRT,jeongarmy/TizenRT,Parkjihooni6186/TizenRT,heejin-kim/TizenRT,Parkjihooni6186/TizenRT,pillip8282/TizenRT,lokeshbv/TizenRT,junmin-kim/TizenRT,jsdosa/TizenRT,JeongJunSik/TizenRT,jsdosa/TizenRT,Parkjihooni6186/TizenRT,yashwanth686007/TizenRTOS,junmin-kim/TizenRT,pillip8282/TizenRT,Samsung/TizenRT