#
010035ee |
| 17-Jun-2024 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://githu
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://github.com/codespell-project/codespell
Change-Id: I7ddcf61ed2d596171384fdb5f0fc1e2feb4240bf Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
#
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 ...
|
#
d219fa3c |
| 19-Jul-2022 |
Naveen Moses <naveen.mosess@hcl.com> |
Add serial uart mux interface class
1. This change adds the multi-host serial uart mux interface class.
In a multi-host system when the host position is changed, then the serial uart mux is configu
Add serial uart mux interface class
1. This change adds the multi-host serial uart mux interface class.
In a multi-host system when the host position is changed, then the serial uart mux is configured to enable the respective host's serial console which is accessed via OCP debug card.
2. Introduced two new methods in gpio.cpp setGpioState - set state for gpio fd based on polarity getGpiostate - get state for gpio fd based on polarity
3. Updated the readme file about details on the new gpio configs
design : https://github.com/openbmc/docs/blob/master/designs/multihost-phosphor-buttons.md
Testing : This change is verified in yosemiteV2 platform.
Signed-off-by: Naveen Moses <naveen.mosess@hcl.com> Change-Id: I861d70570650d7dfcab842a35bdcf63a9fdd3bd0
show more ...
|
#
9fb15970 |
| 20-Jun-2022 |
George Liu <liuxiwei@inspur.com> |
logging: switch to lg2
After switching to C++20, it is recommended to use `phosphor::lg2` to format log, and the correct `CODE_LINE` and `CODE_FUNC` values can be used in log tracking.
Signed-off-b
logging: switch to lg2
After switching to C++20, it is recommended to use `phosphor::lg2` to format log, and the correct `CODE_LINE` and `CODE_FUNC` values can be used in log tracking.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I7983e39c9afdd455b21923f860f827cf9a9c257c
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 ...
|
#
94afa4ba |
| 20-Jun-2022 |
George Liu <liuxiwei@inspur.com> |
Fix cppcheck warnings
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I18be21d5141630a1da3d5e54740b54a9a06496d9
|
#
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 ...
|
#
8eca9bb6 |
| 16-Jun-2022 |
Patrick Williams <patrick@stwcx.xyz> |
switch experimental::fs to std::fs
std::filesystem was added to C++17 and is well supported now. Remove the older std::experimental::filesystem usage.
Signed-off-by: Patrick Williams <patrick@stwc
switch experimental::fs to std::fs
std::filesystem was added to C++17 and is well supported now. Remove the older std::experimental::filesystem usage.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie960192eaefec8e0e0b4290929a2fa7bb7710c7a
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 the button/input
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 ...
|
#
6d724ce8 |
| 06-Oct-2021 |
Patrick Williams <patrick@stwcx.xyz> |
catch exceptions as const
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I3a2943bbae131c4528a9bc487524beb31e850357
|
#
582b3f02 |
| 03-Jan-2019 |
Tim Lee <timlee660101@gmail.com> |
phosphor-buttons: Make gpio interrupt configuration can be set correctly
Test-By: Nuvoton NPCM750 EVB with external buttons to control power on and reset host server.
Signed-off-by: Tim Lee <timlee
phosphor-buttons: Make gpio interrupt configuration can be set correctly
Test-By: Nuvoton NPCM750 EVB with external buttons to control power on and reset host server.
Signed-off-by: Tim Lee <timlee660101@gmail.com> Change-Id: I17190121ff3cc6821557adaf128b1a8819848073
show more ...
|
#
8f2c95a4 |
| 05-Nov-2018 |
Matt Spinler <spinler@us.ibm.com> |
Read GPIO config from JSON instead of D-Bus
Read the GPIO information for the buttons from /etc/default/obmc/gpio/gpio_defs.json instead of from D-Bus, as the D-Bus location for these were a legacy
Read GPIO config from JSON instead of D-Bus
Read the GPIO information for the buttons from /etc/default/obmc/gpio/gpio_defs.json instead of from D-Bus, as the D-Bus location for these were a legacy thing and are going away.
This requires that the GPIO pin name, like 'J1', is converted to the GPIO number as used in /sys/class/gpio.
The libgpioplus utility will handle most of this for us, with the exception of needing to look up the base offset in the /sys/class/gpiochip*/base file, where the specific gpiochip* directory is determined as following:
1) Find the 'label' file in a /sys/class/gpiochipX/ directory and check for it to match GPIO_BASE_LABEL_NAME, which is configurable at build time and defaults to the ASPEED BMC value. 2) Use the value in the 'base' file in that directory as the base offset.
If a platform doesn't need to use this base offset, it can be turned off with the LOOKUP_GPIO_BASE dial.
Change-Id: I88d29529ffa8a6d13132ac9059b47f86344837ea 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.
This is how a
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 simulate sign
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 ...
|