0022-MIPS-ralink-make-early_printk-work-on-RT2880.patch 964 B

123456789101112131415161718192021222324252627282930313233
  1. From 9ed190912864c8b96d888af2cb66efcf1dc5562a Mon Sep 17 00:00:00 2001
  2. From: John Crispin <[email protected]>
  3. Date: Tue, 9 Apr 2013 18:31:15 +0200
  4. Subject: [PATCH 22/79] MIPS: ralink: make early_printk work on RT2880
  5. RT2880 has a different location for the early serial port.
  6. Signed-off-by: John Crispin <[email protected]>
  7. Acked-by: Gabor Juhos <[email protected]>
  8. Patchwork: http://patchwork.linux-mips.org/patch/5170/
  9. ---
  10. arch/mips/ralink/early_printk.c | 4 ++++
  11. 1 file changed, 4 insertions(+)
  12. diff --git a/arch/mips/ralink/early_printk.c b/arch/mips/ralink/early_printk.c
  13. index c4ae47e..b46d041 100644
  14. --- a/arch/mips/ralink/early_printk.c
  15. +++ b/arch/mips/ralink/early_printk.c
  16. @@ -11,7 +11,11 @@
  17. #include <asm/addrspace.h>
  18. +#ifdef CONFIG_SOC_RT288X
  19. +#define EARLY_UART_BASE 0x300c00
  20. +#else
  21. #define EARLY_UART_BASE 0x10000c00
  22. +#endif
  23. #define UART_REG_RX 0x00
  24. #define UART_REG_TX 0x04
  25. --
  26. 1.7.10.4