storm: fix SW_RESET signal polarity

The actual level required to take the ethernet switch out of reset is
low, not high.

BUG=chrome-os-partner:31780
TEST=with this patch applied, when proto0.2 boots, the ethernet
     switch's LED blink once, as was the case with proto0.

Change-Id: I81eeb73b85cf113709b6d4ac3aa7639a40fa6719
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/217416
Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
Vadim Bendebury 2014-09-09 20:41:33 -07:00 committed by chrome-internal-fetch
commit 9fa69d22de

View file

@ -97,11 +97,16 @@ static void deassert_sw_reset(void)
if (board_id() == 0)
return;
/* only proto0.2 and later care about this. */
/*
* only proto0.2 and later care about this. This signal is eventually
* driving the ehernet switch reset input, which is active low. But
* since this signal gets inverted along the way, the GPIO needs to be
* driven low to take the switch out of reset.
*/
gpio_tlmm_config_set(SW_RESET_GPIO, FUNC_SEL_GPIO,
GPIO_PULL_UP, GPIO_4MA, GPIO_ENABLE);
gpio_set_out_value(SW_RESET_GPIO, 1);
gpio_set_out_value(SW_RESET_GPIO, 0);
}
static void mainboard_init(device_t dev)