Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Sep 2013 23:14:49 +0000 (16:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Sep 2013 23:14:49 +0000 (16:14 -0700)
Pull MIPS updates from Ralf Baechle:
 "This has been sitting in -next for a while with no objections and all
  MIPS defconfigs except one are building fine; that one platform got
  broken by another patch in your tree and I'm going to submit a patch
  separately.

   - a handful of fixes that didn't make 3.11
   - a few bits of Octeon 3 support with more to come for a later
     release
   - platform enhancements for Octeon, ath79, Lantiq, Netlogic and
     Ralink SOCs
   - a GPIO driver for the Octeon
   - some dusting off of the DECstation code
   - the usual dose of cleanups"

* 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (65 commits)
  MIPS: DMA: Fix BUG due to smp_processor_id() in preemptible code
  MIPS: kexec: Fix random crashes while loading crashkernel
  MIPS: kdump: Skip walking indirection page for crashkernels
  MIPS: DECstation HRT calibration bug fixes
  MIPS: Export copy_from_user_page() (needed by lustre)
  MIPS: Add driver for the built-in PCI controller of the RT3883 SoC
  MIPS: DMA: For BMIPS5000 cores flush region just like non-coherent R10000
  MIPS: ralink: Add support for reset-controller API
  MIPS: ralink: mt7620: Add cpu-feature-override header
  MIPS: ralink: mt7620: Add spi clock definition
  MIPS: ralink: mt7620: Add wdt clock definition
  MIPS: ralink: mt7620: Improve clock frequency detection
  MIPS: ralink: mt7620: This SoC has EHCI and OHCI hosts
  MIPS: ralink: mt7620: Add verbose ram info
  MIPS: ralink: Probe clocksources from OF
  MIPS: ralink: Add support for systick timer found on newer ralink SoC
  MIPS: ralink: Add support for periodic timer irq
  MIPS: Netlogic: Built-in DTB for XLP2xx SoC boards
  MIPS: Netlogic: Add support for USB on XLP2xx
  MIPS: Netlogic: XLP2xx update for I2C controller
  ...

1  2 
arch/mips/Kconfig
drivers/gpio/Kconfig
drivers/gpio/Makefile

diff --combined arch/mips/Kconfig
index 71f15e73bc89027697426d0a709cd15f9fbcba19,c2917906caaa8552133b199b3a79ce0ab17d4306..a9668d4653c28544d81a9ce1ed55caee7e743a37
@@@ -95,6 -95,7 +95,7 @@@ config ATH7
        select CSRC_R4K
        select DMA_NONCOHERENT
        select HAVE_CLK
+       select CLKDEV_LOOKUP
        select IRQ_CPU
        select MIPS_MACHINE
        select SYS_HAS_CPU_MIPS32_R2
@@@ -131,7 -132,6 +132,6 @@@ config BCM63X
        select IRQ_CPU
        select SYS_HAS_CPU_MIPS32_R1
        select SYS_HAS_CPU_BMIPS4350 if !BCM63XX_CPU_6338 && !BCM63XX_CPU_6345 && !BCM63XX_CPU_6348
-       select NR_CPUS_DEFAULT_2
        select SYS_SUPPORTS_32BIT_KERNEL
        select SYS_SUPPORTS_BIG_ENDIAN
        select SYS_HAS_EARLY_PRINTK
@@@ -445,6 -445,8 +445,8 @@@ config RALIN
        select SYS_HAS_EARLY_PRINTK
        select HAVE_MACH_CLKDEV
        select CLKDEV_LOOKUP
+       select ARCH_HAS_RESET_CONTROLLER
+       select RESET_CONTROLLER
  
  config SGI_IP22
        bool "SGI IP22 (Indy/Indigo2)"
@@@ -609,7 -611,6 +611,6 @@@ config SIBYTE_SWAR
        select BOOT_ELF32
        select DMA_COHERENT
        select HAVE_PATA_PLATFORM
-       select NR_CPUS_DEFAULT_2
        select SIBYTE_SB1250
        select SWAP_IO_SPACE
        select SYS_HAS_CPU_SB1
@@@ -623,7 -624,6 +624,6 @@@ config SIBYTE_LITTLESU
        select BOOT_ELF32
        select DMA_COHERENT
        select HAVE_PATA_PLATFORM
-       select NR_CPUS_DEFAULT_2
        select SIBYTE_SB1250
        select SWAP_IO_SPACE
        select SYS_HAS_CPU_SB1
@@@ -635,7 -635,6 +635,6 @@@ config SIBYTE_SENTOS
        bool "Sibyte BCM91250E-Sentosa"
        select BOOT_ELF32
        select DMA_COHERENT
-       select NR_CPUS_DEFAULT_2
        select SIBYTE_SB1250
        select SWAP_IO_SPACE
        select SYS_HAS_CPU_SB1
@@@ -727,10 -726,12 +726,11 @@@ config CAVIUM_OCTEON_SO
        select SYS_HAS_CPU_CAVIUM_OCTEON
        select SWAP_IO_SPACE
        select HW_HAS_PCI
 -      select ARCH_SUPPORTS_MSI
        select ZONE_DMA32
        select USB_ARCH_HAS_OHCI
        select USB_ARCH_HAS_EHCI
        select HOLES_IN_ZONE
+       select ARCH_REQUIRE_GPIOLIB
        help
          This option supports all of the Octeon reference boards from Cavium
          Networks. It builds a kernel that dynamically determines the Octeon
@@@ -762,6 -763,7 +762,6 @@@ config NLM_XLR_BOAR
        select CEVT_R4K
        select CSRC_R4K
        select IRQ_CPU
 -      select ARCH_SUPPORTS_MSI
        select ZONE_DMA32 if 64BIT
        select SYNC_R4K
        select SYS_HAS_EARLY_PRINTK
@@@ -1860,7 -1862,6 +1860,6 @@@ config MIPS_MT_SM
        select CPU_MIPSR2_IRQ_VI
        select CPU_MIPSR2_IRQ_EI
        select MIPS_MT
-       select NR_CPUS_DEFAULT_2
        select SMP
        select SYS_SUPPORTS_SCHED_SMT if SMP
        select SYS_SUPPORTS_SMP
@@@ -2171,12 -2172,6 +2170,6 @@@ config SYS_SUPPORTS_MIPS_CM
  config SYS_SUPPORTS_SMP
        bool
  
- config NR_CPUS_DEFAULT_1
-       bool
- config NR_CPUS_DEFAULT_2
-       bool
  config NR_CPUS_DEFAULT_4
        bool
  
@@@ -2194,10 -2189,8 +2187,8 @@@ config NR_CPUS_DEFAULT_6
  
  config NR_CPUS
        int "Maximum number of CPUs (2-64)"
-       range 1 64 if NR_CPUS_DEFAULT_1
+       range 2 64
        depends on SMP
-       default "1" if NR_CPUS_DEFAULT_1
-       default "2" if NR_CPUS_DEFAULT_2
        default "4" if NR_CPUS_DEFAULT_4
        default "8" if NR_CPUS_DEFAULT_8
        default "16" if NR_CPUS_DEFAULT_16
@@@ -2303,9 -2296,9 +2294,9 @@@ config KEXE
  
          It is an ongoing process to be certain the hardware in a machine
          is properly shutdown, so do not be surprised if this code does not
 -        initially work for you.  It may help to enable device hotplugging
 -        support.  As of this writing the exact hardware interface is
 -        strongly in flux, so no good recommendation can be made.
 +        initially work for you.  As of this writing the exact hardware
 +        interface is strongly in flux, so no good recommendation can be
 +        made.
  
  config CRASH_DUMP
          bool "Kernel crash dumps"
diff --combined drivers/gpio/Kconfig
index 349b16160ac9b8b4cd2943751c6d8478d5cb0962,b21b7a2d1c3d20e093e02091224d07f7f505848c..5cb218151c9c2c26c2c9f5f1880411a1c3c4dc68
@@@ -146,16 -146,6 +146,16 @@@ config GPIO_MM_LANTI
          (EBU) found on Lantiq SoCs. The gpios are output only as they are
          created by attaching a 16bit latch to the bus.
  
 +config GPIO_F7188X
 +      tristate "F71882FG and F71889F GPIO support"
 +      depends on X86
 +      help
 +        This option enables support for GPIOs found on Fintek Super-I/O
 +        chips F71882FG and F71889F.
 +
 +        To compile this driver as a module, choose M here: the module will
 +        be called f7188x-gpio.
 +
  config GPIO_MPC5200
        def_bool y
        depends on PPC_MPC52xx
@@@ -203,6 -193,14 +203,14 @@@ config GPIO_MX
        select GPIO_GENERIC
        select GENERIC_IRQ_CHIP
  
+ config GPIO_OCTEON
+       tristate "Cavium OCTEON GPIO"
+       depends on GPIOLIB && CAVIUM_OCTEON_SOC
+       default y
+       help
+         Say yes here to support the on-chip GPIO lines on the OCTEON
+         family of SOCs.
  config GPIO_PL061
        bool "PrimeCell PL061 GPIO support"
        depends on ARM && ARM_AMBA
@@@ -252,21 -250,6 +260,21 @@@ config GPIO_TS550
          blocks of the TS-5500: DIO1, DIO2 and the LCD port, and the TS-5600
          LCD port.
  
 +config GPIO_TZ1090
 +      bool "Toumaz Xenif TZ1090 GPIO support"
 +      depends on SOC_TZ1090
 +      select GENERIC_IRQ_CHIP
 +      default y
 +      help
 +        Say yes here to support Toumaz Xenif TZ1090 GPIOs.
 +
 +config GPIO_TZ1090_PDC
 +      bool "Toumaz Xenif TZ1090 PDC GPIO support"
 +      depends on SOC_TZ1090
 +      default y
 +      help
 +        Say yes here to support Toumaz Xenif TZ1090 PDC GPIOs.
 +
  config GPIO_XILINX
        bool "Xilinx GPIO support"
        depends on PPC_OF || MICROBLAZE || ARCH_ZYNQ
@@@ -701,18 -684,6 +709,18 @@@ config GPIO_UCB140
          This enables support for the Philips UCB1400 GPIO pins.
          The UCB1400 is an AC97 audio codec.
  
 +comment "LPC GPIO expanders:"
 +
 +config GPIO_KEMPLD
 +      tristate "Kontron ETX / COMexpress GPIO"
 +      depends on MFD_KEMPLD
 +      help
 +        This enables support for the PLD GPIO interface on some Kontron ETX
 +        and COMexpress (ETXexpress) modules.
 +
 +        This driver can also be built as a module. If so, the module will be
 +        called gpio-kempld.
 +
  comment "MODULbus GPIO expanders:"
  
  config GPIO_JANZ_TTL
diff --combined drivers/gpio/Makefile
index 97438bf8434a76aee67c06bb526044b38817f12f,e7fd9800dad44f4b348edf22904553382577589d..98e23ebba2cffa73eec7f0a9a113f820f9a14404
@@@ -24,13 -24,11 +24,13 @@@ obj-$(CONFIG_GPIO_DA9055)  += gpio-da905
  obj-$(CONFIG_ARCH_DAVINCI)    += gpio-davinci.o
  obj-$(CONFIG_GPIO_EM)         += gpio-em.o
  obj-$(CONFIG_GPIO_EP93XX)     += gpio-ep93xx.o
 +obj-$(CONFIG_GPIO_F7188X)     += gpio-f7188x.o
  obj-$(CONFIG_GPIO_GE_FPGA)    += gpio-ge.o
  obj-$(CONFIG_GPIO_GRGPIO)     += gpio-grgpio.o
  obj-$(CONFIG_GPIO_ICH)                += gpio-ich.o
  obj-$(CONFIG_GPIO_IT8761E)    += gpio-it8761e.o
  obj-$(CONFIG_GPIO_JANZ_TTL)   += gpio-janz-ttl.o
 +obj-$(CONFIG_GPIO_KEMPLD)     += gpio-kempld.o
  obj-$(CONFIG_ARCH_KS8695)     += gpio-ks8695.o
  obj-$(CONFIG_GPIO_LANGWELL)   += gpio-langwell.o
  obj-$(CONFIG_ARCH_LPC32XX)    += gpio-lpc32xx.o
@@@ -52,6 -50,7 +52,7 @@@ obj-$(CONFIG_GPIO_MSM_V2)     += gpio-msm-v
  obj-$(CONFIG_GPIO_MVEBU)        += gpio-mvebu.o
  obj-$(CONFIG_GPIO_MXC)                += gpio-mxc.o
  obj-$(CONFIG_GPIO_MXS)                += gpio-mxs.o
+ obj-$(CONFIG_GPIO_OCTEON)     += gpio-octeon.o
  obj-$(CONFIG_ARCH_OMAP)               += gpio-omap.o
  obj-$(CONFIG_GPIO_PCA953X)    += gpio-pca953x.o
  obj-$(CONFIG_GPIO_PCF857X)    += gpio-pcf857x.o
@@@ -81,8 -80,6 +82,8 @@@ obj-$(CONFIG_GPIO_TPS65912)   += gpio-tps
  obj-$(CONFIG_GPIO_TS5500)     += gpio-ts5500.o
  obj-$(CONFIG_GPIO_TWL4030)    += gpio-twl4030.o
  obj-$(CONFIG_GPIO_TWL6040)    += gpio-twl6040.o
 +obj-$(CONFIG_GPIO_TZ1090)     += gpio-tz1090.o
 +obj-$(CONFIG_GPIO_TZ1090_PDC) += gpio-tz1090-pdc.o
  obj-$(CONFIG_GPIO_UCB1400)    += gpio-ucb1400.o
  obj-$(CONFIG_GPIO_VIPERBOARD) += gpio-viperboard.o
  obj-$(CONFIG_GPIO_VR41XX)     += gpio-vr41xx.o