diff options
author | Feng Tang <feng.tang@intel.com> | 2010-05-27 10:45:00 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 20:22:39 -0700 |
commit | 74e654c7c6d6e45bfdfceaca9c31662aaadfb276 (patch) | |
tree | 46972a22f0a0b0403dd7379eac86f9e3e8460504 | |
parent | 1e0485e6ff40f4871c31d54f8b885fbd5b4361dd (diff) | |
download | bootstub-74e654c7c6d6e45bfdfceaca9c31662aaadfb276.tar.gz |
license: refine the license statement
Also clean the spi-uart.c a little
Signed-off-by: Feng Tang <feng.tang@intel.com>
-rw-r--r-- | LICENSE | 3 | ||||
-rw-r--r-- | sfi.c | 21 | ||||
-rw-r--r-- | spi-uart.c | 5 |
3 files changed, 20 insertions, 9 deletions
@@ -303,8 +303,7 @@ the "copyright" line and a pointer to where the full notice is found. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; either version 2 of the License This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -1,3 +1,22 @@ +/* + * sfi.c - driver for parsing sfi mmap table and build e820 table + * + * Copyright (c) 2009, Intel Corporation. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. + */ + #include "types.h" #include "bootparam.h" #include "bootstub.h" @@ -75,5 +94,3 @@ void sfi_setup_e820(struct boot_params *bp) bp->e820_entries = total; } - - @@ -51,16 +51,11 @@ static void spi_init() pspi->ctrlr0 = ctrlr0; /* set a default baud rate, 115200 */ - /* feng, need make sure SPIC and MAXIM3110 match */ - //spi_enable_clk(32); /* get SPI controller operating freq info */ clk_reg = (u32 *)MRST_CLK_SPI0_REG; clk_cdiv = ((*clk_reg) & CLK_SPI_CDIV_MASK) >> CLK_SPI_CDIV_OFFSET; pspi->baudr = MRST_SPI_CLK_BASE / (clk_cdiv + 1) / 115200; - /* need set the transmit threshhol? */ - /* pspi->txftlr = 0x3; */ - /* disable all INT for early phase */ pspi->imr &= 0xffffff00; |