summaryrefslogtreecommitdiff
path: root/board/hoho/board.h
diff options
context:
space:
mode:
authorTodd Broch <tbroch@chromium.org>2014-09-10 12:22:45 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-09-12 03:39:20 +0000
commitdd0524e385449960d83925eea6aa8755df92bc4b (patch)
tree6c71539fa55825ed6f2c08fb4fa22bc167bc7339 /board/hoho/board.h
parentf53f949ac66d55f5c06bef0a916a3e4641f6636a (diff)
downloadchrome-ec-dd0524e385449960d83925eea6aa8755df92bc4b.tar.gz
hoho: Enable spi2 master for comm with external flash.
BRANCH=none BUG=chrome-os-partner:31192 TEST=manual, from console, > spi_flashinfo Manufacturer ID: ef Device ID: 40 14 Unique ID: dc 63 a0 00 db 57 56 28 Capacity: 1024 MB > spi_flashread 0 64 Reading 64 bytes from 0x0... 00: 00 b8 00 00 8e d0 8e d8 8e c0 bc 00 80 b8 94 41 10: 8e d8 be 00 00 bf 00 1a b9 ee 1a 2b cf d1 e9 f3 20: a5 b8 00 00 8e d8 fd b8 55 55 bf fe 7f b9 00 04 30: f3 ab fc bd 00 00 ea e0 00 02 40 c3 56 96 92 85 Change-Id: I9d8aade3fb99f4a9d85afceb153a350750382a81 Signed-off-by: Todd Broch <tbroch@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/217531 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/hoho/board.h')
-rw-r--r--board/hoho/board.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/hoho/board.h b/board/hoho/board.h
index 47fd3a28f4..54b75c9a33 100644
--- a/board/hoho/board.h
+++ b/board/hoho/board.h
@@ -18,7 +18,12 @@
#define CONFIG_STM_HWTIMER32
#define CONFIG_ADC
#define CONFIG_BOARD_PRE_INIT
+#define CONFIG_CMD_SPI_FLASH
#define CONFIG_I2C
+#define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_SIZE 1048576
+#define CONFIG_SPI_MASTER_PORT 2
+#define CONFIG_SPI_CS_GPIO GPIO_PD_MCDP_SPI_CL_L
#undef CONFIG_WATCHDOG_HELP
#undef CONFIG_LID_SWITCH
#undef CONFIG_TASK_PROFILING