dev-uart-s3c64xx.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // SPDX-License-Identifier: GPL-2.0
  2. //
  3. // Copyright 2008 Openmoko, Inc.
  4. // Copyright 2008 Simtec Electronics
  5. // Ben Dooks <[email protected]>
  6. // http://armlinux.simtec.co.uk/
  7. //
  8. // Base S3C64XX UART resource and device definitions
  9. #include <linux/kernel.h>
  10. #include <linux/types.h>
  11. #include <linux/interrupt.h>
  12. #include <linux/list.h>
  13. #include <linux/platform_device.h>
  14. #include <asm/mach/arch.h>
  15. #include <asm/mach/irq.h>
  16. #include "map.h"
  17. #include "irqs.h"
  18. #include "devs.h"
  19. /* Serial port registrations */
  20. /* 64xx uarts are closer together */
  21. static struct resource s3c64xx_uart0_resource[] = {
  22. [0] = DEFINE_RES_MEM(S3C_PA_UART0, SZ_256),
  23. [1] = DEFINE_RES_IRQ(IRQ_UART0),
  24. };
  25. static struct resource s3c64xx_uart1_resource[] = {
  26. [0] = DEFINE_RES_MEM(S3C_PA_UART1, SZ_256),
  27. [1] = DEFINE_RES_IRQ(IRQ_UART1),
  28. };
  29. static struct resource s3c6xx_uart2_resource[] = {
  30. [0] = DEFINE_RES_MEM(S3C_PA_UART2, SZ_256),
  31. [1] = DEFINE_RES_IRQ(IRQ_UART2),
  32. };
  33. static struct resource s3c64xx_uart3_resource[] = {
  34. [0] = DEFINE_RES_MEM(S3C_PA_UART3, SZ_256),
  35. [1] = DEFINE_RES_IRQ(IRQ_UART3),
  36. };
  37. struct s3c24xx_uart_resources s3c64xx_uart_resources[] __initdata = {
  38. [0] = {
  39. .resources = s3c64xx_uart0_resource,
  40. .nr_resources = ARRAY_SIZE(s3c64xx_uart0_resource),
  41. },
  42. [1] = {
  43. .resources = s3c64xx_uart1_resource,
  44. .nr_resources = ARRAY_SIZE(s3c64xx_uart1_resource),
  45. },
  46. [2] = {
  47. .resources = s3c6xx_uart2_resource,
  48. .nr_resources = ARRAY_SIZE(s3c6xx_uart2_resource),
  49. },
  50. [3] = {
  51. .resources = s3c64xx_uart3_resource,
  52. .nr_resources = ARRAY_SIZE(s3c64xx_uart3_resource),
  53. },
  54. };