powerpc/powernv: Add OPAL interfaces for accessing and modifying system LED states
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Wed, 19 Aug 2015 16:49:52 +0000 (22:19 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Aug 2015 08:19:07 +0000 (18:19 +1000)
This patch registers the following two new OPAL interfaces calls
for the platform LED subsystem. With the help of these new OPAL calls,
the kernel will be able to get or set the state of various individual
LEDs on the system at any given location code which is passed through
the LED specific device tree nodes.

(1) OPAL_LEDS_GET_INDICATOR     opal_leds_get_ind
(2) OPAL_LEDS_SET_INDICATOR     opal_leds_set_ind

Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Tested-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal-api.h
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-wrappers.S

index 47d549a..b516ec1 100644 (file)
 #define OPAL_FLASH_WRITE                       111
 #define OPAL_FLASH_ERASE                       112
 #define OPAL_PRD_MSG                           113
+#define OPAL_LEDS_GET_INDICATOR                        114
+#define OPAL_LEDS_SET_INDICATOR                        115
 #define OPAL_CEC_REBOOT2                       116
 #define OPAL_LAST                              116
 
Simple merge