Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Netlogic: Add XLP makefiles and config

- Add CPU_XLP and NLM_XLR_BOARD to arch/mips/Kconfig for Netlogic XLP boards
- Update mips Makefiles to add XLP

Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2968/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Jayachandran C and committed by
Ralf Baechle
1c773ea4 65040e22

+50
+43
arch/mips/Kconfig
··· 783 783 Support for systems based on Netlogic XLR and XLS processors. 784 784 Say Y here if you have a XLR or XLS based board. 785 785 786 + config NLM_XLP_BOARD 787 + bool "Netlogic XLP based systems" 788 + depends on EXPERIMENTAL 789 + select BOOT_ELF32 790 + select NLM_COMMON 791 + select SYS_HAS_CPU_XLP 792 + select SYS_SUPPORTS_SMP 793 + select HW_HAS_PCI 794 + select SWAP_IO_SPACE 795 + select SYS_SUPPORTS_32BIT_KERNEL 796 + select SYS_SUPPORTS_64BIT_KERNEL 797 + select 64BIT_PHYS_ADDR 798 + select SYS_SUPPORTS_BIG_ENDIAN 799 + select SYS_SUPPORTS_LITTLE_ENDIAN 800 + select SYS_SUPPORTS_HIGHMEM 801 + select DMA_COHERENT 802 + select NR_CPUS_DEFAULT_32 803 + select CEVT_R4K 804 + select CSRC_R4K 805 + select IRQ_CPU 806 + select ZONE_DMA if 64BIT 807 + select SYNC_R4K 808 + select SYS_HAS_EARLY_PRINTK 809 + help 810 + This board is based on Netlogic XLP Processor. 811 + Say Y here if you have a XLP based board. 812 + 786 813 endchoice 787 814 788 815 source "arch/mips/alchemy/Kconfig" ··· 1499 1472 select CPU_SUPPORTS_HUGEPAGES 1500 1473 help 1501 1474 Netlogic Microsystems XLR/XLS processors. 1475 + 1476 + config CPU_XLP 1477 + bool "Netlogic XLP SoC" 1478 + depends on SYS_HAS_CPU_XLP 1479 + select CPU_SUPPORTS_32BIT_KERNEL 1480 + select CPU_SUPPORTS_64BIT_KERNEL 1481 + select CPU_SUPPORTS_HIGHMEM 1482 + select CPU_HAS_LLSC 1483 + select WEAK_ORDERING 1484 + select WEAK_REORDERING_BEYOND_LLSC 1485 + select CPU_HAS_PREFETCH 1486 + help 1487 + Netlogic Microsystems XLP processors. 1502 1488 endchoice 1503 1489 1504 1490 if CPU_LOONGSON2F ··· 1643 1603 bool 1644 1604 1645 1605 config SYS_HAS_CPU_XLR 1606 + bool 1607 + 1608 + config SYS_HAS_CPU_XLP 1646 1609 bool 1647 1610 1648 1611 #
+1
arch/mips/kernel/Makefile
··· 55 55 obj-$(CONFIG_CPU_VR41XX) += r4k_fpu.o r4k_switch.o 56 56 obj-$(CONFIG_CPU_CAVIUM_OCTEON) += octeon_switch.o 57 57 obj-$(CONFIG_CPU_XLR) += r4k_fpu.o r4k_switch.o 58 + obj-$(CONFIG_CPU_XLP) += r4k_fpu.o r4k_switch.o 58 59 59 60 obj-$(CONFIG_SMP) += smp.o 60 61 obj-$(CONFIG_SMP_UP) += smp-up.o
+1
arch/mips/lib/Makefile
··· 29 29 obj-$(CONFIG_CPU_VR41XX) += dump_tlb.o 30 30 obj-$(CONFIG_CPU_CAVIUM_OCTEON) += dump_tlb.o 31 31 obj-$(CONFIG_CPU_XLR) += dump_tlb.o 32 + obj-$(CONFIG_CPU_XLP) += dump_tlb.o 32 33 33 34 # libgcc-style stuff needed in the kernel 34 35 obj-y += ashldi3.o ashrdi3.o cmpdi2.o lshrdi3.o ucmpdi2.o
+1
arch/mips/mm/Makefile
··· 31 31 obj-$(CONFIG_CPU_VR41XX) += c-r4k.o cex-gen.o tlb-r4k.o 32 32 obj-$(CONFIG_CPU_CAVIUM_OCTEON) += c-octeon.o cex-oct.o tlb-r4k.o 33 33 obj-$(CONFIG_CPU_XLR) += c-r4k.o tlb-r4k.o cex-gen.o 34 + obj-$(CONFIG_CPU_XLP) += c-r4k.o tlb-r4k.o cex-gen.o 34 35 35 36 obj-$(CONFIG_IP22_CPU_SCACHE) += sc-ip22.o 36 37 obj-$(CONFIG_R5000_CPU_SCACHE) += sc-r5k.o
+1
arch/mips/netlogic/Makefile
··· 1 1 obj-$(CONFIG_NLM_COMMON) += common/ 2 2 obj-$(CONFIG_CPU_XLR) += xlr/ 3 + obj-$(CONFIG_CPU_XLP) += xlp/
+1
arch/mips/netlogic/Platform
··· 8 8 # use mips64 if xlr is not available 9 9 # 10 10 cflags-$(CONFIG_CPU_XLR) += $(call cc-option,-march=xlr,-march=mips64) 11 + cflags-$(CONFIG_CPU_XLP) += $(call cc-option,-march=xlp,-march=mips64r2) 11 12 12 13 # 13 14 # NETLOGIC processor support
+2
arch/mips/netlogic/xlp/Makefile
··· 1 + obj-y += setup.o platform.o nlm_hal.o 2 + obj-$(CONFIG_SMP) += smpboot.o wakeup.o