mem.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (C) 2009 Lemote, Inc.
  3. * Author: Wu Zhangjin <wuzhangjin@gmail.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License as published by the
  7. * Free Software Foundation; either version 2 of the License, or (at your
  8. * option) any later version.
  9. */
  10. #ifndef __ASM_MACH_LOONGSON64_MEM_H
  11. #define __ASM_MACH_LOONGSON64_MEM_H
  12. /*
  13. * high memory space
  14. *
  15. * in loongson2e, starts from 512M
  16. * in loongson2f, starts from 2G 256M
  17. */
  18. #ifdef CONFIG_CPU_LOONGSON2E
  19. #define LOONGSON_HIGHMEM_START 0x20000000
  20. #else
  21. #define LOONGSON_HIGHMEM_START 0x90000000
  22. #endif
  23. /*
  24. * the peripheral registers(MMIO):
  25. *
  26. * On the Lemote Loongson 2e system, reside between 0x1000:0000 and 0x2000:0000.
  27. * On the Lemote Loongson 2f system, reside between 0x1000:0000 and 0x8000:0000.
  28. */
  29. #define LOONGSON_MMIO_MEM_START 0x10000000
  30. #ifdef CONFIG_CPU_LOONGSON2E
  31. #define LOONGSON_MMIO_MEM_END 0x20000000
  32. #else
  33. #define LOONGSON_MMIO_MEM_END 0x80000000
  34. #endif
  35. #endif /* __ASM_MACH_LOONGSON64_MEM_H */