init.c 765 B

1234567891011121314151617181920212223242526272829
  1. /* linux/arch/arm/mach-exynos4/init.c
  2. *
  3. * Copyright (c) 2010 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com/
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <linux/serial_core.h>
  11. #include <plat/cpu.h>
  12. #include <plat/devs.h>
  13. #include <plat/regs-serial.h>
  14. /* uart registration process */
  15. void __init exynos4_common_init_uarts(struct s3c2410_uartcfg *cfg, int no)
  16. {
  17. struct s3c2410_uartcfg *tcfg = cfg;
  18. u32 ucnt;
  19. for (ucnt = 0; ucnt < no; ucnt++, tcfg++) {
  20. tcfg->has_fracval = 1;
  21. tcfg->flags |= NO_NEED_CHECK_CLKSRC;
  22. }
  23. s3c24xx_init_uartdevs("s5pv210-uart", s5p_uart_resources, cfg, no);
  24. }