]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'pinctrl/for-next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 04:47:49 +0000 (15:47 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 04:47:49 +0000 (15:47 +1100)
Conflicts:
drivers/gpio/Kconfig
drivers/pinctrl/pinctrl-nomadik.c
include/linux/mfd/abx500/ab8500.h

14 files changed:
1  2 
Documentation/devicetree/bindings/vendor-prefixes.txt
arch/arm/Kconfig
arch/arm/mach-ux500/board-mop500.c
drivers/base/dd.c
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpiolib-of.c
drivers/pinctrl/Kconfig
drivers/pinctrl/pinctrl-falcon.c
drivers/pinctrl/pinctrl-nomadik.c
drivers/pinctrl/pinctrl-samsung.c
drivers/pinctrl/pinctrl-xway.c
include/linux/device.h
include/linux/mfd/abx500/ab8500.h

index 4519dff3f506d096669cbec0a55ac142e3ec103f,15321373ec8d4113acfba3f4917aa30fe96bb53b..19e1ef73ab0d9f464d58373d175c38d56fa97aa6
@@@ -52,9 -50,9 +52,10 @@@ simte
  sirf  SiRF Technology, Inc.
  snps  Synopsys, Inc.
  st    STMicroelectronics
+ ste   ST-Ericsson
  stericsson    ST-Ericsson
  ti    Texas Instruments
 +toshiba       Toshiba Corporation
  via   VIA Technologies, Inc.
  wlf   Wolfson Microelectronics
  wm    Wondermedia Technologies, Inc.
Simple merge
Simple merge
Simple merge
index 054f7b4f323f3d361b3be0ab40deeacf89cbde7d,e5116fa851406ffc57b900ba3374f2f09091216a..74e17f19cc3386f6a43d857231c0fc2fca351903
@@@ -657,19 -657,6 +657,13 @@@ config GPIO_JANZ_TT
          This driver provides support for driving the pins in output
          mode only. Input mode is not supported.
  
- config GPIO_AB8500
-       bool "ST-Ericsson AB8500 Mixed Signal Circuit gpio functions"
-       depends on AB8500_CORE && BROKEN
-       help
-         Select this to enable the AB8500 IC GPIO driver
 +config GPIO_PALMAS
 +      bool "TI PALMAS series PMICs GPIO"
 +      depends on MFD_PALMAS
 +      help
 +        Select this option to enable GPIO driver for the TI PALMAS
 +        series chip family.
 +
  config GPIO_TPS6586X
        bool "TPS6586X GPIO"
        depends on MFD_TPS6586X
Simple merge
Simple merge
Simple merge
Simple merge
index 887ef566f3d09b2d287e7b42476d53475c22dc28,b885c0911e83348a8bd6be1c42332ef97a483465..3c80dd98304bc6ce08a021b60d664cc9641b05c9
@@@ -1350,34 -1351,24 +1351,24 @@@ static int nmk_gpio_probe(struct platfo
        }
  
        res = platform_get_resource(dev, IORESOURCE_MEM, 0);
-       if (!res) {
-               ret = -ENOENT;
-               goto out;
-       }
+       if (!res)
+               return -ENOENT;
  
        irq = platform_get_irq(dev, 0);
-       if (irq < 0) {
-               ret = irq;
-               goto out;
-       }
+       if (irq < 0)
+               return irq;
  
        secondary_irq = platform_get_irq(dev, 1);
-       if (secondary_irq >= 0 && !pdata->get_secondary_status) {
-               ret = -EINVAL;
-               goto out;
-       }
+       if (secondary_irq >= 0 && !pdata->get_secondary_status)
+               return -EINVAL;
  
 -      base = devm_request_and_ioremap(&dev->dev, res);
 -      if (!base)
 -              return -ENOMEM;
 +      base = devm_ioremap_resource(&dev->dev, res);
-       if (IS_ERR(base)) {
-               ret = PTR_ERR(base);
-               goto out;
-       }
++      if (IS_ERR(base))
++              return PTR_ERR(base);
  
        clk = devm_clk_get(&dev->dev, NULL);
-       if (IS_ERR(clk)) {
-               ret = PTR_ERR(clk);
-               goto out;
-       }
+       if (IS_ERR(clk))
+               return PTR_ERR(clk);
        clk_prepare(clk);
  
        nmk_chip = devm_kzalloc(&dev->dev, sizeof(*nmk_chip), GFP_KERNEL);
Simple merge
Simple merge
Simple merge
index 7c0df91e33783114b47c6f7d224cd80a619f19dd,fc0534483c726daaefb0cd5e50116b142a17a4dc..9db0bda446a0794a9460178e248162727556e79b
@@@ -290,9 -385,8 +388,9 @@@ struct ab8500_platform_data 
        struct ab8500_regulator_reg_init *regulator_reg_init;
        int num_regulator;
        struct regulator_init_data *regulator;
-       struct ab8500_gpio_platform_data *gpio;
+       struct abx500_gpio_platform_data *gpio;
        struct ab8500_codec_platform_data *codec;
 +      struct ab8500_sysctrl_platform_data *sysctrl;
  };
  
  extern int ab8500_init(struct ab8500 *ab8500,
@@@ -370,12 -464,48 +468,56 @@@ static inline int is_ab9540_2p0(struct 
        return (is_ab9540(ab) && (ab->chip_id == AB8500_CUT2P0));
  }
  
+ /*
+  * Be careful, the marketing name for this chip is 2.1
+  * but the value read from the chip is 3.0 (0x30)
+  */
+ static inline int is_ab9540_3p0(struct ab8500 *ab)
+ {
+       return (is_ab9540(ab) && (ab->chip_id == AB8500_CUT3P0));
+ }
+ static inline int is_ab8540_1p0_or_earlier(struct ab8500 *ab)
+ {
+       return is_ab8540(ab) && (ab->chip_id <= AB8500_CUT1P0);
+ }
+ static inline int is_ab8540_1p1_or_earlier(struct ab8500 *ab)
+ {
+       return is_ab8540(ab) && (ab->chip_id <= AB8500_CUT1P1);
+ }
+ static inline int is_ab8540_1p2_or_earlier(struct ab8500 *ab)
+ {
+       return is_ab8540(ab) && (ab->chip_id <= AB8500_CUT1P2);
+ }
+ static inline int is_ab8540_2p0_or_earlier(struct ab8500 *ab)
+ {
+       return is_ab8540(ab) && (ab->chip_id <= AB8500_CUT2P0);
+ }
+ static inline int is_ab8540_2p0(struct ab8500 *ab)
+ {
+       return is_ab8540(ab) && (ab->chip_id == AB8500_CUT2P0);
+ }
+ static inline int is_ab8505_2p0_earlier(struct ab8500 *ab)
+ {
+       return (is_ab8505(ab) && (ab->chip_id < AB8500_CUT2P0));
+ }
+ static inline int is_ab9540_2p0_or_earlier(struct ab8500 *ab)
+ {
+       return (is_ab9540(ab) && (ab->chip_id < AB8500_CUT2P0));
+ }
 +#ifdef CONFIG_AB8500_DEBUG
 +void ab8500_dump_all_banks(struct device *dev);
 +void ab8500_debug_register_interrupt(int line);
 +#else
 +static inline void ab8500_dump_all_banks(struct device *dev) {}
 +static inline void ab8500_debug_register_interrupt(int line) {}
 +#endif
 +
  #endif /* MFD_AB8500_H */