Root/target/linux/xburst/patches-3.2/0026-set-atben-GPIO-to-func_none.patch

Source at commit a4f94608b1c84c9faf85a3efc10d603e09947c52 created 8 years 4 months ago.
By Xiangfu, xburst: nanonote: fix atusb compile error
1From 0ca62427c203df79d23a6c1b7769f482ca07c4f1 Mon Sep 17 00:00:00 2001
2From: Xiangfu Liu <xiangfu@sharism.cc>
3Date: Tue, 1 Nov 2011 21:15:26 +0800
4Subject: [PATCH 26/28] set atben GPIO to func_none
5
6---
7 arch/mips/jz4740/board-qi_lb60.c | 7 +++++++
8 1 files changed, 7 insertions(+), 0 deletions(-)
9
10diff --git a/arch/mips/jz4740/board-qi_lb60.c b/arch/mips/jz4740/board-qi_lb60.c
11index 4e24b95..83a1717 100644
12--- a/arch/mips/jz4740/board-qi_lb60.c
13+++ b/arch/mips/jz4740/board-qi_lb60.c
14@@ -453,6 +453,13 @@ static void __init board_gpio_setup(void)
15      * drivers. Everything else is done by the drivers themselves. */
16     jz_gpio_disable_pullup(QI_LB60_GPIO_SD_VCC_EN_N);
17     jz_gpio_disable_pullup(QI_LB60_GPIO_SD_CD);
18+
19+ jz_gpio_set_function(JZ_GPIO_PORTD(8), JZ_GPIO_FUNC_NONE);
20+ jz_gpio_set_function(JZ_GPIO_PORTD(9), JZ_GPIO_FUNC_NONE);
21+ jz_gpio_set_function(JZ_GPIO_PORTD(10), JZ_GPIO_FUNC_NONE);
22+ jz_gpio_set_function(JZ_GPIO_PORTD(11), JZ_GPIO_FUNC_NONE);
23+ jz_gpio_set_function(JZ_GPIO_PORTD(12), JZ_GPIO_FUNC_NONE);
24+ jz_gpio_set_function(JZ_GPIO_PORTD(13), JZ_GPIO_FUNC_NONE);
25 }
26 
27 static int __init qi_lb60_init_platform_devices(void)
28--
291.7.5.4
30
31

Archive Download this file



interactive