Platform 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #
  2. # Loongson Processors' Support
  3. #
  4. # Only gcc >= 4.4 have Loongson specific support
  5. cflags-$(CONFIG_CPU_LOONGSON2) += -Wa,--trap
  6. cflags-$(CONFIG_CPU_LOONGSON2E) += \
  7. $(call cc-option,-march=loongson2e,-march=r4600)
  8. cflags-$(CONFIG_CPU_LOONGSON2F) += \
  9. $(call cc-option,-march=loongson2f,-march=r4600)
  10. # Enable the workarounds for Loongson2f
  11. ifdef CONFIG_CPU_LOONGSON2F_WORKAROUNDS
  12. ifeq ($(call as-option,-Wa$(comma)-mfix-loongson2f-nop,),)
  13. $(error only binutils >= 2.20.2 have needed option -mfix-loongson2f-nop)
  14. else
  15. cflags-$(CONFIG_CPU_NOP_WORKAROUNDS) += -Wa$(comma)-mfix-loongson2f-nop
  16. endif
  17. ifeq ($(call as-option,-Wa$(comma)-mfix-loongson2f-jump,),)
  18. $(error only binutils >= 2.20.2 have needed option -mfix-loongson2f-jump)
  19. else
  20. cflags-$(CONFIG_CPU_JUMP_WORKAROUNDS) += -Wa$(comma)-mfix-loongson2f-jump
  21. endif
  22. endif
  23. #
  24. # Loongson Machines' Support
  25. #
  26. platform-$(CONFIG_MACH_LOONGSON) += loongson/
  27. cflags-$(CONFIG_MACH_LOONGSON) += -I$(srctree)/arch/mips/include/asm/mach-loongson -mno-branch-likely
  28. load-$(CONFIG_LEMOTE_FULOONG2E) += 0xffffffff80100000
  29. load-$(CONFIG_LEMOTE_MACH2F) += 0xffffffff80200000