#
15c60e2f |
| 12-Apr-2024 |
Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> |
meson: switch config.h to config.hpp
Enable a transition of this file from C to C++ so that we can use C++ constants instead of #defines in future commits.
Change-Id: I1149ebdaaeb99b7e7974ca846b9b0
meson: switch config.h to config.hpp
Enable a transition of this file from C to C++ so that we can use C++ constants instead of #defines in future commits.
Change-Id: I1149ebdaaeb99b7e7974ca846b9b07a3399edea0 Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
ccd7db05 |
| 09-Feb-2023 |
Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> |
Support host selector using cpld definitions
Description: - Support host selector using cpld definitions
Design: - Because the current structure only supports config defined by GPIO (Yosemite V2)
Support host selector using cpld definitions
Description: - Support host selector using cpld definitions
Design: - Because the current structure only supports config defined by GPIO (Yosemite V2), but there are also have the system (Yosemite V3.5) gets the host-selector's selection from CPLD.
- So this commit is to extend the current configuration to use CPLD definitions. Also, support adding event io from the register file which was exported from the CLD driver.
- For example with config json below: { "cpld_definitions": [ { "name": "HOST_SELECTOR", "i2c_address": 15, "i2c_bus": 12, "register_name": "uart-selection-debug-card", "max_position": 4 } ] }
Dependency: - CLD driver is required (link: https://lore.kernel.org/lkml/20230117094425.19004-1-Delphine_CC_Chiu@Wiwynn.com/)
Test Case: - When ocp debug card uart button is pressed the position property on dbus is correct.
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> Change-Id: I6746afa6d905bd3c681e2921c643b3cd4cb9944c
show more ...
|
#
9a529a69 |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I91502c85799b7d3be22b7d05659ff26bea08c32b
show more ...
|
#
d6a1bae7 |
| 20-Jun-2022 |
George Liu <liuxiwei@inspur.com> |
meson: Add meson build
The intent behind this commit is build obmc-phosphor-buttons with meson, and then remove files related to cmake.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ie
meson: Add meson build
The intent behind this commit is build obmc-phosphor-buttons with meson, and then remove files related to cmake.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Iedf8c49224032e016fed3471e6e41f6055b09065
show more ...
|
#
5b98f4db |
| 20-Jun-2022 |
George Liu <liuxiwei@inspur.com> |
Update clang-format
Refer:https://github.com/openbmc/docs/blob/ac5d544553934f8083c61c5986a1420261bc8a4c/style/cpp/.clang-format
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I593ddf950
Update clang-format
Refer:https://github.com/openbmc/docs/blob/ac5d544553934f8083c61c5986a1420261bc8a4c/style/cpp/.clang-format
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I593ddf950d14009ab77251fd6d3f248214661765
show more ...
|
#
a1af329f |
| 15-Dec-2021 |
Naveen Moses <naveen.mosess@hcl.com> |
Add abstract factory to create button iface objects
A abstract factory class is implemented to return the instance of button interface class based on the button iface formfactor name provided as pa
Add abstract factory to create button iface objects
A abstract factory class is implemented to return the instance of button interface class based on the button iface formfactor name provided as parameter to the abstract factory createInstance method.
Signed-off-by: Naveen Moses <naveen.mosess@hcl.com> Change-Id: Ia791a2b6f52d09dd87da0e50a709fc72ac9d1bd7
show more ...
|
#
dd5495cf |
| 03-Dec-2021 |
Naveen Moses <naveen.mosess@hcl.com> |
Enable group gpio configuration This change adds support to configure single as well as group gpio config using a single api(configGroupGpio()). This change is introduced to support
Enable group gpio configuration This change adds support to configure single as well as group gpio config using a single api(configGroupGpio()). This change is introduced to support the button/input interfaces which has multiple gpios associated with them. As an improvement reading of gpio def json file is done once in main function rather than reading it everytime before creating the button interface object. Signed-off-by: Naveen Moses <naveen.mosess@hcl.com> Change-Id: Ib73dda618c78fd2f14b5d3432fd04c9f4cd2dd9b
show more ...
|
#
b3d86c9f |
| 15-Nov-2018 |
Matt Spinler <spinler@us.ibm.com> |
Do dummy GPIO reads on startup Do a read of all of the button GPIOs after they are configured but before the sd_event handling has been set up to prevent a spurious sd_event callback
Do dummy GPIO reads on startup Do a read of all of the button GPIOs after they are configured but before the sd_event handling has been set up to prevent a spurious sd_event callback as soon as the event loop starts. Without these, a button released signal gets sent every time the application starts. Tested: Saw that the spurious callbacks went away. Change-Id: I4d2a609f58f4debdd9280244e1f839f8f891be82 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
8605bdff |
| 05-Nov-2018 |
Matt Spinler <spinler@us.ibm.com> |
Only create buttons when their GPIOs are defined Look in /etc/default/obmc/gpio/gpio_defs.json to see if the GPIO for a button is defined, and only create the button object if it is.
Only create buttons when their GPIOs are defined Look in /etc/default/obmc/gpio/gpio_defs.json to see if the GPIO for a button is defined, and only create the button object if it is. This is how a system implementer can specify which button objects are needed for their particular system. Change-Id: I359f87875b6bb5741fdf4718b30b0f5b4552a528 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
0d9377d2 |
| 01-Nov-2018 |
Patrick Venture <venture@google.com> |
Add clang-format to repo Add clang-format to repo. Change-Id: I5cc1e4ed3fcbf41a28e16cf929a86cf54a3c5efb Signed-off-by: Patrick Venture <venture@google.com>
|
#
a9d39e30 |
| 14-Aug-2018 |
Kuiying Wang <kuiying.wang@intel.com> |
Implement phosphor-buttons based C++ and sdbusplus interfaces. This phosphor-buttons module handles all the physical buttons like Reset/Power/ID button pressed/released signals and the
Implement phosphor-buttons based C++ and sdbusplus interfaces. This phosphor-buttons module handles all the physical buttons like Reset/Power/ID button pressed/released signals and the simulate signals on button pressed/released in WebUI. All the signals are exposed into dbus and let other modules be aware. Change-Id: I52144718ef54d403c5221e5afd0216b9494f8523 Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
show more ...
|