pinctrl: sunxi: Add Allwinner A20 clock output pin functions
authorChen-Yu Tsai <wens@csie.org>
Mon, 30 Dec 2013 03:25:48 +0000 (11:25 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Jan 2014 09:46:28 +0000 (10:46 +0100)
This patch adds the clock output pin functions on the A20.
The 2 pins can output a configurable clock to be used by
external modules. This is used on the CubieTruck, to supply
a 32768 Hz low power clock to the onboard Wifi+BT module.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-sunxi-pins.h

index 2c7446a1a199d0347e2fd4595ed1c28ced93ed28..6fd8d4d951406aec5f01c021c2c80b84ebf4f4b0 100644 (file)
@@ -3774,12 +3774,14 @@ static const struct sunxi_desc_pin sun7i_a20_pins[] = {
                  SUNXI_FUNCTION(0x1, "gpio_out"),
                  SUNXI_FUNCTION(0x2, "spi0"),          /* MOSI */
                  SUNXI_FUNCTION(0x3, "uart6"),         /* TX */
+                 SUNXI_FUNCTION(0x4, "clk_out_a"),     /* CLK_OUT_A */
                  SUNXI_FUNCTION_IRQ(0x5, 24)),         /* EINT24 */
        SUNXI_PIN(SUNXI_PINCTRL_PIN_PI13,
                  SUNXI_FUNCTION(0x0, "gpio_in"),
                  SUNXI_FUNCTION(0x1, "gpio_out"),
                  SUNXI_FUNCTION(0x2, "spi0"),          /* MISO */
                  SUNXI_FUNCTION(0x3, "uart6"),         /* RX */
+                 SUNXI_FUNCTION(0x4, "clk_out_b"),     /* CLK_OUT_B */
                  SUNXI_FUNCTION_IRQ(0x5, 25)),         /* EINT25 */
        SUNXI_PIN(SUNXI_PINCTRL_PIN_PI14,
                  SUNXI_FUNCTION(0x0, "gpio_in"),