Commit 1c773ea4dceff889c2f872343609a87ae0cfbf56
Committed by
Ralf Baechle
1 parent
65040e224e
Exists in
master
and in
6 other branches
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>
Showing 7 changed files with 50 additions and 0 deletions Side-by-side Diff
arch/mips/Kconfig
... | ... | @@ -783,6 +783,33 @@ |
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" |
... | ... | @@ -1472,6 +1499,19 @@ |
1472 | 1499 | select CPU_SUPPORTS_HUGEPAGES |
1473 | 1500 | help |
1474 | 1501 | Netlogic Microsystems XLR/XLS processors. |
1502 | + | |
1503 | +config CPU_XLP | |
1504 | + bool "Netlogic XLP SoC" | |
1505 | + depends on SYS_HAS_CPU_XLP | |
1506 | + select CPU_SUPPORTS_32BIT_KERNEL | |
1507 | + select CPU_SUPPORTS_64BIT_KERNEL | |
1508 | + select CPU_SUPPORTS_HIGHMEM | |
1509 | + select CPU_HAS_LLSC | |
1510 | + select WEAK_ORDERING | |
1511 | + select WEAK_REORDERING_BEYOND_LLSC | |
1512 | + select CPU_HAS_PREFETCH | |
1513 | + help | |
1514 | + Netlogic Microsystems XLP processors. | |
1475 | 1515 | endchoice |
1476 | 1516 | |
1477 | 1517 | if CPU_LOONGSON2F |
... | ... | @@ -1603,6 +1643,9 @@ |
1603 | 1643 | bool |
1604 | 1644 | |
1605 | 1645 | config SYS_HAS_CPU_XLR |
1646 | + bool | |
1647 | + | |
1648 | +config SYS_HAS_CPU_XLP | |
1606 | 1649 | bool |
1607 | 1650 | |
1608 | 1651 | # |
arch/mips/kernel/Makefile
... | ... | @@ -55,6 +55,7 @@ |
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 |
arch/mips/lib/Makefile
... | ... | @@ -29,6 +29,7 @@ |
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 |
arch/mips/mm/Makefile
... | ... | @@ -31,6 +31,7 @@ |
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 |
arch/mips/netlogic/Makefile
arch/mips/netlogic/Platform
arch/mips/netlogic/xlp/Makefile