init.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* linux/arch/arm/mach-s5p64x0/init.c
  2. *
  3. * Copyright (c) 2009-2010 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com
  5. *
  6. * S5P64X0 - Init support
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #include <linux/kernel.h>
  13. #include <linux/types.h>
  14. #include <linux/init.h>
  15. #include <linux/serial_core.h>
  16. #include <mach/map.h>
  17. #include <plat/cpu.h>
  18. #include <plat/devs.h>
  19. #include <plat/s5p6440.h>
  20. #include <plat/s5p6450.h>
  21. #include <plat/regs-serial.h>
  22. /* uart registration process */
  23. void __init s5p6440_init_uarts(struct s3c2410_uartcfg *cfg, int no)
  24. {
  25. int uart;
  26. for (uart = 0; uart < no; uart++) {
  27. s5p_uart_resources[uart].resources->start = S5P6440_PA_UART(uart);
  28. s5p_uart_resources[uart].resources->end = S5P6440_PA_UART(uart) + S5P_SZ_UART;
  29. }
  30. s3c24xx_init_uartdevs("s3c6400-uart", s5p_uart_resources, cfg, no);
  31. }
  32. void __init s5p6450_init_uarts(struct s3c2410_uartcfg *cfg, int no)
  33. {
  34. s3c24xx_init_uartdevs("s3c6400-uart", s5p_uart_resources, cfg, no);
  35. }