OSDN Git Service

Merge tag 'armsoc-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Jun 2015 18:08:27 +0000 (11:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Jun 2015 18:08:27 +0000 (11:08 -0700)
Pull ARM SoC cleanups from Kevin Hilman:
 "A relatively small setup of cleanups this time around, and similar to
  last time the bulk of it is removal of legacy board support:

   - OMAP: removal of legacy (non-DT) booting for several platforms

   - i.MX: remove some legacy board files"

* tag 'armsoc-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (36 commits)
  ARM: fix EFM32 build breakage caused by cpu_resume_arm
  ARM: 8389/1: Add cpu_resume_arm() for firmwares that resume in ARM state
  ARM: v7 setup function should invalidate L1 cache
  mach-omap2: Remove use of deprecated marco, PTR_RET in devices.c
  ARM: OMAP2+: Remove calls to deprecacted marco,PTR_RET in the files,fb.c and pmu.c
  ARM: OMAP2+: Constify irq_domain_ops
  ARM: OMAP2+: use symbolic defines for console loglevels instead of numbers
  ARM: at91: remove useless Makefile.boot
  ARM: at91: remove at91rm9200_sdramc.h
  ARM: at91: remove mach/at91_ramc.h and mach/at91rm9200_mc.h
  ARM: at91/pm: use the atmel-mc syscon defines
  pcmcia: at91_cf: Use syscon to configure the MC/smc
  ARM: at91: declare the at91rm9200 memory controller as a syscon
  mfd: syscon: Add Atmel MC (Memory Controller) registers definition
  ARM: at91: drop sam9_smc.c
  ata: at91: use syscon to configure the smc
  ARM: ux500: delete static resource defines
  ARM: ux500: rename ux500_map_io
  ARM: ux500: look up PRCMU resource from DT
  ARM: ux500: kill off L2CC static map
  ...

1  2 
arch/arm/boot/dts/tegra124.dtsi
arch/arm/mach-imx/gpc.c
drivers/ata/Kconfig

        apbmisc@0,70000800 {
                compatible = "nvidia,tegra124-apbmisc", "nvidia,tegra20-apbmisc";
                reg = <0x0 0x70000800 0x0 0x64>,   /* Chip revision */
-                     <0x0 0x7000E864 0x0 0x04>;   /* Strapping options */
+                     <0x0 0x7000e864 0x0 0x04>;   /* Strapping options */
        };
  
        pinmux: pinmux@0,70000868 {
                         <&tegra_car TEGRA124_CLK_PLL_U>,
                         <&tegra_car TEGRA124_CLK_USBD>;
                clock-names = "reg", "pll_u", "utmi-pads";
 -              resets = <&tegra_car 59>, <&tegra_car 22>;
 +              resets = <&tegra_car 22>, <&tegra_car 22>;
                reset-names = "usb", "utmi-pads";
                nvidia,hssync-start-delay = <0>;
                nvidia,idle-wait-delay = <17>;
                nvidia,hssquelch-level = <2>;
                nvidia,hsdiscon-level = <5>;
                nvidia,xcvr-hsslew = <12>;
 +              nvidia,has-utmi-pad-registers;
                status = "disabled";
        };
  
                         <&tegra_car TEGRA124_CLK_PLL_U>,
                         <&tegra_car TEGRA124_CLK_USBD>;
                clock-names = "reg", "pll_u", "utmi-pads";
 -              resets = <&tegra_car 22>, <&tegra_car 22>;
 +              resets = <&tegra_car 58>, <&tegra_car 22>;
                reset-names = "usb", "utmi-pads";
                nvidia,hssync-start-delay = <0>;
                nvidia,idle-wait-delay = <17>;
                nvidia,hssquelch-level = <2>;
                nvidia,hsdiscon-level = <5>;
                nvidia,xcvr-hsslew = <12>;
 -              nvidia,has-utmi-pad-registers;
                status = "disabled";
        };
  
                         <&tegra_car TEGRA124_CLK_PLL_U>,
                         <&tegra_car TEGRA124_CLK_USBD>;
                clock-names = "reg", "pll_u", "utmi-pads";
 -              resets = <&tegra_car 58>, <&tegra_car 22>;
 +              resets = <&tegra_car 59>, <&tegra_car 22>;
                reset-names = "usb", "utmi-pads";
                nvidia,hssync-start-delay = <0>;
                nvidia,idle-wait-delay = <17>;
diff --combined arch/arm/mach-imx/gpc.c
@@@ -280,15 -280,9 +280,15 @@@ void __init imx_gpc_check_dt(void
        struct device_node *np;
  
        np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-gpc");
 -      if (WARN_ON(!np ||
 -                  !of_find_property(np, "interrupt-controller", NULL)))
 -              pr_warn("Outdated DT detected, system is about to crash!!!\n");
 +      if (WARN_ON(!np))
 +              return;
 +
 +      if (WARN_ON(!of_find_property(np, "interrupt-controller", NULL))) {
 +              pr_warn("Outdated DT detected, suspend/resume will NOT work\n");
 +
 +              /* map GPC, so that at least CPUidle and WARs keep working */
 +              gpc_base = of_iomap(np, 0);
 +      }
  }
  
  #ifdef CONFIG_PM_GENERIC_DOMAINS
@@@ -449,10 -443,6 +449,10 @@@ static int imx_gpc_probe(struct platfor
        struct regulator *pu_reg;
        int ret;
  
 +      /* bail out if DT too old and doesn't provide the necessary info */
 +      if (!of_property_read_bool(pdev->dev.of_node, "#power-domain-cells"))
 +              return 0;
 +
        pu_reg = devm_regulator_get_optional(&pdev->dev, "pu");
        if (PTR_ERR(pu_reg) == -ENODEV)
                pu_reg = NULL;
@@@ -474,7 -464,6 +474,6 @@@ static const struct of_device_id imx_gp
  static struct platform_driver imx_gpc_driver = {
        .driver = {
                .name = "imx-gpc",
-               .owner = THIS_MODULE,
                .of_match_table = imx_gpc_dt_ids,
        },
        .probe = imx_gpc_probe,
diff --combined drivers/ata/Kconfig
@@@ -98,15 -98,6 +98,15 @@@ config SATA_AHCI_PLATFOR
  
          If unsure, say N.
  
 +config AHCI_BRCMSTB
 +      tristate "Broadcom STB AHCI SATA support"
 +      depends on ARCH_BRCMSTB
 +      help
 +        This option enables support for the AHCI SATA3 controller found on
 +        STB SoC's.
 +
 +        If unsure, say N.
 +
  config AHCI_DA850
        tristate "DaVinci DA850 AHCI SATA support"
        depends on ARCH_DAVINCI_DA850
@@@ -133,15 -124,6 +133,15 @@@ config AHCI_IM
  
          If unsure, say N.
  
 +config AHCI_CEVA
 +      tristate "CEVA AHCI SATA support"
 +      depends on OF
 +      help
 +        This option enables support for the CEVA AHCI SATA.
 +        It can be found on the Xilinx Zynq UltraScale+ MPSoC.
 +
 +        If unsure, say N.
 +
  config AHCI_MVEBU
        tristate "Marvell EBU AHCI SATA support"
        depends on ARCH_MVEBU
@@@ -288,7 -270,6 +288,7 @@@ config ATA_PII
  config SATA_DWC
        tristate "DesignWare Cores SATA support"
        depends on 460EX
 +      select DW_DMAC
        help
          This option enables support for the on-chip SATA controller of the
          AppliedMicro processor 460EX.
@@@ -748,6 -729,15 +748,6 @@@ config PATA_SC120
  
          If unsure, say N.
  
 -config PATA_SCC
 -      tristate "Toshiba's Cell Reference Set IDE support"
 -      depends on PCI && PPC_CELLEB
 -      help
 -        This option enables support for the built-in IDE controller on
 -        Toshiba Cell Reference Board.
 -
 -        If unsure, say N.
 -
  config PATA_SCH
        tristate "Intel SCH PATA support"
        depends on PCI
@@@ -845,7 -835,6 +845,6 @@@ config PATA_AT3
  config PATA_AT91
        tristate "PATA support for AT91SAM9260"
        depends on ARM && SOC_AT91SAM9
-       depends on !ARCH_MULTIPLATFORM
        help
          This option enables support for IDE devices on the Atmel AT91SAM9260 SoC.