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 <sjg@chromium.org>
This commit is contained in:
Simon Glass
2012-04-07 21:56:44 -07:00
parent 826d334633
commit 9fa4246a8d

View File

@@ -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