platform/x86: mlx-platform: Add UID LED for the next generation systems
authorVadim Pasternak <vadimp@mellanox.com>
Tue, 26 Feb 2019 08:20:33 +0000 (08:20 +0000)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 7 Mar 2019 16:46:29 +0000 (08:46 -0800)
Add support for UID LED for the next generation systems MQMB7xx,
MSN37xx, MSN34xx, MSN38xx.

All these systems support UID LED control through the programmable
device.
The UID LED is to be exposed to leds-mlxreg driver.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/mlx-platform.c

index dd166b2bf7421e20396a4093e2a335a00682a16e..b7adaa57c001611bb3ed25724c26684951c5a507 100644 (file)
@@ -913,6 +913,11 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_ng_led_data[] = {
                .capability = MLXPLAT_CPLD_LPC_REG_FAN_DRW_CAP_OFFSET,
                .bit = BIT(5),
        },
+       {
+               .label = "uid:blue",
+               .reg = MLXPLAT_CPLD_LPC_REG_LED5_OFFSET,
+               .mask = MLXPLAT_CPLD_LED_LO_NIBBLE_MASK,
+       },
 };
 
 static struct mlxreg_core_platform_data mlxplat_default_ng_led_data = {