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

MIPS: Xilfpga: Switch to using generic defconfigs

Use the generic platform code and remove arch/mips/xilfpga

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15847/
[jhogan@kernel.org: Update arch/mips/Makefile snippet and move to end]
Signed-off-by: James Hogan <jhogan@kernel.org>

authored by

Zubair Lutfullah Kakakhel and committed by
James Hogan
0861aa12 b35565bb

+4 -226
-1
arch/mips/Kbuild.platforms
··· 34 34 platforms += sni 35 35 platforms += txx9 36 36 platforms += vr41xx 37 - platforms += xilfpga 38 37 39 38 # include the platform specific files 40 39 include $(patsubst %, $(srctree)/arch/mips/%/Platform, $(platforms))
-24
arch/mips/Kconfig
··· 468 468 help 469 469 This enables support for the IMG Pistachio SoC platform. 470 470 471 - config MACH_XILFPGA 472 - bool "MIPSfpga Xilinx based boards" 473 - select BOOT_ELF32 474 - select BOOT_RAW 475 - select BUILTIN_DTB 476 - select CEVT_R4K 477 - select COMMON_CLK 478 - select CSRC_R4K 479 - select GPIOLIB 480 - select IRQ_MIPS_CPU 481 - select LIBFDT 482 - select MIPS_CPU_SCACHE 483 - select SYS_HAS_EARLY_PRINTK 484 - select SYS_HAS_CPU_MIPS32_R2 485 - select SYS_SUPPORTS_32BIT_KERNEL 486 - select SYS_SUPPORTS_LITTLE_ENDIAN 487 - select SYS_SUPPORTS_ZBOOT_UART16550 488 - select USE_OF 489 - select USE_GENERIC_EARLY_PRINTK_8250 490 - select XILINX_INTC 491 - help 492 - This enables support for the IMG University Program MIPSfpga platform. 493 - 494 471 config MIPS_MALTA 495 472 bool "MIPS Malta board" 496 473 select ARCH_MAY_HAVE_PC_FDC ··· 1012 1035 source "arch/mips/loongson64/Kconfig" 1013 1036 source "arch/mips/netlogic/Kconfig" 1014 1037 source "arch/mips/paravirt/Kconfig" 1015 - source "arch/mips/xilfpga/Kconfig" 1016 1038 1017 1039 endmenu 1018 1040
+4
arch/mips/Makefile
··· 544 544 .PHONY: sead3micro_defconfig 545 545 sead3micro_defconfig: 546 546 $(Q)$(MAKE) -f $(srctree)/Makefile micro32r2el_defconfig BOARDS=sead-3 547 + 548 + .PHONY: xilfpga_defconfig 549 + xilfpga_defconfig: 550 + $(Q)$(MAKE) -f $(srctree)/Makefile 32r2el_defconfig BOARDS=xilfpga
-75
arch/mips/configs/xilfpga_defconfig
··· 1 - CONFIG_MACH_XILFPGA=y 2 - # CONFIG_COMPACTION is not set 3 - # CONFIG_LOCALVERSION_AUTO is not set 4 - CONFIG_EMBEDDED=y 5 - # CONFIG_VM_EVENT_COUNTERS is not set 6 - # CONFIG_COMPAT_BRK is not set 7 - CONFIG_SLAB=y 8 - # CONFIG_BLOCK is not set 9 - # CONFIG_SUSPEND is not set 10 - CONFIG_NET=y 11 - CONFIG_PACKET=y 12 - CONFIG_UNIX=y 13 - CONFIG_INET=y 14 - # CONFIG_IPV6 is not set 15 - # CONFIG_WIRELESS is not set 16 - # CONFIG_UEVENT_HELPER is not set 17 - CONFIG_DEVTMPFS=y 18 - CONFIG_DEVTMPFS_MOUNT=y 19 - # CONFIG_STANDALONE is not set 20 - # CONFIG_PREVENT_FIRMWARE_BUILD is not set 21 - # CONFIG_FW_LOADER is not set 22 - # CONFIG_ALLOW_DEV_COREDUMP is not set 23 - CONFIG_NETDEVICES=y 24 - # CONFIG_NET_CORE is not set 25 - # CONFIG_NET_VENDOR_ARC is not set 26 - # CONFIG_NET_CADENCE is not set 27 - # CONFIG_NET_VENDOR_BROADCOM is not set 28 - # CONFIG_NET_VENDOR_EZCHIP is not set 29 - # CONFIG_NET_VENDOR_INTEL is not set 30 - # CONFIG_NET_VENDOR_MARVELL is not set 31 - # CONFIG_NET_VENDOR_MICREL is not set 32 - # CONFIG_NET_VENDOR_NATSEMI is not set 33 - # CONFIG_NET_VENDOR_NETRONOME is not set 34 - # CONFIG_NET_VENDOR_QUALCOMM is not set 35 - # CONFIG_NET_VENDOR_RENESAS is not set 36 - # CONFIG_NET_VENDOR_ROCKER is not set 37 - # CONFIG_NET_VENDOR_SAMSUNG is not set 38 - # CONFIG_NET_VENDOR_SEEQ is not set 39 - # CONFIG_NET_VENDOR_SMSC is not set 40 - # CONFIG_NET_VENDOR_STMICRO is not set 41 - # CONFIG_NET_VENDOR_SYNOPSYS is not set 42 - # CONFIG_NET_VENDOR_VIA is not set 43 - # CONFIG_NET_VENDOR_WIZNET is not set 44 - CONFIG_XILINX_EMACLITE=y 45 - CONFIG_SMSC_PHY=y 46 - # CONFIG_WLAN is not set 47 - # CONFIG_INPUT_MOUSEDEV is not set 48 - # CONFIG_INPUT_KEYBOARD is not set 49 - # CONFIG_INPUT_MOUSE is not set 50 - # CONFIG_SERIO is not set 51 - CONFIG_VT_HW_CONSOLE_BINDING=y 52 - # CONFIG_UNIX98_PTYS is not set 53 - # CONFIG_LEGACY_PTYS is not set 54 - CONFIG_SERIAL_8250=y 55 - CONFIG_SERIAL_8250_CONSOLE=y 56 - CONFIG_SERIAL_OF_PLATFORM=y 57 - # CONFIG_HW_RANDOM is not set 58 - CONFIG_I2C=y 59 - CONFIG_I2C_CHARDEV=y 60 - # CONFIG_I2C_HELPER_AUTO is not set 61 - CONFIG_I2C_XILINX=y 62 - CONFIG_GPIO_SYSFS=y 63 - CONFIG_GPIO_XILINX=y 64 - CONFIG_SENSORS_ADT7410=y 65 - # CONFIG_USB_SUPPORT is not set 66 - # CONFIG_MIPS_PLATFORM_DEVICES is not set 67 - # CONFIG_IOMMU_SUPPORT is not set 68 - # CONFIG_PROC_PAGE_MONITOR is not set 69 - CONFIG_TMPFS=y 70 - # CONFIG_MISC_FILESYSTEMS is not set 71 - CONFIG_PANIC_ON_OOPS=y 72 - # CONFIG_SCHED_DEBUG is not set 73 - # CONFIG_FTRACE is not set 74 - CONFIG_CMDLINE_BOOL=y 75 - CONFIG_CMDLINE="console=ttyS0,115200"
-9
arch/mips/xilfpga/Kconfig
··· 1 - choice 2 - prompt "Machine type" 3 - depends on MACH_XILFPGA 4 - default XILFPGA_NEXYS4DDR 5 - 6 - config XILFPGA_NEXYS4DDR 7 - bool "Nexys4DDR by Digilent" 8 - 9 - endchoice
-7
arch/mips/xilfpga/Makefile
··· 1 - # 2 - # Makefile for the Xilfpga 3 - # 4 - 5 - obj-y += init.o 6 - obj-y += intc.o 7 - obj-y += time.o
-3
arch/mips/xilfpga/Platform
··· 1 - platform-$(CONFIG_MACH_XILFPGA) += xilfpga/ 2 - cflags-$(CONFIG_MACH_XILFPGA) += -I$(srctree)/arch/mips/include/asm/mach-xilfpga 3 - load-$(CONFIG_MACH_XILFPGA) += 0xffffffff80100000
-44
arch/mips/xilfpga/init.c
··· 1 - /* 2 - * Xilfpga platform setup 3 - * 4 - * Copyright (C) 2015 Imagination Technologies 5 - * Author: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> 6 - * 7 - * This program is free software; you can redistribute it and/or modify it 8 - * under the terms and conditions of the GNU General Public License, 9 - * version 2, as published by the Free Software Foundation. 10 - */ 11 - 12 - #include <linux/of_fdt.h> 13 - 14 - #include <asm/prom.h> 15 - 16 - #define XILFPGA_UART_BASE 0xb0401000 17 - 18 - const char *get_system_type(void) 19 - { 20 - return "MIPSfpga"; 21 - } 22 - 23 - void __init plat_mem_setup(void) 24 - { 25 - __dt_setup_arch(__dtb_start); 26 - strlcpy(arcs_cmdline, boot_command_line, COMMAND_LINE_SIZE); 27 - } 28 - 29 - void __init prom_init(void) 30 - { 31 - setup_8250_early_printk_port(XILFPGA_UART_BASE, 2, 50000); 32 - } 33 - 34 - void __init prom_free_prom_memory(void) 35 - { 36 - } 37 - 38 - void __init device_tree_init(void) 39 - { 40 - if (!initial_boot_params) 41 - return; 42 - 43 - unflatten_and_copy_device_tree(); 44 - }
-22
arch/mips/xilfpga/intc.c
··· 1 - /* 2 - * Xilfpga interrupt controller setup 3 - * 4 - * Copyright (C) 2015 Imagination Technologies 5 - * Author: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> 6 - * 7 - * This program is free software; you can redistribute it and/or modify it 8 - * under the terms and conditions of the GNU General Public License, 9 - * version 2, as published by the Free Software Foundation. 10 - */ 11 - 12 - #include <linux/of.h> 13 - #include <linux/of_irq.h> 14 - #include <linux/irqchip.h> 15 - 16 - #include <asm/irq_cpu.h> 17 - 18 - 19 - void __init arch_init_irq(void) 20 - { 21 - irqchip_init(); 22 - }
-41
arch/mips/xilfpga/time.c
··· 1 - /* 2 - * Xilfpga clocksource/timer setup 3 - * 4 - * Copyright (C) 2015 Imagination Technologies 5 - * Author: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> 6 - * 7 - * This program is free software; you can redistribute it and/or modify it 8 - * under the terms and conditions of the GNU General Public License, 9 - * version 2, as published by the Free Software Foundation. 10 - */ 11 - 12 - #include <linux/clk.h> 13 - #include <linux/clk-provider.h> 14 - #include <linux/clocksource.h> 15 - #include <linux/of.h> 16 - 17 - #include <asm/time.h> 18 - 19 - void __init plat_time_init(void) 20 - { 21 - struct device_node *np; 22 - struct clk *clk; 23 - 24 - of_clk_init(NULL); 25 - timer_probe(); 26 - 27 - np = of_get_cpu_node(0, NULL); 28 - if (!np) { 29 - pr_err("Failed to get CPU node\n"); 30 - return; 31 - } 32 - 33 - clk = of_clk_get(np, 0); 34 - if (IS_ERR(clk)) { 35 - pr_err("Failed to get CPU clock: %ld\n", PTR_ERR(clk)); 36 - return; 37 - } 38 - 39 - mips_hpt_frequency = clk_get_rate(clk) / 2; 40 - clk_put(clk); 41 - }