diff options
author | Hung-Te Lin <hungte@chromium.org> | 2013-04-11 15:58:12 +0800 |
---|---|---|
committer | David Hendricks <dhendrix@chromium.org> | 2013-04-12 04:57:39 +0200 |
commit | a904f9ef691062a43baa5542cf63daed45a1185a (patch) | |
tree | 421b2691a1c4d97ddfbeb90665effd5f0fdbca27 /src/ec/google/chromeec/Makefile.inc | |
parent | d9de6c4f0eb1c863f8fd81ede326973ad1aab0f2 (diff) | |
download | coreboot-a904f9ef691062a43baa5542cf63daed45a1185a.tar.xz |
ec/google: Isolate EC bus protocol implementation.
The Chrome EC can be connected by different types of bus like LPC / I2C / SPI,
and the current implementation is only for LPC.
To support other types, we must first isolate the LPC protocol stuff and add
configuration variable (EC_GOOGLE_CHROMEEC_LPC) to specify bus type.
Verified by building google/link (with chromeec) configuration successfully.
Change-Id: Ib2920d8d935bcc77a5394e818f69e9265e26e8a0
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: http://review.coreboot.org/3068
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'src/ec/google/chromeec/Makefile.inc')
-rw-r--r-- | src/ec/google/chromeec/Makefile.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/Makefile.inc b/src/ec/google/chromeec/Makefile.inc index 93ad333bb4..5fb258f1a9 100644 --- a/src/ec/google/chromeec/Makefile.inc +++ b/src/ec/google/chromeec/Makefile.inc @@ -1,5 +1,8 @@ ramstage-y += ec.c +ramstage-$(CONFIG_EC_GOOGLE_CHROMEEC_LPC) += ec_lpc.c smm-y += ec.c +smm-$(CONFIG_EC_GOOGLE_CHROMEEC_LPC) += ec_lpc.c romstage-y += ec.c +romstage-$(CONFIG_EC_GOOGLE_CHROMEEC_LPC) += ec_lpc.c CFLAGS += -I $(call strip_quotes,$(CONFIG_EC_GOOGLE_API_ROOT)) |