diff options
author | Jacob Pan <jacob.jun.pan@intel.com> | 2009-08-12 12:56:41 -0700 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 20:22:39 -0700 |
commit | 5dec7c4fa651e7b20e3c79e1187da5e35aeba08f (patch) | |
tree | a265d3e15a1f6589dd439209b8b9d4e5a3df4b85 | |
parent | a8cef7fc4c8686fd903b444b0d1ac0a071d05f5d (diff) | |
download | bootstub-5dec7c4fa651e7b20e3c79e1187da5e35aeba08f.tar.gz |
spi: changed clock divider to match 100MHz SPI CLK
Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com>
-rw-r--r-- | VERSION | 1 | ||||
-rw-r--r-- | bootstub.c | 2 | ||||
-rw-r--r-- | spi-uart.c | 3 |
3 files changed, 4 insertions, 2 deletions
@@ -1,3 +1,4 @@ +0.8 changed default spi clock to 100mhz Aug 12, 2009 0.7 build e820 table and add SPI controller selection. June 4, 2009 0.6 optimized spi uart and initrd relocation performance. May 26, 2009 0.5 add arch parameter. March 12, 2009 @@ -130,7 +130,7 @@ int bootstub(void) { setup_idt(); setup_gdt(); - bs_printk("Bootstub Version: 0.7 ...\n"); + bs_printk("Bootstub Version: 0.8 ...\n"); setup_boot_params((struct boot_params *)BOOT_PARAMS_OFFSET, (struct setup_header *)SETUP_HEADER_OFFSET); bs_printk("Jump to kernel 32bit entry ...\n"); @@ -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; */ |