summaryrefslogtreecommitdiff
path: root/spi-uart.c
diff options
context:
space:
mode:
authorJacob Pan <jacob.jun.pan@intel.com>2009-08-12 12:56:41 -0700
committerPatrick Tjin <pattjin@google.com>2014-07-21 20:22:39 -0700
commit5dec7c4fa651e7b20e3c79e1187da5e35aeba08f (patch)
treea265d3e15a1f6589dd439209b8b9d4e5a3df4b85 /spi-uart.c
parenta8cef7fc4c8686fd903b444b0d1ac0a071d05f5d (diff)
downloadbootstub-5dec7c4fa651e7b20e3c79e1187da5e35aeba08f.tar.gz
spi: changed clock divider to match 100MHz SPI CLK
Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com>
Diffstat (limited to 'spi-uart.c')
-rw-r--r--spi-uart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/spi-uart.c b/spi-uart.c
index b49e11e..49f06e9 100644
--- a/spi-uart.c
+++ b/spi-uart.c
@@ -52,7 +52,8 @@ static void spi_init()
/* set a default baud rate, 115200 */
/* feng, need make sure SPIC and MAXIM3110 match */
//spi_enable_clk(32);
- pspi->baudr = 0xd8;
+ /* 100MHz SPI clock / 115200 BAUD rate */
+ pspi->baudr = 0x364;
/* need set the transmit threshhol? */
/* pspi->txftlr = 0x3; */