summaryrefslogtreecommitdiffstats
path: root/physical.hpp
Commit message (Collapse)AuthorAgeFilesLines
* physical: Conform to LED class kernel ABIHEADmasterAndrew Jeffery2019-04-081-4/+4
| | | | | | | | | | | | | | | | | | | | The kernel says the following about the LED sysfs interface: > LED handling under Linux > ======================== > > In its simplest form, the LED class just allows control of LEDs from > userspace. LEDs appear in /sys/class/leds/. The maximum brightness of the > LED is defined in max_brightness file. The brightness file will set the brightness > of the LED (taking a value 0-max_brightness). Most LEDs don't have hardware > brightness support so will just be turned on for non-zero brightness settings. The existing code assumed that max_brightness always held a value of 255 and defined a constant for it. Instead, use a class variable to cache the max brightness for the associated LED. Change-Id: I2d8f46de0cddac5f9d8ff5444449518bb4056130 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* physical: 'frequency' is really periodicityAndrew Jeffery2019-04-081-3/+3
| | | | | Change-Id: I1007d2a7104fa07351c89c52a860cde83b2d509c Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* test: physical: Hit both branches of stableStateOperation()Andrew Jeffery2019-04-081-2/+2
| | | | | Change-Id: Ic32d87dbe996a03e811e1be88fbcc00bf450e1f3 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* sysfs: Integrate class into Physical and testsAndrew Jeffery2019-04-081-90/+9
| | | | | Change-Id: I7d5ad19df5ef1258a4e669ea3243b7411f371d9c Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* Add OpenBMC C++ clang-format file and format codeAndrew Jeffery2019-03-181-131/+130
| | | | | Change-Id: Ib3a388bf5392159440682265b577fba023c3c3aa Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* Link to dbus interfaces library for using generated codeVishwanatha Subbanna2017-03-131-3/+3
| | | | | Change-Id: Id1c45d8c66deb499a92bfd94bc271f378245da34 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add methods to trigger action on LEDVishwanatha Subbanna2016-12-191-4/+114
| | | | | | | Implements the ON, OFF and BLINK operations on a given LED. Change-Id: I74b5ac01d8e76961999a2673d52d73296f5603d7 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add overriding methods for the base interface definitionVishwanatha Subbanna2016-12-191-6/+34
| | | | | | | | Defines the functions that override the default setter for the led state property. Change-Id: Ic3a8d43cc783003c43f53df8f7e90d7fc4d6715a Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Use generated bindings for physical led controllerVishwanatha Subbanna2016-12-121-0/+52
Extends the generated interface and provides skeleton implementation of led controller. Change-Id: I13485f39755213b8a7324e526d6335f3ee0a2b67 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud