212-pinctrl-sunxi-add-a20-output-clkpin-funcs.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. From 271a35ef6237c3b775aad357969dc75ae5b56988 Mon Sep 17 00:00:00 2001
  2. From: Chen-Yu Tsai <[email protected]>
  3. Date: Tue, 24 Dec 2013 21:26:19 +0800
  4. Subject: [PATCH] pinctrl: sunxi: Add Allwinner A20 clock output pin functions
  5. This patch adds the clock output pin functions on the A20.
  6. The 2 pins can output a configurable clock to be used by
  7. external modules. This is used on the CubieTruck, to supply
  8. a 32768 Hz low power clock to the onboard Wifi+BT module.
  9. Signed-off-by: Chen-Yu Tsai <[email protected]>
  10. ---
  11. drivers/pinctrl/pinctrl-sunxi-pins.h | 2 ++
  12. 1 file changed, 2 insertions(+)
  13. --- a/drivers/pinctrl/pinctrl-sunxi-pins.h
  14. +++ b/drivers/pinctrl/pinctrl-sunxi-pins.h
  15. @@ -3774,12 +3774,14 @@ static const struct sunxi_desc_pin sun7i
  16. SUNXI_FUNCTION(0x1, "gpio_out"),
  17. SUNXI_FUNCTION(0x2, "spi0"), /* MOSI */
  18. SUNXI_FUNCTION(0x3, "uart6"), /* TX */
  19. + SUNXI_FUNCTION(0x4, "clk_out_a"), /* CLK_OUT_A */
  20. SUNXI_FUNCTION_IRQ(0x5, 24)), /* EINT24 */
  21. SUNXI_PIN(SUNXI_PINCTRL_PIN_PI13,
  22. SUNXI_FUNCTION(0x0, "gpio_in"),
  23. SUNXI_FUNCTION(0x1, "gpio_out"),
  24. SUNXI_FUNCTION(0x2, "spi0"), /* MISO */
  25. SUNXI_FUNCTION(0x3, "uart6"), /* RX */
  26. + SUNXI_FUNCTION(0x4, "clk_out_b"), /* CLK_OUT_B */
  27. SUNXI_FUNCTION_IRQ(0x5, 25)), /* EINT25 */
  28. SUNXI_PIN(SUNXI_PINCTRL_PIN_PI14,
  29. SUNXI_FUNCTION(0x0, "gpio_in"),