diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-07-14 16:31:25 +1000 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2014-07-18 07:42:27 +0200 |
commit | 1f9653a1bc737587deed507cd173595b180aad8f (patch) | |
tree | ee27277067933d1b8bd6d88336f0d29860439905 /src/superio/ite/it8772f/it8772f.h | |
parent | d5339ae0b73b46f65c1d88fd4066a0e98f09b6b3 (diff) | |
download | coreboot-1f9653a1bc737587deed507cd173595b180aad8f.tar.xz |
src/superio/ite/it8772f: Separate mainboard from SIO at obj level
Remove #include early_serial.c and rename to early_init.c as no actual
UART configuration is done here. Note that this SIO component still
hard codes its base address to 0x2e.
Change-Id: Ieef32ac7285246717f0519ffed4314ba28cd47dc
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/6271
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/superio/ite/it8772f/it8772f.h')
-rw-r--r-- | src/superio/ite/it8772f/it8772f.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/superio/ite/it8772f/it8772f.h b/src/superio/ite/it8772f/it8772f.h index 221a9324c4..09eeb8f381 100644 --- a/src/superio/ite/it8772f/it8772f.h +++ b/src/superio/ite/it8772f/it8772f.h @@ -103,10 +103,21 @@ #define GPIO_REG_ENABLE(x) (0xc0 + (x)) #define GPIO_REG_OUTPUT(x) (0xc8 + (x)) -u8 it8772f_sio_read(u8 index); -void it8772f_sio_write(u8 index, u8 value); -void it8772f_ac_resume_southbridge(void); -void it8772f_gpio_setup(int set, u8 func_select, u8 polarity, u8 pullup, - u8 output, u8 enable); +#include <arch/io.h> +#include <stdint.h> + +u8 it8772f_sio_read(device_t dev, u8 reg); +void it8772f_sio_write(device_t dev, u8 reg, u8 value); +void it8772f_ac_resume_southbridge(device_t dev); +void it8772f_gpio_setup(device_t dev, int set, u8 select, u8 polarity, + u8 pullup, u8 output, u8 enable); + +/* FIXME: should be static so will be removed later.. */ +/* Global configuration registers. */ +#define IT8772F_CONFIG_REG_CC 0x02 /* Configure Control (write-only). */ +#define IT8772F_CONFIG_REG_LDN 0x07 /* Logical Device Number. */ + +void it8772f_enter_conf(device_t dev); +void it8772f_exit_conf(device_t dev); #endif /* SUPERIO_ITE_IT8772F_H */ |