diff options
author | H. Nikolaus Schaller <hns@goldelico.com> | 2012-10-16 09:26:24 +0200 |
---|---|---|
committer | H. Nikolaus Schaller <hns@goldelico.com> | 2012-10-16 09:26:24 +0200 |
commit | 08096acc438daf8d9dac2d55d44fbad8e89b7b62 (patch) | |
tree | 73122552a577c754ef2fa3ce929ff545cf4965d5 | |
parent | 7457d70dac429bce7bae53c9d59f4e41f3520cf2 (diff) | |
download | bootable_bootloader_goldelico_gta04-08096acc438daf8d9dac2d55d44fbad8e89b7b62.zip bootable_bootloader_goldelico_gta04-08096acc438daf8d9dac2d55d44fbad8e89b7b62.tar.gz bootable_bootloader_goldelico_gta04-08096acc438daf8d9dac2d55d44fbad8e89b7b62.tar.bz2 |
mapped AUX and Power LEDs to same two LEDs on b2 expansion board
-rw-r--r-- | u-boot/board/goldelico/gta04/status.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/u-boot/board/goldelico/gta04/status.c b/u-boot/board/goldelico/gta04/status.c index 3c55df5..bb278e1 100644 --- a/u-boot/board/goldelico/gta04/status.c +++ b/u-boot/board/goldelico/gta04/status.c @@ -139,6 +139,9 @@ void status_set_status(int value) i2c_set_bus_num(TCA6507_BUS); // write I2C2 // we could write a autoincrement address and all 3 bytes in a single message // we could set the TCA to do smooth transitions +#if defined(CONFIG_GOLDELICO_EXPANDER_B2) + value |= (value >> 3) & 0x03; // map power LEDs to AUX LEDs (we only have 2) +#endif i2c_reg_write(TCA6507_ADDRESS, TCA6507_SELECT0, 0); i2c_reg_write(TCA6507_ADDRESS, TCA6507_SELECT1, 0); i2c_reg_write(TCA6507_ADDRESS, TCA6507_SELECT2, value); // 1 = on |