#define MAX_CLK_NAME_LENGTH 15
-static inline int s3c24xx_serial_getsource(struct uart_port *port)
-{
- struct s3c24xx_uart_info *info = s3c24xx_port_to_info(port);
- unsigned int ucon;
-
- if (info->num_clks == 1)
- return 0;
-
- ucon = rd_regl(port, S3C2410_UCON);
- ucon &= info->clksel_mask;
- return ucon >> info->clksel_shift;
-}
-
-static void s3c24xx_serial_setsource(struct uart_port *port,
- unsigned int clk_sel)
-{
- struct s3c24xx_uart_info *info = s3c24xx_port_to_info(port);
- unsigned int ucon;
-
- if (info->num_clks == 1)
- return;
-
- ucon = rd_regl(port, S3C2410_UCON);
- if ((ucon & info->clksel_mask) >> info->clksel_shift == clk_sel)
- return;
-
- ucon &= ~info->clksel_mask;
- ucon |= clk_sel << info->clksel_shift;
- wr_regl(port, S3C2410_UCON, ucon);
-}
-
static unsigned int s3c24xx_serial_getclk(struct s3c24xx_uart_port *ourport,
unsigned int req_baud, struct clk **best_clk,
unsigned int *clk_num)