Changeset 43797


Ignore:
Timestamp:
2014-12-29T18:11:13+01:00 (3 years ago)
Author:
hauke
Message:

mpc83xx: add support for kernel 3.14

This is compile tested only, please run test and report back.

Signed-off-by: Hauke Mehrtens <hauke@…>

Location:
trunk/target/linux/mpc83xx
Files:
9 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/mpc83xx/config-3.14

    r43795 r43797  
    1414CONFIG_ARCH_HIBERNATION_POSSIBLE=y 
    1515CONFIG_ARCH_MAY_HAVE_PC_FDC=y 
     16CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y 
     17CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y 
    1618# CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set 
     19# CONFIG_ARCH_RANDOM is not set 
    1720CONFIG_ARCH_REQUIRE_GPIOLIB=y 
     21CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y 
    1822CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y 
    19 CONFIG_ARCH_SUPPORTS_MSI=y 
    2023CONFIG_ARCH_SUPPORTS_UPROBES=y 
    2124CONFIG_ARCH_SUSPEND_POSSIBLE=y 
     
    2326CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y 
    2427CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y 
    25 # CONFIG_ARPD is not set 
    2628# CONFIG_ASP834x is not set 
    2729CONFIG_ASYNC_TX_ENABLE_CHANNEL_SWITCH=y 
     
    3638CONFIG_CMDLINE_BOOL=y 
    3739CONFIG_COMPAT_BRK=y 
     40CONFIG_CPU_BIG_ENDIAN=y 
     41# CONFIG_CPU_LITTLE_ENDIAN is not set 
    3842CONFIG_CRC_CCITT=y 
    3943CONFIG_CRYPTO_AEAD=y 
     
    6266CONFIG_DMA_OF=y 
    6367CONFIG_DTC=y 
     68# CONFIG_DW_DMAC_CORE is not set 
     69# CONFIG_DW_DMAC_PCI is not set 
    6470# CONFIG_E200 is not set 
    6571CONFIG_EARLY_PRINTK=y 
     
    7884# CONFIG_FSL_ULI1575 is not set 
    7985CONFIG_FS_POSIX_ACL=y 
    80 CONFIG_GENERIC_ACL=y 
    8186CONFIG_GENERIC_ATOMIC64=y 
    8287CONFIG_GENERIC_BUG=y 
     
    8489CONFIG_GENERIC_CLOCKEVENTS_BUILD=y 
    8590CONFIG_GENERIC_CMOS_UPDATE=y 
     91# CONFIG_GENERIC_CSUM is not set 
    8692CONFIG_GENERIC_IO=y 
    8793CONFIG_GENERIC_IRQ_SHOW=y 
     
    114120# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set 
    115121CONFIG_HAVE_DEBUG_KMEMLEAK=y 
     122CONFIG_HAVE_DEBUG_STACKOVERFLOW=y 
    116123CONFIG_HAVE_DMA_API_DEBUG=y 
    117124CONFIG_HAVE_DMA_ATTRS=y 
     
    122129CONFIG_HAVE_FUNCTION_TRACER=y 
    123130# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set 
    124 CONFIG_HAVE_GENERIC_HARDIRQS=y 
    125131CONFIG_HAVE_IDE=y 
    126132CONFIG_HAVE_IOREMAP_PROT=y 
     133CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y 
    127134CONFIG_HAVE_LATENCYTOP_SUPPORT=y 
    128135CONFIG_HAVE_MEMBLOCK=y 
     
    195202CONFIG_MTD_NAND_FSL_UPM=y 
    196203CONFIG_MTD_NAND_RB_PPC=y 
    197 CONFIG_MTD_OF_PARTS=y 
    198 CONFIG_MTD_PHYSMAP_OF=y 
    199204# CONFIG_MTD_SM_COMMON is not set 
    200205CONFIG_MTD_UBI=y 
     
    213218CONFIG_OF=y 
    214219CONFIG_OF_ADDRESS=y 
    215 CONFIG_OF_DEVICE=y 
    216220CONFIG_OF_EARLY_FLATTREE=y 
    217221CONFIG_OF_FLATTREE=y 
     
    235239CONFIG_PHYLIB=y 
    236240CONFIG_PHYSICAL_START=0x00000000 
    237 CONFIG_POWERNV_MSI=y 
    238241CONFIG_PPC=y 
    239242CONFIG_PPC32=y 
     
    250253# CONFIG_PPC_CELL_NATIVE is not set 
    251254# CONFIG_PPC_CHRP is not set 
    252 # CONFIG_PPC_CLOCK is not set 
    253255# CONFIG_PPC_DCR_MMIO is not set 
    254256# CONFIG_PPC_DCR_NATIVE is not set 
     
    308310# CONFIG_SERIO_APBPS2 is not set 
    309311CONFIG_SERIO_I8042=y 
     312# CONFIG_SERIO_OLPC_APSP is not set 
    310313CONFIG_SERIO_PCIPS2=y 
    311314CONFIG_SERIO_RAW=y 
     
    332335# CONFIG_UCC_TDM is not set 
    333336# CONFIG_UGETH_TX_ON_DEMAND is not set 
    334 CONFIG_UIDGID_CONVERTED=y 
    335 CONFIG_USB_ARCH_HAS_XHCI=y 
    336337CONFIG_VIA_VELOCITY=y 
    337338CONFIG_VITESSE_PHY=y 
    338339CONFIG_VITESSE_PHY_8601_SKEW=y 
     340CONFIG_WATCHDOG_CORE=y 
    339341CONFIG_WORD_SIZE=32 
    340342CONFIG_XZ_DEC_BCJ=y 
  • trunk/target/linux/mpc83xx/patches-3.14/100-powerpc_create_fit_uImages.patch

    r41538 r43797  
    11--- a/arch/powerpc/Makefile 
    22+++ b/arch/powerpc/Makefile 
    3 @@ -177,7 +177,9 @@ all: zImage 
     3@@ -228,7 +228,9 @@ all: zImage 
    44  
    55 # With make 3.82 we cannot mix normal and wildcard targets 
     
    1212 PHONY += $(BOOT_TARGETS1) $(BOOT_TARGETS2) 
    1313  
    14 @@ -210,6 +212,7 @@ define archhelp 
     14@@ -261,6 +263,7 @@ define archhelp 
    1515   @echo '* zImage          - Build default images selected by kernel config' 
    1616   @echo '  zImage.*        - Compressed kernel image (arch/$(ARCH)/boot/zImage.*)' 
     
    2929 cuImage.* 
    3030 dtbImage.* 
    31  treeImage.* 
     31 *.dtb 
    3232--- a/arch/powerpc/boot/Makefile 
    3333+++ b/arch/powerpc/boot/Makefile 
    34 @@ -338,6 +338,9 @@ $(obj)/uImage.initrd.%: vmlinux $(obj)/% 
     34@@ -340,6 +340,9 @@ $(obj)/uImage.initrd.%: vmlinux $(obj)/% 
    3535 $(obj)/uImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) 
    3636        $(call if_changed,wrap,uboot-$*,,$(obj)/$*.dtb) 
     
    4242        $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) 
    4343  
    44 @@ -375,6 +378,7 @@ install: $(CONFIGURE) $(addprefix $(obj) 
     44@@ -377,6 +380,7 @@ install: $(CONFIGURE) $(addprefix $(obj) 
    4545  
    4646 # anything not in $(targets) 
     
    6262 object=arch/powerpc/boot 
    6363 objbin=$object 
    64 @@ -336,6 +339,21 @@ uboot-obs600) 
     64@@ -349,6 +352,21 @@ uboot-obs600) 
    6565     if [ -z "$cacheit" ]; then 
    6666        rm -f "$vmz" 
  • trunk/target/linux/mpc83xx/patches-3.14/101-mpc8377_wlan-dts-add-gpio-leds.patch

    r35736 r43797  
    11--- a/arch/powerpc/boot/dts/mpc8377_wlan.dts 
    22+++ b/arch/powerpc/boot/dts/mpc8377_wlan.dts 
    3 @@ -462,4 +462,18 @@ 
     3@@ -460,4 +460,18 @@ 
    44                                  0 0x00800000>; 
    55                }; 
  • trunk/target/linux/mpc83xx/patches-3.14/110-vitesse_8601.patch

    r41538 r43797  
    1616--- a/drivers/net/phy/vitesse.c 
    1717+++ b/drivers/net/phy/vitesse.c 
    18 @@ -26,6 +26,11 @@ 
     18@@ -31,6 +31,11 @@ 
    1919 #define MII_VSC8244_EXTCON1_TX_SKEW    0x0800 
    2020 #define MII_VSC8244_EXTCON1_RX_SKEW    0x0200 
     
    2828 #define MII_VSC8244_IMASK              0x19 
    2929 #define MII_VSC8244_IMASK_IEN          0x8000 
    30 @@ -56,6 +61,7 @@ 
    31   
    32  #define PHY_ID_VSC8244                 0x000fc6c0 
     30@@ -69,6 +74,7 @@ 
     31 #define PHY_ID_VSC8662                 0x00070660 
    3332 #define PHY_ID_VSC8221                 0x000fc550 
     33 #define PHY_ID_VSC8211                 0x000fc4b0 
    3434+#define PHY_ID_VSC8601                 0x00070420 
    3535  
    3636 MODULE_DESCRIPTION("Vitesse PHY driver"); 
    3737 MODULE_AUTHOR("Kriston Carson"); 
    38 @@ -97,10 +103,34 @@ static int vsc824x_config_init(struct ph 
     38@@ -110,6 +116,30 @@ static int vsc824x_config_init(struct ph 
    3939        return err; 
    4040 } 
     
    6767 { 
    6868        int err = 0; 
    69 -        
    70 + 
    71         /* 
    72          * Don't bother to ACK the interrupts if interrupts 
    73          * are disabled.  The 824x cannot clear the interrupts 
    74 @@ -176,6 +206,19 @@ static struct phy_driver vsc82xx_driver[ 
     69@@ -309,6 +339,19 @@ static struct phy_driver vsc82xx_driver[ 
    7570        .ack_interrupt  = &vsc824x_ack_interrupt, 
    7671        .config_intr    = &vsc82xx_config_intr, 
  • trunk/target/linux/mpc83xx/patches-3.14/111-etsec27_war.patch

    r41538 r43797  
    11--- a/drivers/net/ethernet/freescale/gianfar.c 
    22+++ b/drivers/net/ethernet/freescale/gianfar.c 
    3 @@ -1016,7 +1016,16 @@ static int gfar_probe(struct platform_de 
    4         /* We need to delay at least 3 TX clocks */ 
     3@@ -1050,10 +1050,16 @@ static int gfar_probe(struct platform_de 
    54        udelay(2); 
    65  
    7 -       tempval = (MACCFG1_TX_FLOW | MACCFG1_RX_FLOW); 
     6        tempval = 0; 
     7-       if (!priv->pause_aneg_en && priv->tx_pause_en) 
     8-               tempval |= MACCFG1_TX_FLOW; 
     9-       if (!priv->pause_aneg_en && priv->rx_pause_en) 
     10-               tempval |= MACCFG1_RX_FLOW; 
     11+       /* 
     12+        * Do not enable flow control on chips earlier than rev 1.1, 
     13+        * because of the eTSEC27 erratum 
     14+        */ 
    815+       if ((mfspr(SPRN_SVR) & 0xffff) >= 0x0011) { 
    9 +               tempval = (MACCFG1_TX_FLOW | MACCFG1_RX_FLOW); 
    10 +       } else { 
    11 +               /* 
    12 +                * Do not enable flow control on chips earlier than rev 1.1, 
    13 +                * because of the eTSEC27 erratum 
    14 +                */ 
    15 +               tempval = 0; 
     16+               if (!priv->pause_aneg_en && priv->tx_pause_en) 
     17+                       tempval |= MACCFG1_TX_FLOW; 
     18+               if (!priv->pause_aneg_en && priv->rx_pause_en) 
     19+                       tempval |= MACCFG1_RX_FLOW; 
    1620+       } 
    17 + 
    18         gfar_write(&regs->maccfg1, tempval); 
    19   
    20         /* Initialize MACCFG2. */ 
     21        /* the soft reset bit is not self-resetting, so we need to 
     22         * clear it before resuming normal operation 
     23         */ 
  • trunk/target/linux/mpc83xx/patches-3.14/200-powerpc-add-rbppc-support.patch

    r35736 r43797  
    11--- a/arch/powerpc/boot/Makefile 
    22+++ b/arch/powerpc/boot/Makefile 
    3 @@ -89,7 +89,8 @@ src-plat-$(CONFIG_44x) += treeboot-ebony 
     3@@ -90,7 +90,8 @@ src-plat-$(CONFIG_44x) += treeboot-ebony 
    44 src-plat-$(CONFIG_8xx) += cuboot-8xx.c fixed-head.S ep88xc.c redboot-8xx.c 
    55 src-plat-$(CONFIG_PPC_MPC52xx) += cuboot-52xx.c 
     
    1111 src-plat-$(CONFIG_EMBEDDED6xx) += cuboot-pq2.c cuboot-mpc7448hpc2.c \ 
    1212                                        cuboot-c2k.c gamecube-head.S \ 
    13 @@ -261,6 +262,8 @@ image-$(CONFIG_MPC834x_ITX)         += cuImage. 
     13@@ -262,6 +263,8 @@ image-$(CONFIG_MPC834x_ITX)         += cuImage. 
    1414 image-$(CONFIG_MPC834x_MDS)            += cuImage.mpc834x_mds 
    1515 image-$(CONFIG_MPC836x_MDS)            += cuImage.mpc836x_mds 
     
    381381--- a/arch/powerpc/boot/wrapper 
    382382+++ b/arch/powerpc/boot/wrapper 
    383 @@ -217,7 +217,7 @@ ps3) 
     383@@ -225,7 +225,7 @@ ps3) 
    384384     make_space=n 
    385385     pie= 
  • trunk/target/linux/mpc83xx/patches-3.14/201-powerpc-add-rb_iomap.patch

    r41538 r43797  
    11--- a/arch/powerpc/kernel/Makefile 
    22+++ b/arch/powerpc/kernel/Makefile 
    3 @@ -117,9 +117,11 @@ obj-$(CONFIG_FTRACE_SYSCALLS)      += ftrace. 
    4   
    5  obj-$(CONFIG_8XX_MINIMAL_FPEMU) += softemu8xx.o 
     3@@ -116,9 +116,11 @@ obj-$(CONFIG_DYNAMIC_FTRACE)       += ftrace.o 
     4 obj-$(CONFIG_FUNCTION_GRAPH_TRACER)    += ftrace.o 
     5 obj-$(CONFIG_FTRACE_SYSCALLS)  += ftrace.o 
    66  
    77+ifneq ($(CONFIG_RB_IOMAP),y) 
    8  ifneq ($(CONFIG_PPC_INDIRECT_IO),y) 
     8 ifneq ($(CONFIG_PPC_INDIRECT_PIO),y) 
    99 obj-y                          += iomap.o 
    1010 endif 
     
    2525--- a/arch/powerpc/platforms/Kconfig 
    2626+++ b/arch/powerpc/platforms/Kconfig 
    27 @@ -191,6 +191,10 @@ config PPC_INDIRECT_MMIO 
     27@@ -212,6 +212,10 @@ config PPC_INDIRECT_MMIO 
    2828 config PPC_IO_WORKAROUNDS 
    2929        bool 
     
    3535 source "drivers/cpufreq/Kconfig" 
    3636  
    37  menu "CPU Frequency drivers" 
     37 menu "CPUIdle driver" 
    3838--- a/arch/powerpc/sysdev/Makefile 
    3939+++ b/arch/powerpc/sysdev/Makefile 
    40 @@ -71,3 +71,6 @@ subdir-ccflags-$(CONFIG_PPC_WERROR) := - 
     40@@ -73,3 +73,6 @@ subdir-ccflags-$(CONFIG_PPC_WERROR) := - 
    4141 obj-$(CONFIG_PPC_XICS)         += xics/ 
    4242  
  • trunk/target/linux/mpc83xx/patches-3.14/202-ata-add-pata_rbppc_cf-driver.patch

    r41538 r43797  
    11--- a/drivers/ata/Kconfig 
    22+++ b/drivers/ata/Kconfig 
    3 @@ -938,5 +938,12 @@ config PATA_LEGACY 
     3@@ -963,5 +963,12 @@ config PATA_LEGACY 
    44  
    55          If unsure, say N. 
     
    1616--- a/drivers/ata/Makefile 
    1717+++ b/drivers/ata/Makefile 
    18 @@ -92,6 +92,7 @@ obj-$(CONFIG_PATA_PALMLD)     += pata_palmld 
     18@@ -93,6 +93,7 @@ obj-$(CONFIG_PATA_PALMLD)     += pata_palmld 
    1919 obj-$(CONFIG_PATA_PLATFORM)    += pata_platform.o 
    2020 obj-$(CONFIG_PATA_OF_PLATFORM) += pata_of_platform.o 
     
    2626--- /dev/null 
    2727+++ b/drivers/ata/pata_rbppc_cf.c 
    28 @@ -0,0 +1,699 @@ 
     28@@ -0,0 +1,701 @@ 
    2929+/* 
    3030+ * Copyright (C) 2008-2009 Noah Fontes <nfontes@transtruct.org> 
     
    4545+#include <linux/ata_platform.h> 
    4646+#include <linux/slab.h> 
     47+#include <linux/of_address.h> 
     48+#include <linux/of_irq.h> 
    4749+ 
    4850+#define DEBUG_UPM      0 
  • trunk/target/linux/mpc83xx/patches-3.14/203-mtd-add-rbppc_nand-driver.patch

    r41538 r43797  
    11--- a/drivers/mtd/nand/Kconfig 
    22+++ b/drivers/mtd/nand/Kconfig 
    3 @@ -432,6 +432,13 @@ config MTD_NAND_PLATFORM 
     3@@ -405,6 +405,13 @@ config MTD_NAND_PLATFORM 
    44          devices. You will need to provide platform-specific functions 
    55          via platform_data. 
     
    1212+         RouterBOARD 333/600 series boards. 
    1313+ 
    14  config MTD_ALAUDA 
    15         tristate "MTD driver for Olympus MAUSB-10 and Fujifilm DPC-R1" 
    16         depends on USB 
     14 config MTD_NAND_ORION 
     15        tristate "NAND Flash support for Marvell Orion SoC" 
     16        depends on PLAT_ORION 
    1717--- a/drivers/mtd/nand/Makefile 
    1818+++ b/drivers/mtd/nand/Makefile 
     
    2222 obj-$(CONFIG_MTD_NAND_PLATFORM)                += plat_nand.o 
    2323+obj-$(CONFIG_MTD_NAND_RB_PPC)          += rbppc_nand.o 
    24  obj-$(CONFIG_MTD_ALAUDA)               += alauda.o 
    2524 obj-$(CONFIG_MTD_NAND_PASEMI)          += pasemi_nand.o 
    2625 obj-$(CONFIG_MTD_NAND_ORION)           += orion_nand.o 
     26 obj-$(CONFIG_MTD_NAND_FSL_ELBC)                += fsl_elbc_nand.o 
    2727--- /dev/null 
    2828+++ b/drivers/mtd/nand/rbppc_nand.c 
    29 @@ -0,0 +1,250 @@ 
     29@@ -0,0 +1,251 @@ 
    3030+/* 
    3131+ * Copyright (C) 2008-2009 Noah Fontes <nfontes@transtruct.org> 
     
    4848+#include <linux/slab.h> 
    4949+#include <linux/delay.h> 
     50+#include <linux/of_address.h> 
    5051+#include <asm/io.h> 
    5152+ 
  • trunk/target/linux/mpc83xx/patches-3.14/300-mpc8377_wlan-dts-add-openwrt-hacks.patch

    r35736 r43797  
    1313        }; 
    1414  
    15 @@ -476,4 +481,8 @@ 
     15@@ -474,4 +479,8 @@ 
    1616                        default-state = "off"; 
    1717                }; 
Note: See TracChangeset for help on using the changeset viewer.