diff options
author | Bill Richardson <wfrichar@chromium.org> | 2016-02-26 14:32:14 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-02-27 00:38:19 -0800 |
commit | 55bc46fe452b62c74521810d944eb4f0a2f0eeff (patch) | |
tree | 872c1ab88a5d42d6e51d502a8c8cf665f960ba93 | |
parent | 9b4f662a8e139a75dc1557d4ccbf6348b43630d8 (diff) | |
download | chrome-ec-55bc46fe452b62c74521810d944eb4f0a2f0eeff.tar.gz |
Cr50: cleanup: Remove some unneccessary code
Removing a declaration for a function that no longer exists, and
deleting some extra PINMUX config that is also (and correctly)
being done in the module that uses it (chip/g/sps.c).
BUG=none
BRANCH=none
TEST=make buildall and test image on Cr50
Change-Id: Ie381862cfcd3c043ebf78171d18a51593b3677f7
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/329525
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r-- | board/cr50/board.c | 8 | ||||
-rw-r--r-- | board/cr50/board.h | 3 |
2 files changed, 0 insertions, 11 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c index 7770474904..a9c97e4fd5 100644 --- a/board/cr50/board.c +++ b/board/cr50/board.c @@ -97,14 +97,6 @@ static void board_init(void) init_interrupts(); init_trng(); init_runlevel(PERMISSION_MEDIUM); - - /* - * SPS is hardwired, all we need to do is enable input mode on the - * appropriate pins. - */ - GWRITE_FIELD(PINMUX, DIOA2_CTL, IE, 1); /* MOSI */ - GWRITE_FIELD(PINMUX, DIOA6_CTL, IE, 1); /* CLK */ - GWRITE_FIELD(PINMUX, DIOA12_CTL, IE, 1); /* CS */ } DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); diff --git a/board/cr50/board.h b/board/cr50/board.h index 0906927361..730d39dd6a 100644 --- a/board/cr50/board.h +++ b/board/cr50/board.h @@ -58,9 +58,6 @@ #include "gpio_signal.h" -/* user button interrupt handler */ -void button_event(enum gpio_signal signal); - /* USB string indexes */ enum usb_strings { USB_STR_DESC = 0, |