summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2013-07-14 11:52:25 +0200
committerH. Nikolaus Schaller <hns@goldelico.com>2013-07-14 11:52:25 +0200
commit6ed032c9ea0bd0a9247b5e5bc9f0be0e0d98c4b5 (patch)
treeda19d72bf3591f5fbbb6cad8c8f00d40c1456402
parenta169fa70868bfbfdd32297a61128bb79b2baf513 (diff)
downloadbootable_bootloader_goldelico_gta04-6ed032c9ea0bd0a9247b5e5bc9f0be0e0d98c4b5.zip
bootable_bootloader_goldelico_gta04-6ed032c9ea0bd0a9247b5e5bc9f0be0e0d98c4b5.tar.gz
bootable_bootloader_goldelico_gta04-6ed032c9ea0bd0a9247b5e5bc9f0be0e0d98c4b5.tar.bz2
fixed minor issue with mirror test command
-rw-r--r--u-boot/board/goldelico/gta04/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/u-boot/board/goldelico/gta04/status.c b/u-boot/board/goldelico/gta04/status.c
index 659061f..f8483b9 100644
--- a/u-boot/board/goldelico/gta04/status.c
+++ b/u-boot/board/goldelico/gta04/status.c
@@ -162,7 +162,7 @@ int status_get_buttons(void)
u8 val;
i2c_set_bus_num(TWL4030_I2C_BUS); // read I2C1
twl4030_i2c_read_u8(TWL4030_CHIP_PM_MASTER, &val, TWL4030_PM_MASTER_STS_HW_CONDITIONS); // read state of power button (bit 0) from TPS65950
- status |= (val&0x01) != 0;
+ status |= (((val&0x01) != 0) << 3);
}
if(GPIO_PENIRQ >= 0)
status |= ((!omap_get_gpio_datain(GPIO_PENIRQ)) << 4);