lluart.c 895 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Static memory mapping for DEBUG_LL
  3. *
  4. * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
  5. *
  6. * Licensed under GPLv2 or later.
  7. */
  8. #include <linux/kernel.h>
  9. #include <asm/page.h>
  10. #include <asm/mach/map.h>
  11. #include "common.h"
  12. #if defined(CONFIG_DEBUG_SIRFPRIMA2_UART1)
  13. #define SIRFSOC_UART1_PA_BASE 0xb0060000
  14. #elif defined(CONFIG_DEBUG_SIRFMARCO_UART1)
  15. #define SIRFSOC_UART1_PA_BASE 0xcc060000
  16. #else
  17. #define SIRFSOC_UART1_PA_BASE 0
  18. #endif
  19. #define SIRFSOC_UART1_VA_BASE SIRFSOC_VA(0x060000)
  20. #define SIRFSOC_UART1_SIZE SZ_4K
  21. void __init sirfsoc_map_lluart(void)
  22. {
  23. struct map_desc sirfsoc_lluart_map = {
  24. .virtual = SIRFSOC_UART1_VA_BASE,
  25. .pfn = __phys_to_pfn(SIRFSOC_UART1_PA_BASE),
  26. .length = SIRFSOC_UART1_SIZE,
  27. .type = MT_DEVICE,
  28. };
  29. iotable_init(&sirfsoc_lluart_map, 1);
  30. }