[BSP] change UART flag when register device driver.