blob: 6610a44d6b7ac71037687c63bab90bcad3c54e50 [file] [log] [blame]
Delphine CC Chiu3e30b7a2024-04-12 13:11:42 -05001#pragma once
2
Patrick Williams971312a2024-04-12 13:45:50 -05003#include <chrono>
4
Delphine CC Chiu3e30b7a2024-04-12 13:11:42 -05005constexpr inline auto POWER_DBUS_OBJECT_NAME =
6 "/xyz/openbmc_project/Chassis/Buttons/Power0";
7constexpr inline auto RESET_DBUS_OBJECT_NAME =
8 "/xyz/openbmc_project/Chassis/Buttons/Reset0";
9constexpr inline auto ID_DBUS_OBJECT_NAME =
10 "/xyz/openbmc_project/Chassis/Buttons/ID0";
11constexpr inline auto HS_DBUS_OBJECT_NAME =
12 "/xyz/openbmc_project/Chassis/Buttons/HostSelector";
13constexpr inline auto DBG_HS_DBUS_OBJECT_NAME =
14 "/xyz/openbmc_project/Chassis/Buttons/DebugHostSelector";
15constexpr inline auto SERIAL_CONSOLE_MUX_DBUS_OBJECT_NAME =
16 "/xyz/openbmc_project/Chassis/Buttons/SerialUartMux";
17
18constexpr inline auto CHASSIS_STATE_OBJECT_NAME =
19 "/xyz/openbmc_project/state/chassis";
20constexpr inline auto CHASSISSYSTEM_STATE_OBJECT_NAME =
21 "/xyz/openbmc_project/state/chassis_system";
22constexpr inline auto HOST_STATE_OBJECT_NAME =
23 "/xyz/openbmc_project/state/host";
24
25constexpr inline auto GPIO_BASE_LABEL_NAME = "1e780000.gpio";
26#define LOOKUP_GPIO_BASE @LOOKUP_GPIO_BASE@
27
28constexpr inline auto POWER_BUTTON_PROFILE = @POWER_BUTTON_PROFILE@;
29constexpr inline auto ID_LED_GROUP = @ID_LED_GROUP@;
Patrick Williams971312a2024-04-12 13:45:50 -050030constexpr inline const auto LONG_PRESS_TIME_MS =
31 std::chrono::milliseconds(@LONG_PRESS_TIME_MS@);