diff options
author | Naresh G Solanki <naresh.solanki@intel.com> | 2016-11-09 18:53:53 +0530 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-11-10 20:11:40 +0100 |
commit | 5a08fb2203125b719eeb14852f12aeba50798df4 (patch) | |
tree | 8d25d668b54e2b367c7e88bf4de82f5f1a5d8d26 /src/mainboard/intel/kblrvp/gpio.h | |
parent | 2db5bacd909dbf2d9e9e1e8998b0855ba424145c (diff) |
intel/kblrvp: Program I/O expander
Program I/O expander connected on I2C bus 4
Change-Id: I1a431f50e7b06446399a7d7cb9490615818147e7
Signed-off-by: Naresh G Solanki <naresh.solanki@intel.com>
Reviewed-on: https://review.coreboot.org/17338
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard/intel/kblrvp/gpio.h')
-rw-r--r-- | src/mainboard/intel/kblrvp/gpio.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/intel/kblrvp/gpio.h b/src/mainboard/intel/kblrvp/gpio.h index 5e251d846c..01897a1a01 100644 --- a/src/mainboard/intel/kblrvp/gpio.h +++ b/src/mainboard/intel/kblrvp/gpio.h @@ -20,6 +20,17 @@ #include <soc/gpe.h> #include <soc/gpio.h> +/* TCA6424A I/O Expander */ +#define IO_EXPANDER_BUS 4 +#define IO_EXPANDER_0_ADDR 0x22 +#define IO_EXPANDER_P0CONF 0x0C /* Port 0 conf offset */ +#define IO_EXPANDER_P0DOUT 0x04 /* Port 0 data offset */ +#define IO_EXPANDER_P1CONF 0x0D +#define IO_EXPANDER_P1DOUT 0x05 +#define IO_EXPANDER_P2CONF 0x0E +#define IO_EXPANDER_P2DOUT 0x06 +#define IO_EXPANDER_1_ADDR 0x23 + /* EC wake is LAN_WAKE# which is a special DeepSX wake pin */ #define GPE_EC_WAKE GPE0_LAN_WAK |