blob: ffc82a626ea8411ee2fa1327961cdba0f7ff38ff [file] [log] [blame]
Delphine CC Chiu3e30b7a2024-04-12 13:11:42 -05001#pragma once
2
Rush Chen31ce3752024-11-08 14:57:27 +08003#include <array>
Patrick Williams971312a2024-04-12 13:45:50 -05004#include <chrono>
5
Delphine CC Chiu3e30b7a2024-04-12 13:11:42 -05006constexpr inline auto POWER_DBUS_OBJECT_NAME =
7 "/xyz/openbmc_project/Chassis/Buttons/Power0";
8constexpr inline auto RESET_DBUS_OBJECT_NAME =
9 "/xyz/openbmc_project/Chassis/Buttons/Reset0";
10constexpr inline auto ID_DBUS_OBJECT_NAME =
11 "/xyz/openbmc_project/Chassis/Buttons/ID0";
12constexpr inline auto HS_DBUS_OBJECT_NAME =
13 "/xyz/openbmc_project/Chassis/Buttons/HostSelector";
14constexpr inline auto DBG_HS_DBUS_OBJECT_NAME =
15 "/xyz/openbmc_project/Chassis/Buttons/DebugHostSelector";
16constexpr inline auto SERIAL_CONSOLE_MUX_DBUS_OBJECT_NAME =
17 "/xyz/openbmc_project/Chassis/Buttons/SerialUartMux";
18
19constexpr inline auto CHASSIS_STATE_OBJECT_NAME =
20 "/xyz/openbmc_project/state/chassis";
21constexpr inline auto CHASSISSYSTEM_STATE_OBJECT_NAME =
22 "/xyz/openbmc_project/state/chassis_system";
23constexpr inline auto HOST_STATE_OBJECT_NAME =
24 "/xyz/openbmc_project/state/host";
25
26constexpr inline auto GPIO_BASE_LABEL_NAME = "1e780000.gpio";
Rush Chen31ce3752024-11-08 14:57:27 +080027constexpr inline auto gpioDefFile = "/etc/default/obmc/gpio/gpio_defs.json";
Delphine CC Chiu3e30b7a2024-04-12 13:11:42 -050028#define LOOKUP_GPIO_BASE @LOOKUP_GPIO_BASE@
29
30constexpr inline auto POWER_BUTTON_PROFILE = @POWER_BUTTON_PROFILE@;
31constexpr inline auto ID_LED_GROUP = @ID_LED_GROUP@;
Patrick Williams971312a2024-04-12 13:45:50 -050032constexpr inline const auto LONG_PRESS_TIME_MS =
33 std::chrono::milliseconds(@LONG_PRESS_TIME_MS@);
Rush Chen31ce3752024-11-08 14:57:27 +080034
35constexpr inline static auto instances = std::to_array({ @INSTANCES@ });