1. 03 Apr, 2013 3 commits
    • Emilio López's avatar
      pinctrl: sunxi: add clock support · 950707c0
      Emilio López authored
      For the port controller to work, we need to enable the apb0_pio gate.
      This commit adds the ability to enable one clock specified on the device
      tree to the pinctrl driver.
      Signed-off-by: default avatarEmilio López <emilio@elopez.com.ar>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      950707c0
    • Haojian Zhuang's avatar
      pinctrl: core: add dependence of GPIOLIB · 2afe8229
      Haojian Zhuang authored
      In file included from drivers/pinctrl/core.c:30:0:
      include/asm-generic/gpio.h: In function 'gpio_get_value_cansleep':
      include/asm-generic/gpio.h:270:2: error: implicit declaration of
      function '__gpio_get_value' [-Werror=implicit-function-declaration]
      include/asm-generic/gpio.h: In function 'gpio_set_value_cansleep':
      include/asm-generic/gpio.h:276:2: error: implicit declaration of
      function '__gpio_set_value' [-Werror=implicit-function-declaration]
      drivers/pinctrl/core.c: In function 'pinctrl_ready_for_gpio_range':
      drivers/pinctrl/core.c:297:9: error: implicit declaration of function
      'gpio_to_chip' [-Werror=implicit-function-declaration]
      drivers/pinctrl/core.c:297:27: warning: initialization makes pointer
      from integer without a cast [enabled by default]
      drivers/pinctrl/core.c:304:45: error: dereferencing pointer to
      incomplete type
      drivers/pinctrl/core.c:305:26: error: dereferencing pointer to
      incomplete type
      drivers/pinctrl/core.c:305:39: error: dereferencing pointer to
      incomplete type
      cc1: some warnings being treated as errors
      make[2]: *** [drivers/pinctrl/core.o] Error 1
      make[1]: *** [drivers/pinctrl] Error 2
      make[1]: *** Waiting for unfinished jobs....
      
      It's caused by CONFIG_GPIOLIB isn't enabled for some platform. So
      add the dependence on pinctrl_ready_for_gpio_range().
      Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@linaro.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      2afe8229
    • Patrice Chotard's avatar
      pinctrl/abx500: fix ab8505 alternate function · a36571b5
      Patrice Chotard authored
      This fix allows to correctly select default and
      alternate pin mode.
      
      By default for all ABx500 family chip, pin default
      mode is selected by clearing corresponding bit in
      GPIOSELx register except for pins which support
      alternate function, in this case, corresponding bit
      must be set.
      
      But, due to an unlogical hardware implementation,
      for one particular pin (GPIO11) reverse setting
      must be done. For that, update the alternate function
      array by declaring that this pin supports alternate
      function.
      Reported-by: default avatarRamesh Chandrasekaran <ramesh.chandrasekaran@stericsson.com>
      Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      a36571b5
  2. 27 Mar, 2013 16 commits
  3. 18 Mar, 2013 1 commit
    • Linus Walleij's avatar
      pinctrl: document the "GPIO mode" pitfall · fdba2d06
      Linus Walleij authored
      Recently as adoption of the pinctrl framework is reaching
      niches where the pins are reconfigured during system sleep
      and datasheets often talk about something called "GPIO mode",
      some engineers become confused by this, thinking that since
      it is named "GPIO (something something)" it must be modeled
      in the kernel using <linux/gpio.h>.
      
      To clarify things, let's put in this piece of documentation,
      or just start off the discussion here.
      
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Pankaj Dev <pankaj.dev@st.com>
      Reviewed-by: default avatarStephen Warren <swarren@nvidia.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      fdba2d06
  4. 13 Mar, 2013 2 commits
  5. 07 Mar, 2013 15 commits
  6. 03 Mar, 2013 3 commits