diff options
Diffstat (limited to 'board/overo/overo.c')
| -rw-r--r-- | board/overo/overo.c | 14 | 
1 files changed, 4 insertions, 10 deletions
| diff --git a/board/overo/overo.c b/board/overo/overo.c index 850dfeecd..3c60b06ae 100644 --- a/board/overo/overo.c +++ b/board/overo/overo.c @@ -118,10 +118,6 @@ int get_board_revision(void)  		revision = gpio_get_value(115) << 2 |  			   gpio_get_value(113) << 1 |  			   gpio_get_value(112); - -		gpio_free(112); -		gpio_free(113); -		gpio_free(115);  	} else {  		printf("Error: unable to acquire board revision GPIOs\n");  		revision = -1; @@ -153,8 +149,7 @@ int get_sdio2_config(void)  				sdio_direct = 0;  		} -		gpio_free(130); -		gpio_free(139); +		gpio_direction_input(130);  	} else {  		printf("Error: unable to acquire sdio2 clk GPIOs\n");  		sdio_direct = -1; @@ -233,6 +228,9 @@ int misc_init_r(void)  		printf("Recognized Tobi Duo expansion board (rev %d %s)\n",  			expansion_config.revision,  			expansion_config.fab_revision); +		/* second lan chip */ +		enable_gpmc_cs_config(gpmc_lan_config, &gpmc_cfg->cs[4], +		    0x2B000000, GPMC_SIZE_16M);  		break;  	case GUMSTIX_PALO35:  		printf("Recognized Palo35 expansion board (rev %d %s)\n", @@ -310,10 +308,6 @@ static void setup_net_chip(void)  	enable_gpmc_cs_config(gpmc_lan_config, &gpmc_cfg->cs[5], 0x2C000000,  			GPMC_SIZE_16M); -	/* second lan chip */ -	enable_gpmc_cs_config(gpmc_lan_config, &gpmc_cfg->cs[4], 0x2B000000, -			GPMC_SIZE_16M); -  	/* Enable off mode for NWE in PADCONF_GPMC_NWE register */  	writew(readw(&ctrl_base ->gpmc_nwe) | 0x0E00, &ctrl_base->gpmc_nwe);  	/* Enable off mode for NOE in PADCONF_GPMC_NADV_ALE register */ |