From ea98a48a0bde70f525bd9b195cd68a73f2636203 Mon Sep 17 00:00:00 2001 From: xiangfu 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 struct device; -- 1.6.0.4