Use SMBus for console output
This commit is contained in:
46
src/ec/it8587e/include/ec/smbus.h
Normal file
46
src/ec/it8587e/include/ec/smbus.h
Normal file
@ -0,0 +1,46 @@
|
||||
#ifndef _EC_SMBUS_H
|
||||
#define _EC_SMBUS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// Host status for channel A
|
||||
volatile uint8_t __xdata __at(0x1C00) HOSTAA;
|
||||
// Host control for channel A
|
||||
volatile uint8_t __xdata __at(0x1C01) HOCTLA;
|
||||
// Host command for channel A
|
||||
volatile uint8_t __xdata __at(0x1C02) HOCMDA;
|
||||
// Transmit slave address for channel A
|
||||
volatile uint8_t __xdata __at(0x1C03) TRASLAA;
|
||||
// Host data 0 for channel A
|
||||
volatile uint8_t __xdata __at(0x1C04) D0REGA;
|
||||
// Host data 1 for channel A
|
||||
volatile uint8_t __xdata __at(0x1C05) D1REGA;
|
||||
// Host block data byte for channel A
|
||||
volatile uint8_t __xdata __at(0x1C06) HOBDBA;
|
||||
// Packet error check for channel A
|
||||
volatile uint8_t __xdata __at(0x1C07) PECERCA;
|
||||
// Receive slave address for channel A
|
||||
volatile uint8_t __xdata __at(0x1C08) RESLADRA;
|
||||
// Receive slave address 2 for channel A
|
||||
volatile uint8_t __xdata __at(0x1C3F) RESLADR2A;
|
||||
// Slave data for channel A
|
||||
volatile uint8_t __xdata __at(0x1C09) SLDAA;
|
||||
// SMBus pin control for channel A
|
||||
volatile uint8_t __xdata __at(0x1C0A) SMBPCTLA;
|
||||
// Slave status for channel A
|
||||
volatile uint8_t __xdata __at(0x1C0B) SLSTAA;
|
||||
// Slave interrupt control for channel A
|
||||
volatile uint8_t __xdata __at(0x1C0C) SICRA;
|
||||
// Notify device address for channel A
|
||||
volatile uint8_t __xdata __at(0x1C0D) NDADRA;
|
||||
// Notify data low byte for channel A
|
||||
volatile uint8_t __xdata __at(0x1C0E) NDLBA;
|
||||
// Notify data high byte for channel A
|
||||
volatile uint8_t __xdata __at(0x1C0F) NDHBA;
|
||||
// Host control 2 for channel A
|
||||
volatile uint8_t __xdata __at(0x1C10) HOCTL2A;
|
||||
// SMCLK timing setting for channel A
|
||||
volatile uint8_t __xdata __at(0x1C10) SCLKTSA;
|
||||
|
||||
|
||||
#endif // _EC_SMBUS_H
|
Reference in New Issue
Block a user