1 /* SPDX-License-Identifier: GPL-2.0-only */
6 #define EC_LENOVO_PMH7_BASE 0x15e0
7 #define EC_LENOVO_PMH7_ADDR_L (EC_LENOVO_PMH7_BASE + 0x0c)
8 #define EC_LENOVO_PMH7_ADDR_H (EC_LENOVO_PMH7_BASE + 0x0d)
9 #define EC_LENOVO_PMH7_DATA (EC_LENOVO_PMH7_BASE + 0x0e)
11 uint8_t pmh7_register_read(uint16_t reg
);
12 void pmh7_register_write(uint16_t reg
, uint8_t val
);
13 void pmh7_register_set_bit(uint16_t reg
, uint8_t bit
);
14 void pmh7_register_clear_bit(uint16_t reg
, uint8_t bit
);
16 #endif /* PMH7TOOL_H */