loongson1.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (c) 2011 Zhang, Keguang <keguang.zhang@gmail.com>
  3. *
  4. * Register mappings for Loongson 1
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. */
  11. #ifndef __ASM_MACH_LOONGSON1_LOONGSON1_H
  12. #define __ASM_MACH_LOONGSON1_LOONGSON1_H
  13. #define DEFAULT_MEMSIZE 256 /* If no memsize provided */
  14. /* Loongson 1 Register Bases */
  15. #define LS1X_INTC_BASE 0x1fd01040
  16. #define LS1X_EHCI_BASE 0x1fe00000
  17. #define LS1X_OHCI_BASE 0x1fe08000
  18. #define LS1X_GMAC0_BASE 0x1fe10000
  19. #define LS1X_GMAC1_BASE 0x1fe20000
  20. #define LS1X_UART0_BASE 0x1fe40000
  21. #define LS1X_UART1_BASE 0x1fe44000
  22. #define LS1X_UART2_BASE 0x1fe48000
  23. #define LS1X_UART3_BASE 0x1fe4c000
  24. #define LS1X_CAN0_BASE 0x1fe50000
  25. #define LS1X_CAN1_BASE 0x1fe54000
  26. #define LS1X_I2C0_BASE 0x1fe58000
  27. #define LS1X_I2C1_BASE 0x1fe68000
  28. #define LS1X_I2C2_BASE 0x1fe70000
  29. #define LS1X_PWM_BASE 0x1fe5c000
  30. #define LS1X_WDT_BASE 0x1fe5c060
  31. #define LS1X_RTC_BASE 0x1fe64000
  32. #define LS1X_AC97_BASE 0x1fe74000
  33. #define LS1X_NAND_BASE 0x1fe78000
  34. #define LS1X_CLK_BASE 0x1fe78030
  35. #include <regs-clk.h>
  36. #include <regs-wdt.h>
  37. #endif /* __ASM_MACH_LOONGSON1_LOONGSON1_H */