From 9fa4246a8d736d33b7ed0eee7084b952177ca6db Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 7 Apr 2012 21:56:44 -0700 Subject: [PATCH] Initialize SPI on start-up Now that we have a SPI driver, we must init it when we start up. BUG=chromium-os:28925 TEST=build on daisy and discovery; run on daisy Change-Id: I84b458d3ebc3fed9368dce8e06d040dbfc4e9125 Signed-off-by: Simon Glass --- common/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/main.c b/common/main.c index 95a0298a4b..05ce0e5096 100644 --- a/common/main.c +++ b/common/main.c @@ -27,6 +27,7 @@ #include "power_button.h" #include "powerdemo.h" #include "pwm.h" +#include "spi.h" #include "system.h" #include "task.h" #include "temp_sensor.h" @@ -118,6 +119,9 @@ int main(void) lpc_init(); uart_comx_enable(); #endif +#ifdef CONFIG_SPI + spi_init(); +#endif #ifdef CONFIG_PWM pwm_init(); #endif