diff options
author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-10-03 16:44:29 +0200 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-10-03 16:44:29 +0200 |
commit | 386c6cb10d644cf51d764223fe2fcaaae4ac2b75 (patch) | |
tree | cbbf7726ebbbf4f51785531dc42ee005ba27d429 /board/buffalo | |
parent | b77026225a319066eaaa11839121a273469a2cf4 (diff) | |
parent | 9bd2317b450d379f4b8162e7dbb9997bf3a14dff (diff) | |
download | u-boot-imx-386c6cb10d644cf51d764223fe2fcaaae4ac2b75.zip u-boot-imx-386c6cb10d644cf51d764223fe2fcaaae4ac2b75.tar.gz u-boot-imx-386c6cb10d644cf51d764223fe2fcaaae4ac2b75.tar.bz2 |
Merge remote-tracking branch 'u-boot-marvell/master'
Diffstat (limited to 'board/buffalo')
-rw-r--r-- | board/buffalo/lsxl/lsxl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/board/buffalo/lsxl/lsxl.c b/board/buffalo/lsxl/lsxl.c index b3f31d6..57776fb 100644 --- a/board/buffalo/lsxl/lsxl.c +++ b/board/buffalo/lsxl/lsxl.c @@ -195,9 +195,11 @@ int board_init(void) static void check_power_switch(void) { if (kw_gpio_get_value(GPIO_POWER_SWITCH)) { - /* turn off HDD and USB power */ + /* turn off fan, HDD and USB power */ kw_gpio_set_value(GPIO_HDD_POWER, 0); kw_gpio_set_value(GPIO_USB_VBUS, 0); + kw_gpio_set_value(GPIO_FAN_HIGH, 1); + kw_gpio_set_value(GPIO_FAN_LOW, 1); set_led(LED_OFF); /* loop until released */ @@ -207,6 +209,8 @@ static void check_power_switch(void) /* turn power on again */ kw_gpio_set_value(GPIO_HDD_POWER, 1); kw_gpio_set_value(GPIO_USB_VBUS, 1); + kw_gpio_set_value(GPIO_FAN_HIGH, 0); + kw_gpio_set_value(GPIO_FAN_LOW, 0); set_led(LED_POWER_BLINKING); } } |