From fbb3e6c10873d0c55dc477c436d8352b915895ef Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 10 May 2016 17:00:06 -0500 Subject: ec/google/chromeec: provide way to query ioport range In order to provide other stages access to the ioport range required by the ChromeEC provide google_chromeec_ioport_range() function to fill in the details. Currently, the ioport range is only consumed by the LPC implemenation. Also allow ec_lpc.c to be built for the bootblock stage. Change-Id: I6c181b42e80e71fe07e8fa90df783107287f16ad Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/14769 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/ec/google/chromeec/ec.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ec/google/chromeec/ec.h') diff --git a/src/ec/google/chromeec/ec.h b/src/ec/google/chromeec/ec.h index 85f41adf25..19507bb86f 100644 --- a/src/ec/google/chromeec/ec.h +++ b/src/ec/google/chromeec/ec.h @@ -21,6 +21,9 @@ #include #include "ec_commands.h" +/* Fill in base and size of the IO port resources used. */ +void google_chromeec_ioport_range(uint16_t *base, size_t *size); + #ifndef __PRE_RAM__ int google_chromeec_i2c_xfer(uint8_t chip, uint8_t addr, int alen, uint8_t *buffer, int len, int is_read); -- cgit v1.2.3