mem.h 862 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (C) 2009 Lemote, Inc.
  4. * Author: Wu Zhangjin <[email protected]>
  5. */
  6. #ifndef __ASM_MACH_LOONGSON2EF_MEM_H
  7. #define __ASM_MACH_LOONGSON2EF_MEM_H
  8. /*
  9. * high memory space
  10. *
  11. * in loongson2e, starts from 512M
  12. * in loongson2f, starts from 2G 256M
  13. */
  14. #ifdef CONFIG_CPU_LOONGSON2E
  15. #define LOONGSON_HIGHMEM_START 0x20000000
  16. #else
  17. #define LOONGSON_HIGHMEM_START 0x90000000
  18. #endif
  19. /*
  20. * the peripheral registers(MMIO):
  21. *
  22. * On the Lemote Loongson 2e system, reside between 0x1000:0000 and 0x2000:0000.
  23. * On the Lemote Loongson 2f system, reside between 0x1000:0000 and 0x8000:0000.
  24. */
  25. #define LOONGSON_MMIO_MEM_START 0x10000000
  26. #ifdef CONFIG_CPU_LOONGSON2E
  27. #define LOONGSON_MMIO_MEM_END 0x20000000
  28. #else
  29. #define LOONGSON_MMIO_MEM_END 0x80000000
  30. #endif
  31. #endif /* __ASM_MACH_LOONGSON2EF_MEM_H */