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
diff --git a/meson.build b/meson.build
index 8b726f4..6a3d319 100644
--- a/meson.build
+++ b/meson.build
@@ -20,6 +20,8 @@
'/xyz/openbmc_project/Chassis/Buttons/HostSelector')
conf_data.set_quoted('DBG_HS_DBUS_OBJECT_NAME',
'/xyz/openbmc_project/Chassis/Buttons/DebugHostSelector')
+conf_data.set_quoted('SERIAL_CONSOLE_MUX_DBUS_OBJECT_NAME',
+ '/xyz/openbmc_project/Chassis/Buttons/SerialUartMux')
conf_data.set_quoted('GPIO_BASE_LABEL_NAME', '1e780000.gpio')
conf_data.set_quoted('CHASSIS_STATE_OBJECT_NAME',
'/xyz/openbmc_project/state/chassis')
@@ -63,6 +65,7 @@
'src/gpio.cpp',
'src/hostSelector_switch.cpp',
'src/debugHostSelector_button.cpp',
+ 'src/serial_uart_mux.cpp',
'src/id_button.cpp',
'src/main.cpp',
'src/power_button.cpp',