1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-10 17:30:15 +02:00
openwrt-xburst/target/linux/xburst/patches-3.2/0026-set-atben-GPIO-to-func_none.patch
2012-03-14 16:52:48 +08:00

31 lines
1.1 KiB
Diff

From 0ca62427c203df79d23a6c1b7769f482ca07c4f1 Mon Sep 17 00:00:00 2001
From: Xiangfu Liu <xiangfu@sharism.cc>
Date: Tue, 1 Nov 2011 21:15:26 +0800
Subject: [PATCH 26/28] set atben GPIO to func_none
---
arch/mips/jz4740/board-qi_lb60.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/arch/mips/jz4740/board-qi_lb60.c b/arch/mips/jz4740/board-qi_lb60.c
index 4e24b95..83a1717 100644
--- a/arch/mips/jz4740/board-qi_lb60.c
+++ b/arch/mips/jz4740/board-qi_lb60.c
@@ -453,6 +453,13 @@ static void __init board_gpio_setup(void)
* drivers. Everything else is done by the drivers themselves. */
jz_gpio_disable_pullup(QI_LB60_GPIO_SD_VCC_EN_N);
jz_gpio_disable_pullup(QI_LB60_GPIO_SD_CD);
+
+ jz_gpio_set_function(JZ_GPIO_PORTD(8), JZ_GPIO_FUNC_NONE);
+ jz_gpio_set_function(JZ_GPIO_PORTD(9), JZ_GPIO_FUNC_NONE);
+ jz_gpio_set_function(JZ_GPIO_PORTD(10), JZ_GPIO_FUNC_NONE);
+ jz_gpio_set_function(JZ_GPIO_PORTD(11), JZ_GPIO_FUNC_NONE);
+ jz_gpio_set_function(JZ_GPIO_PORTD(12), JZ_GPIO_FUNC_NONE);
+ jz_gpio_set_function(JZ_GPIO_PORTD(13), JZ_GPIO_FUNC_NONE);
}
static int __init qi_lb60_init_platform_devices(void)
--
1.7.5.4