|
@@ -1354,6 +1354,12 @@ static int __init bfin_spi_probe(struct platform_device *pdev)
|
|
|
goto out_error_queue_alloc;
|
|
|
}
|
|
|
|
|
|
+ /* Reset SPI registers. If these registers were used by the boot loader,
|
|
|
+ * the sky may fall on your head if you enable the dma controller.
|
|
|
+ */
|
|
|
+ write_CTRL(drv_data, BIT_CTL_CPHA | BIT_CTL_MASTER);
|
|
|
+ write_FLAG(drv_data, 0xFF00);
|
|
|
+
|
|
|
/* Register with the SPI framework */
|
|
|
platform_set_drvdata(pdev, drv_data);
|
|
|
status = spi_register_master(master);
|