0124-MIPS-ralink-add-memory-definition-for-RT2880.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 45529406ea5b481da5986e0a14ae26a8c103691b Mon Sep 17 00:00:00 2001
  2. From: John Crispin <[email protected]>
  3. Date: Sat, 13 Apr 2013 15:37:37 +0200
  4. Subject: [PATCH 124/164] MIPS: ralink: add memory definition for RT2880
  5. Populate struct soc_info with the data that describes our RAM window.
  6. Signed-off-by: John Crispin <[email protected]>
  7. Patchwork: http://patchwork.linux-mips.org/patch/5181/
  8. ---
  9. arch/mips/include/asm/mach-ralink/rt288x.h | 4 ++++
  10. arch/mips/ralink/rt288x.c | 4 ++++
  11. 2 files changed, 8 insertions(+)
  12. --- a/arch/mips/include/asm/mach-ralink/rt288x.h
  13. +++ b/arch/mips/include/asm/mach-ralink/rt288x.h
  14. @@ -46,4 +46,8 @@
  15. #define CLKCFG_SRAM_CS_N_WDT BIT(9)
  16. +#define RT2880_SDRAM_BASE 0x08000000
  17. +#define RT2880_MEM_SIZE_MIN 2
  18. +#define RT2880_MEM_SIZE_MAX 128
  19. +
  20. #endif
  21. --- a/arch/mips/ralink/rt288x.c
  22. +++ b/arch/mips/ralink/rt288x.c
  23. @@ -136,4 +136,8 @@ void prom_soc_init(struct ralink_soc_inf
  24. name,
  25. (id >> CHIP_ID_ID_SHIFT) & CHIP_ID_ID_MASK,
  26. (id & CHIP_ID_REV_MASK));
  27. +
  28. + soc_info->mem_base = RT2880_SDRAM_BASE;
  29. + soc_info->mem_size_min = RT2880_MEM_SIZE_MIN;
  30. + soc_info->mem_size_max = RT2880_MEM_SIZE_MAX;
  31. }