mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user