1. 03 4月, 2013 3 次提交
    • E
      pinctrl: sunxi: add clock support · 950707c0
      Emilio López 提交于
      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: NEmilio López <emilio@elopez.com.ar>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      950707c0
    • H
      pinctrl: core: add dependence of GPIOLIB · 2afe8229
      Haojian Zhuang 提交于
      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: NHaojian Zhuang <haojian.zhuang@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      2afe8229
    • P
      pinctrl/abx500: fix ab8505 alternate function · a36571b5
      Patrice Chotard 提交于
      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: NRamesh Chandrasekaran <ramesh.chandrasekaran@stericsson.com>
      Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      a36571b5
  2. 28 3月, 2013 16 次提交
  3. 18 3月, 2013 1 次提交
    • L
      pinctrl: document the "GPIO mode" pitfall · fdba2d06
      Linus Walleij 提交于
      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: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      fdba2d06
  4. 14 3月, 2013 2 次提交
  5. 07 3月, 2013 15 次提交
  6. 04 3月, 2013 3 次提交