1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-29 00:31:32 +02:00
openwrt-xburst/target/linux/xburst/patches-2.6.24/0007-already-init-in-u-boot.patch
Xiangfu Liu 4808ec76e8 add-2.6.24-kernel-patch
Signed-off-by: Xiangfu Liu <xiangfu.z@gmail.com>
2009-10-28 03:13:09 +08:00

96 lines
2.2 KiB
Diff

From ea98a48a0bde70f525bd9b195cd68a73f2636203 Mon Sep 17 00:00:00 2001
From: xiangfu <xiangfu.z@gmail.com>
Date: Wed, 22 Apr 2009 15:09:55 +0800
Subject: [PATCH] already init in u-boot
---
arch/mips/jz4740/board-pi.c | 35 +++++++++++++++++++++--------------
drivers/mmc/host/jz_mmc.h | 3 ---
2 files changed, 21 insertions(+), 17 deletions(-)
diff --git a/arch/mips/jz4740/board-pi.c b/arch/mips/jz4740/board-pi.c
index 298d853..05e577e 100644
--- a/arch/mips/jz4740/board-pi.c
+++ b/arch/mips/jz4740/board-pi.c
@@ -65,42 +65,49 @@ static void __init board_gpio_setup(void)
/*
* Initialize MSC pins
*/
- __gpio_as_msc();
+ /* __gpio_as_msc(); */
+
+ /*
+ * Initialize UART0 pins
+ */
+ /* __gpio_as_uart0(); */
/*
* Initialize LCD pins
*/
- __gpio_as_lcd_18bit();
+ /* __gpio_as_lcd_18bit(); */
/*
* Initialize SSI pins
*/
- __gpio_as_ssi();
+ /* __gpio_as_ssi(); */
/*
* Initialize I2C pins
*/
- __gpio_as_i2c();
+ /* __gpio_as_i2c(); */
/*
* Initialize Other pins
*/
- __gpio_as_output(GPIO_SD_VCC_EN_N);
- __gpio_clear_pin(GPIO_SD_VCC_EN_N);
+ /* __gpio_as_output(GPIO_SD_VCC_EN_N); */
+ /* __gpio_clear_pin(GPIO_SD_VCC_EN_N); */
+ /* __gpio_set_pin(GPIO_SD_VCC_EN_N); */
+
+ /* __gpio_as_input(GPIO_SD_CD_N); */
+ /* __gpio_disable_pull(GPIO_SD_CD_N); */
- __gpio_as_input(GPIO_SD_CD_N);
- __gpio_disable_pull(GPIO_SD_CD_N);
+ /* __gpio_as_input(GPIO_SD_WP); */
+ /* __gpio_disable_pull(GPIO_SD_WP); */
- __gpio_as_input(GPIO_SD_WP);
- __gpio_disable_pull(GPIO_SD_WP);
+ /* __gpio_as_output(GPIO_LED_EN); */
+
+ /* __gpio_as_input(GPIO_USB_DETE); */
+ /* __gpio_as_output(GPIO_DISP_OFF_N); */
__gpio_as_input(GPIO_DC_DETE_N);
__gpio_as_input(GPIO_CHARG_STAT_N);
- __gpio_as_input(GPIO_USB_DETE);
-
- __gpio_as_output(GPIO_DISP_OFF_N);
- __gpio_as_output(GPIO_LED_EN);
}
void __init jz_board_setup(void)
diff --git a/drivers/mmc/host/jz_mmc.h b/drivers/mmc/host/jz_mmc.h
index c733529..0bdf971 100644
--- a/drivers/mmc/host/jz_mmc.h
+++ b/drivers/mmc/host/jz_mmc.h
@@ -17,9 +17,6 @@ typedef struct jzsoc_dma_desc {
volatile u32 dcmd; /* DCMD value for the current transfer */
} jzsoc_dma_desc;
-
-
-
#include <linux/interrupt.h>
struct device;
--
1.6.0.4