1. 31 5月, 2016 4 次提交
  2. 11 5月, 2016 2 次提交
  3. 21 4月, 2016 1 次提交
  4. 01 4月, 2016 1 次提交
  5. 09 3月, 2016 3 次提交
    • C
      pinctrl: amlogic: Make driver independent from two-domain configuration · 9dab1868
      Carlo Caione 提交于
      In the Amlogic Meson8 / Meson8b platforms we have two different buses:
      cbus and aobus, corresponding to 2 different power domains (regular and
      always-on). On each bus a different set of registers is mapped to manage
      muxes, GPIOs and in general to control a clear subset of the pins.
      
      Considering this architecture, having two different pinctrl devices, one
      for each bus / power domain, makes much more sense than just having one
      single device.
      
      Right now we have one single pin controller driver that uses two
      different domains (represented by 'gpio' and 'gpio-ao' sub-nodes in the
      DTS) to manage the set of registers on the two buses. This dual-domain
      configuration is hardcoded into the driver that strictly requires one
      domain for each bus in the same pin controller device.
      
      With this patch we refactor the driver to allow splitting the driver in
      two parts. This change is needed to have a proper description of the HW
      in the device-tree where we want to introduce aobus and cbus.
      Signed-off-by: NCarlo Caione <carlo@endlessm.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      9dab1868
    • C
      pinctrl: amlogic: Separate some pin functions for Meson8 / Meson8b · ac1afc46
      Carlo Caione 提交于
      Separate functions for pins controlled by different pin controllers.
      Signed-off-by: NCarlo Caione <carlo@endlessm.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      ac1afc46
    • P
      pinctrl: meson: make explicitly non-modular · 2496eb32
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/Kconfig:config PINCTRL_MESON
      drivers/pinctrl/Kconfig:        bool
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the couple traces of modularity so that when reading the
      driver there is no doubt it is builtin-only.
      
      Since module_platform_driver() uses the same init level priority as
      builtin_platform_driver() the init ordering remains unchanged with
      this commit.
      
      We don't replace module.h with init.h since the file already has that.
      
      Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      is already contained at the top of the file in the comments.
      
      Cc: Beniamino Galvani <b.galvani@gmail.com>
      Cc: Carlo Caione <carlo@endlessm.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Antoine Tenart <antoine.tenart@free-electrons.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      2496eb32
  6. 05 1月, 2016 1 次提交
  7. 19 11月, 2015 1 次提交
    • L
      gpio: change member .dev to .parent · 58383c78
      Linus Walleij 提交于
      The name .dev in a struct is normally reserved for a struct device
      that is let us say a superclass to the thing described by the struct.
      struct gpio_chip stands out by confusingly using a struct device *dev
      to point to the parent device (such as a platform_device) that
      represents the hardware. As we want to give gpio_chip:s real devices,
      this is not working. We need to rename this member to parent.
      
      This was done by two coccinelle scripts, I guess it is possible to
      combine them into one, but I don't know such stuff. They look like
      this:
      
      @@
      struct gpio_chip *var;
      @@
      -var->dev
      +var->parent
      
      and:
      
      @@
      struct gpio_chip var;
      @@
      -var.dev
      +var.parent
      
      and:
      
      @@
      struct bgpio_chip *var;
      @@
      -var->gc.dev
      +var->gc.parent
      
      Plus a few instances of bgpio that I couldn't figure out how
      to teach Coccinelle to rewrite.
      
      This patch hits all over the place, but I *strongly* prefer this
      solution to any piecemal approaches that just exercise patch
      mechanics all over the place. It mainly hits drivers/gpio and
      drivers/pinctrl which is my own backyard anyway.
      
      Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
      Cc: Rafał Miłecki <zajec5@gmail.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
      Cc: Alek Du <alek.du@intel.com>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.com>
      Acked-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: NLee Jones <lee.jones@linaro.org>
      Acked-by: NJiri Kosina <jkosina@suse.cz>
      Acked-by: NHans-Christian Egtvedt <egtvedt@samfundet.no>
      Acked-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      58383c78
  8. 10 6月, 2015 1 次提交
  9. 19 5月, 2015 1 次提交
  10. 07 4月, 2015 3 次提交
  11. 26 1月, 2015 1 次提交