ACPI: Add acpigen_write_PTC()
[coreboot.git] / src / include / console / i2c_smbus.h
blobbea90b676780bfdcccfe3029fcb1d9f2bc36c8d0
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef CONSOLE_I2C_SMBUS_H
4 #define CONSOLE_I2C_SMBUS_H
6 #include <stdint.h>
8 void i2c_smbus_console_init(void);
9 void i2c_smbus_console_tx_byte(unsigned char c);
11 #define __CONSOLE_SMBUS_ENABLE__ CONFIG(CONSOLE_I2C_SMBUS)
13 #if __CONSOLE_SMBUS_ENABLE__
14 static inline void __i2c_smbus_console_init(void)
16 i2c_smbus_console_init();
19 static inline void __i2c_smbus_console_tx_byte(u8 data)
21 i2c_smbus_console_tx_byte(data);
23 #else
24 static inline void __i2c_smbus_console_init(void) {}
25 static inline void __i2c_smbus_console_tx_byte(u8 data) {}
26 #endif /* __CONSOLE_SMBUS_ENABLE__ */
28 #endif /* CONSOLE_I2C_SMBUS_H */