From d5bc3043f1b9d70caa0bfe1a48e3abeb3f3ba9e1 Mon Sep 17 00:00:00 2001 From: QiaoChong Date: Fri, 25 Jan 2019 10:26:56 +0800 Subject: [PATCH] ls2k spi sample at the same time. Change-Id: I6c5e6b5c19718604f8368e20765c84afd6b37661 Signed-off-by: QiaoChong --- Targets/LS2K/dev/spi_w.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Targets/LS2K/dev/spi_w.c b/Targets/LS2K/dev/spi_w.c index 9ecc5a4f..4a1b93b7 100644 --- a/Targets/LS2K/dev/spi_w.c +++ b/Targets/LS2K/dev/spi_w.c @@ -47,7 +47,7 @@ void spi_initw() #else d=4; #endif - SET_SPI(SPER, 0x04|((d>>2)&3)); //spre:01 + SET_SPI(SPER, 0x00|((d>>2)&3)); //spre:01 SET_SPI(SPCR, 0x50|(d&3)); SET_SPI(SOFTCS,0xff); } @@ -691,7 +691,7 @@ struct spi_device spi_nand = { .dev = &ls1x_spi0, .chip_select = 1, -.max_speed_hz = 20000000, +.max_speed_hz = 100000000, }; struct spi_device spi_nand1 =