diff options
author | Randall Spangler <rspangler@chromium.org> | 2017-08-23 13:18:44 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-08-24 11:29:02 -0700 |
commit | 1029239bc18c1a8e1bff5f7aad040cdfe421dbd2 (patch) | |
tree | 95a1275901cc5e95f7d70e6a0646c87695b3e716 /chip/g/build.mk | |
parent | c859c057e16c13d637326e7fae333e1d1eb80d7a (diff) | |
download | chrome-ec-1029239bc18c1a8e1bff5f7aad040cdfe421dbd2.tar.gz |
g: Move chip pre-init to chip_pre_init()
Currently, chip/g uses jtag_pre_init() to do some chip
pre-initialization that isn't actually related to JTAG. This has been
harmless, but it's currently the only chip which actually does "JTAG"
pre-init, and we'd like to get rid of that. So, move that
functionality to a new optional chip_pre_init() function.
BUG=chromium:747629
BRANCH=cr50
TEST=make buildall
boot cr50
make all dis; confirm chip_pre_init() is called early in <main>
Change-Id: I3cae0747ab0c3cc974fce9f108947207b38e035f
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/629876
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'chip/g/build.mk')
-rw-r--r-- | chip/g/build.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/g/build.mk b/chip/g/build.mk index fa850b2d23..d3a228cdd3 100644 --- a/chip/g/build.mk +++ b/chip/g/build.mk @@ -20,7 +20,7 @@ CPPFLAGS += -I$(CRYPTOCLIB)/include endif # Required chip modules -chip-y = clock.o gpio.o hwtimer.o jtag.o system.o +chip-y = clock.o gpio.o hwtimer.o jtag.o pre_init.o system.o chip-$(CONFIG_BOARD_ID_SUPPORT) += board_id.o ifeq ($(CONFIG_POLLING_UART),y) chip-y += polling_uart.o |