lluart.c 583 B

1234567891011121314151617181920212223242526
  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 <mach/map.h>
  12. #include <mach/uart.h>
  13. void __init sirfsoc_map_lluart(void)
  14. {
  15. struct map_desc sirfsoc_lluart_map = {
  16. .virtual = SIRFSOC_UART1_VA_BASE,
  17. .pfn = __phys_to_pfn(SIRFSOC_UART1_PA_BASE),
  18. .length = SIRFSOC_UART1_SIZE,
  19. .type = MT_DEVICE,
  20. };
  21. iotable_init(&sirfsoc_lluart_map, 1);
  22. }