Merge tag 'multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Oct 2012 02:11:38 +0000 (19:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Oct 2012 02:11:38 +0000 (19:11 -0700)
Pull ARM soc multiplatform enablement from Olof Johansson:
 "This is a pretty significant branch.  It's the introduction of the
  first multiplatform support on ARM, and with this (and the later
  branch) merged, it is now possible to build one kernel that contains
  support for highbank, vexpress, mvebu, socfpga, and picoxcell.  More
  platforms will be convered over in the next few releases.

  Two critical last things had to be done for this to be practical and
  possible:
   * Today each platform has its own include directory under
     mach-<mach>/include/mach/*, and traditionally that is where a lot
     of driver/platform shared definitions have gone, such as platform
     data structures.  They now need to move out to a common location
     instead, and this branch moves a large number of those out to
     include/linux/platform_data.
   * Each platform used to list the device trees to compile for its
     boards in mach-<mach>/Makefile.boot.

  Both of the above changes will mean that there are some merge
  conflicts to come (and some to resolve here).  It's a one-time move
  and once it settles in, we should be good for quite a while.  Sorry
  for the overhead."

Fix conflicts as per Olof.

* tag 'multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (51 commits)
  ARM: add v7 multi-platform defconfig
  ARM: msm: Move core.h contents into common.h
  ARM: highbank: call highbank_pm_init from .init_machine
  ARM: dtb: move all dtb targets to common Makefile
  ARM: spear: move platform_data definitions
  ARM: samsung: move platform_data definitions
  ARM: orion: move platform_data definitions
  ARM: vexpress: convert to multi-platform
  ARM: initial multiplatform support
  ARM: mvebu: move armada-370-xp.h in mach dir
  ARM: vexpress: remove dependency on mach/* headers
  ARM: picoxcell: remove dependency on mach/* headers
  ARM: move all dtb targets out of Makefile.boot
  ARM: picoxcell: move debug macros to include/debug
  ARM: socfpga: move debug macros to include/debug
  ARM: mvebu: move debug macros to include/debug
  ARM: vexpress: move debug macros to include/debug
  ARM: highbank: move debug macros to include/debug
  ARM: move debug macros to common location
  ARM: make mach/gpio.h headers optional
  ...

51 files changed:
1  2 
arch/arm/Kconfig
arch/arm/Kconfig.debug
arch/arm/boot/dts/Makefile
arch/arm/mach-at91/at91sam9rl_devices.c
arch/arm/mach-exynos/mach-exynos5-dt.c
arch/arm/mach-exynos/mach-origen.c
arch/arm/mach-exynos/mach-smdk4x12.c
arch/arm/mach-exynos/mach-smdkv310.c
arch/arm/mach-nomadik/board-nhk8815.c
arch/arm/mach-omap2/board-4430sdp.c
arch/arm/mach-omap2/board-omap4panda.c
arch/arm/mach-orion5x/common.c
arch/arm/mach-pxa/idp.c
arch/arm/mach-pxa/lubbock.c
arch/arm/mach-pxa/mainstone.c
arch/arm/mach-pxa/stargate2.c
arch/arm/mach-realview/core.h
arch/arm/mach-realview/realview_pb11mp.c
arch/arm/mach-realview/realview_pbx.c
arch/arm/mach-s3c24xx/mach-h1940.c
arch/arm/mach-s3c64xx/mach-crag6410-module.c
arch/arm/mach-s3c64xx/mach-crag6410.c
arch/arm/mach-sa1100/assabet.c
arch/arm/mach-sa1100/cerf.c
arch/arm/mach-sa1100/lart.c
arch/arm/mach-sa1100/simpad.c
arch/arm/mach-shmobile/board-ap4evb.c
arch/arm/mach-shmobile/board-armadillo800eva.c
arch/arm/mach-shmobile/board-g4evm.c
arch/arm/mach-shmobile/board-kzm9g.c
arch/arm/mach-shmobile/board-mackerel.c
arch/arm/mach-shmobile/board-marzen.c
arch/arm/mach-shmobile/sh-gpio.h
arch/arm/mach-tegra/board-dt-tegra20.c
arch/arm/mach-ux500/board-mop500.c
arch/arm/mach-ux500/cpu-db8500.c
arch/arm/plat-samsung/devs.c
drivers/dma/ep93xx_dma.c
drivers/dma/imx-dma.c
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/spi/spi-imx.c
drivers/tty/serial/imx.c
drivers/usb/gadget/pxa27x_udc.c
drivers/usb/gadget/s3c2410_udc.c
drivers/usb/host/ehci-mxc.c
drivers/usb/host/ehci-s5p.c
drivers/usb/host/ohci-pxa27x.c
drivers/usb/musb/da8xx.c
drivers/usb/musb/ux500_dma.c
drivers/video/vt8500lcdfb.c
drivers/video/wm8505fb.c

Simple merge
Simple merge
index 0000000000000000000000000000000000000000,d302e6655e658000ff371cf62fe9a2bdb8ab3e14..43c084c2cd6682074e45c57090c0d3ee4a2e38d0
mode 000000,100644..100644
--- /dev/null
@@@ -1,0 -1,100 +1,101 @@@
+ ifeq ($(CONFIG_OF),y)
+ dtb-$(CONFIG_ARCH_AT91) += aks-cdu.dtb \
+       at91sam9263ek.dtb \
+       at91sam9g20ek_2mmc.dtb \
+       at91sam9g20ek.dtb \
+       at91sam9g25ek.dtb \
+       at91sam9m10g45ek.dtb \
+       at91sam9n12ek.dtb \
+       ethernut5.dtb \
+       evk-pro3.dtb \
+       kizbox.dtb \
+       tny_a9260.dtb \
+       tny_a9263.dtb \
+       tny_a9g20.dtb \
+       usb_a9260.dtb \
+       usb_a9263.dtb \
+       usb_a9g20.dtb
+ dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
+ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
+       exynos4210-smdkv310.dtb \
++      exynos4210-trats.dtb \
+       exynos5250-smdk5250.dtb
+ dtb-$(CONFIG_ARCH_HIGHBANK) += highbank.dtb
+ dtb-$(CONFIG_ARCH_IMX5) += imx51-babbage.dtb \
+       imx53-ard.dtb \
+       imx53-evk.dtb \
+       imx53-qsb.dtb \
+       imx53-smd.dtb
+ dtb-$(CONFIG_SOC_IMX6Q) += imx6q-arm2.dtb \
+       imx6q-sabrelite.dtb \
+       imx6q-sabresd.dtb
+ dtb-$(CONFIG_ARCH_LPC32XX) += ea3250.dtb phy3250.dtb
+ dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-dns320.dtb \
+       kirkwood-dns325.dtb \
+       kirkwood-dreamplug.dtb \
+       kirkwood-goflexnet.dtb \
+       kirkwood-ib62x0.dtb \
+       kirkwood-iconnect.dtb \
+       kirkwood-lschlv2.dtb \
+       kirkwood-lsxhl.dtb \
+       kirkwood-ts219-6281.dtb \
+       kirkwood-ts219-6282.dtb
+ dtb-$(CONFIG_ARCH_MSM) += msm8660-surf.dtb \
+       msm8960-cdp.dtb
+ dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \
+       armada-xp-db.dtb
+ dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \
+       imx53-ard.dtb \
+       imx53-evk.dtb \
+       imx53-qsb.dtb \
+       imx53-smd.dtb \
+       imx6q-arm2.dtb \
+       imx6q-sabrelite.dtb \
+       imx6q-sabresd.dtb
+ dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \
+       imx23-olinuxino.dtb \
+       imx23-stmp378x_devb.dtb \
+       imx28-apx4devkit.dtb \
+       imx28-cfa10036.dtb \
+       imx28-cfa10049.dtb \
+       imx28-evk.dtb \
+       imx28-m28evk.dtb \
+       imx28-tx28.dtb
+ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
+       omap3-beagle-xm.dtb \
+       omap3-evm.dtb \
+       omap3-tobi.dtb \
+       omap4-panda.dtb \
+       omap4-pandaES.dtb \
+       omap4-var_som.dtb \
+       omap4-sdp.dtb \
+       omap5-evm.dtb
+ dtb-$(CONFIG_ARCH_PRIMA2) += prima2-evb.dtb
+ dtb-$(CONFIG_ARCH_U8500) += snowball.dtb
+ dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \
+       r8a7740-armadillo800eva.dtb \
+       sh73a0-kzm9g.dtb
+ dtb-$(CONFIG_ARCH_SPEAR13XX) += spear1310-evb.dtb \
+       spear1340-evb.dtb
+ dtb-$(CONFIG_ARCH_SPEAR3XX)+= spear300-evb.dtb \
+       spear310-evb.dtb \
+       spear320-evb.dtb
+ dtb-$(CONFIG_ARCH_SPEAR6XX)+= spear600-evb.dtb
+ dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \
+       tegra20-medcom-wide.dtb \
+       tegra20-paz00.dtb \
+       tegra20-plutux.dtb \
+       tegra20-seaboard.dtb \
+       tegra20-tec.dtb \
+       tegra20-trimslice.dtb \
+       tegra20-ventana.dtb \
+       tegra20-whistler.dtb \
+       tegra30-cardhu-a02.dtb \
+       tegra30-cardhu-a04.dtb
+ dtb-$(CONFIG_ARCH_VEXPRESS) += vexpress-v2p-ca5s.dtb \
+       vexpress-v2p-ca9.dtb \
+       vexpress-v2p-ca15-tc1.dtb \
+       vexpress-v2p-ca15_a7.dtb
+ endif
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 0000000000000000000000000000000000000000,7ba1877fa97a378025a4d599723c7c88a843acf4..e834763ac2a521bd02ff6a7704d30576657cd10c
mode 000000,100644..100644
--- /dev/null
@@@ -1,0 -1,48 +1,48 @@@
 -static inline void __init gpio_direction_none(u32 addr)
+ /*
+  * Generic GPIO API and pinmux table support
+  *
+  * Copyright (c) 2008  Magnus Damm
+  *
+  * This file is subject to the terms and conditions of the GNU General Public
+  * License.  See the file "COPYING" in the main directory of this archive
+  * for more details.
+  */
+ #ifndef __ASM_ARCH_GPIO_H
+ #define __ASM_ARCH_GPIO_H
+ #include <linux/kernel.h>
+ #include <linux/errno.h>
+ #include <linux/io.h>
+ /*
+  * FIXME !!
+  *
+  * current gpio frame work doesn't have
+  * the method to control only pull up/down/free.
+  * this function should be replaced by correct gpio function
+  */
 -static inline void __init gpio_request_pullup(u32 addr)
++static inline void __init gpio_direction_none(void __iomem * addr)
+ {
+       __raw_writeb(0x00, addr);
+ }
 -static inline void __init gpio_request_pulldown(u32 addr)
++static inline void __init gpio_request_pullup(void __iomem * addr)
+ {
+       u8 data = __raw_readb(addr);
+       data &= 0x0F;
+       data |= 0xC0;
+       __raw_writeb(data, addr);
+ }
++static inline void __init gpio_request_pulldown(void __iomem * addr)
+ {
+       u8 data = __raw_readb(addr);
+       data &= 0x0F;
+       data |= 0xA0;
+       __raw_writeb(data, addr);
+ }
+ #endif /* __ASM_ARCH_GPIO_H */
index c3394443675e50eac815ccc7fa8c4dd3605b456d,5d8c8fb060b0d1a146fc2ef50f8db54c8d73df30..57e235f4ac74a81da9ff15619ca44a69bc0b1509
  
  #include "board.h"
  #include "clock.h"
 -#include "devices.h"
+ #include "common.h"
  
 +struct tegra_ehci_platform_data tegra_ehci1_pdata = {
 +      .operating_mode = TEGRA_USB_OTG,
 +      .power_down_on_bus_suspend = 1,
 +      .vbus_gpio = -1,
 +};
 +
 +struct tegra_ulpi_config tegra_ehci2_ulpi_phy_config = {
 +      .reset_gpio = -1,
 +      .clk = "cdev2",
 +};
 +
 +struct tegra_ehci_platform_data tegra_ehci2_pdata = {
 +      .phy_config = &tegra_ehci2_ulpi_phy_config,
 +      .operating_mode = TEGRA_USB_HOST,
 +      .power_down_on_bus_suspend = 1,
 +      .vbus_gpio = -1,
 +};
 +
 +struct tegra_ehci_platform_data tegra_ehci3_pdata = {
 +      .operating_mode = TEGRA_USB_HOST,
 +      .power_down_on_bus_suspend = 1,
 +      .vbus_gpio = -1,
 +};
 +
  struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = {
        OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC1_BASE, "sdhci-tegra.0", NULL),
        OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC2_BASE, "sdhci-tegra.1", NULL),
Simple merge
Simple merge
index 8d26ce6813bb801731c47d81ef5c88070437decd,b151d4932661ca6c28bd79b7a514b5d40c3c6627..03f654d55effb2f10355c914ab206730928759f7
  #include <plat/cpu.h>
  #include <plat/devs.h>
  #include <plat/adc.h>
- #include <plat/ata.h>
- #include <plat/ehci.h>
+ #include <linux/platform_data/ata-samsung_cf.h>
+ #include <linux/platform_data/usb-ehci-s5p.h>
  #include <plat/fb.h>
  #include <plat/fb-s3c2410.h>
- #include <plat/hwmon.h>
- #include <plat/iic.h>
 +#include <plat/hdmi.h>
+ #include <linux/platform_data/hwmon-s3c.h>
+ #include <linux/platform_data/i2c-s3c2410.h>
  #include <plat/keypad.h>
- #include <plat/mci.h>
- #include <plat/nand.h>
+ #include <linux/platform_data/mmc-s3cmci.h>
+ #include <linux/platform_data/mtd-nand-s3c2410.h>
  #include <plat/sdhci.h>
- #include <plat/ts.h>
- #include <plat/udc.h>
- #include <plat/usb-control.h>
+ #include <linux/platform_data/touchscreen-s3c2410.h>
+ #include <linux/platform_data/usb-s3c2410_udc.h>
+ #include <linux/platform_data/usb-ohci-s3c2410.h>
  #include <plat/usb-phy.h>
  #include <plat/regs-iic.h>
  #include <plat/regs-serial.h>
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 77f4402aca03e0a16a9875431df8ec51bd60e311,955c410d59b69680fab2efc99dedb55fdafb4e79..2bf11440b010443290f2cbd6795cf22ddf561b0d
  #include <linux/signal.h>
  #include <linux/platform_device.h>
  #include <linux/clk.h>
 +#include <linux/of_platform.h>
 +#include <linux/of_gpio.h>
  #include <mach/hardware.h>
- #include <mach/ohci.h>
- #include <mach/pxa3xx-u2d.h>
+ #include <linux/platform_data/usb-ohci-pxa27x.h>
+ #include <linux/platform_data/usb-pxa3xx-ulpi.h>
  
  /*
   * UHC: USB Host Controller (OHCI-like) register definitions
index ce11d20b90f473a4b5d794d68b9ebbcd66cdf70d,15a262754150f08a8eb5bc21af2eaa42c2d46522..8bc44b76eec2b3cd78e2d78c24e79568880d5b07
  #include <linux/io.h>
  #include <linux/platform_device.h>
  #include <linux/dma-mapping.h>
 +#include <linux/usb/nop-usb-xceiv.h>
  
  #include <mach/da8xx.h>
- #include <mach/usb.h>
+ #include <linux/platform_data/usb-davinci.h>
  
  #include "musb_core.h"
  
Simple merge
Simple merge
index ec4742442103c7c8f31ce1e8adc8bb32277d871d,ffeff48381207595ad3b1349ffe538b1f5db46ee..77539c1b56a028833d35e4db8ede98b8e4e7d4bc
  #include <linux/dma-mapping.h>
  #include <linux/platform_device.h>
  #include <linux/wait.h>
 +#include <linux/of.h>
 +#include <linux/of_fdt.h>
 +#include <linux/memblock.h>
  
- #include <mach/vt8500fb.h>
+ #include <linux/platform_data/video-vt8500lcdfb.h>
  
  #include "wm8505fb_regs.h"
  #include "wmt_ge_rops.h"