From 55bc46fe452b62c74521810d944eb4f0a2f0eeff Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Fri, 26 Feb 2016 14:32:14 -0800 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/329525 Reviewed-by: Vadim Bendebury --- board/cr50/board.c | 8 -------- board/cr50/board.h | 3 --- 2 files changed, 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,