From 08096acc438daf8d9dac2d55d44fbad8e89b7b62 Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Tue, 16 Oct 2012 09:26:24 +0200 Subject: mapped AUX and Power LEDs to same two LEDs on b2 expansion board --- u-boot/board/goldelico/gta04/status.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.1