From 9f358d364f4e2c3a17e35c4638ef2d96d9c1365f Mon Sep 17 00:00:00 2001 From: cwz Date: Tue, 29 Mar 2011 23:31:49 -0700 Subject: [PATCH] update the fih board --- arch/arm/mach-rk29/board-rk29-fih.c | 47 +++++++++-------------------- 1 file changed, 15 insertions(+), 32 deletions(-) diff --git a/arch/arm/mach-rk29/board-rk29-fih.c b/arch/arm/mach-rk29/board-rk29-fih.c index 6fd3e1e83fd5..756df27cecf2 100755 --- a/arch/arm/mach-rk29/board-rk29-fih.c +++ b/arch/arm/mach-rk29/board-rk29-fih.c @@ -541,7 +541,7 @@ static struct regulator_init_data rk29_regulator_vio = { /* VAUX1 */ static struct regulator_consumer_supply rk29_vaux1_supplies[] = { { - .supply = "vuax1", + .supply = "vaux1", }, }; @@ -561,7 +561,7 @@ static struct regulator_init_data rk29_regulator_vaux1 = { /* VAUX2 */ static struct regulator_consumer_supply rk29_vaux2_supplies[] = { { - .supply = "vuax2", + .supply = "vaux2", }, }; @@ -2088,7 +2088,8 @@ static struct spi_cs_gpio rk29xx_spi0_cs_gpios[SPI_CHIPSELECT_NUM] = { { .name = "spi0 cs0", .cs_gpio = RK29_PIN2_PC1, - .cs_iomux_name = NULL, + .cs_iomux_name = GPIO2C1_SPI0CSN0_NAME, + .cs_iomux_mode = GPIO2H_SPI0_CSN0, }, { .name = "spi0 cs1", @@ -2102,7 +2103,8 @@ static struct spi_cs_gpio rk29xx_spi1_cs_gpios[SPI_CHIPSELECT_NUM] = { { .name = "spi1 cs0", .cs_gpio = RK29_PIN2_PC5, - .cs_iomux_name = NULL, + .cs_iomux_name = GPIO2C5_SPI1CSN0_NAME, + .cs_iomux_mode = GPIO2H_SPI1_CSN0, }, { .name = "spi1 cs1", @@ -2115,40 +2117,20 @@ static struct spi_cs_gpio rk29xx_spi1_cs_gpios[SPI_CHIPSELECT_NUM] = { static int spi_io_init(struct spi_cs_gpio *cs_gpios, int cs_num) { #if 1 - int i,j,ret; - - //cs + int i; if (cs_gpios) { for (i=0; i