Martin Roth (martinroth(a)google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/5543
-gerrit
commit ae1d364aa66a9c1b88feb775825c583a3812a1b6
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Fri Mar 15 10:47:50 2013 +0100
vendorcode/amd/agesa/*/AGESA.h: Correct "ne" to "be" in comment
The typo is not present anymore in Family 16h (Kabini), so fix it for
the older families (Family 10h, 12h, 14h, 15h, 15h Trinity) too using
the command below.
$ git grep -l ' ne ' src/vendorcode/amd/agesa | xargs sed -i 's/ ne / be /g'
Change-Id: I9cb419251eeec79925f48a5832fac339d40f01d1
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
src/vendorcode/amd/agesa/f10/AGESA.h | 2 +-
src/vendorcode/amd/agesa/f12/AGESA.h | 2 +-
src/vendorcode/amd/agesa/f14/AGESA.h | 2 +-
src/vendorcode/amd/agesa/f15/AGESA.h | 2 +-
src/vendorcode/amd/agesa/f15tn/AGESA.h | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/vendorcode/amd/agesa/f10/AGESA.h b/src/vendorcode/amd/agesa/f10/AGESA.h
index a128116..a6a8d07 100644
--- a/src/vendorcode/amd/agesa/f10/AGESA.h
+++ b/src/vendorcode/amd/agesa/f10/AGESA.h
@@ -764,7 +764,7 @@ typedef enum {
/// GNB configuration info
typedef struct {
IN PCIe_COMPLEX_DESCRIPTOR *PcieComplexList; /**< Pointer to array of structures describe PCIe topology on each processor package or NULL.
- * Last element of array must ne terminated with DESCRIPTOR_TERMINATE_LIST
+ * Last element of array must be terminated with DESCRIPTOR_TERMINATE_LIST
* Example of topology definition for single socket system:
* @code
* PCIe_PORT_DESCRIPTOR PortList [] = {
diff --git a/src/vendorcode/amd/agesa/f12/AGESA.h b/src/vendorcode/amd/agesa/f12/AGESA.h
index abe72b6..feb8397 100644
--- a/src/vendorcode/amd/agesa/f12/AGESA.h
+++ b/src/vendorcode/amd/agesa/f12/AGESA.h
@@ -1022,7 +1022,7 @@ typedef struct {
/// GNB configuration info
typedef struct {
IN PCIe_COMPLEX_DESCRIPTOR *PcieComplexList; /**< Pointer to array of structures describe PCIe topology on each processor package or NULL.
- * Last element of array must ne terminated with DESCRIPTOR_TERMINATE_LIST
+ * Last element of array must be terminated with DESCRIPTOR_TERMINATE_LIST
* Example of topology definition for single socket system:
* @code
* PCIe_PORT_DESCRIPTOR PortList [] = {
diff --git a/src/vendorcode/amd/agesa/f14/AGESA.h b/src/vendorcode/amd/agesa/f14/AGESA.h
index d997ad1..2dc234b 100644
--- a/src/vendorcode/amd/agesa/f14/AGESA.h
+++ b/src/vendorcode/amd/agesa/f14/AGESA.h
@@ -877,7 +877,7 @@ typedef struct {
/// GNB configuration info
typedef struct {
IN PCIe_COMPLEX_DESCRIPTOR *PcieComplexList; /**< Pointer to array of structures describe PCIe topology on each processor package or NULL.
- * Last element of array must ne terminated with DESCRIPTOR_TERMINATE_LIST
+ * Last element of array must be terminated with DESCRIPTOR_TERMINATE_LIST
* Example of topology definition for single socket system:
* @code
* PCIe_PORT_DESCRIPTOR PortList [] = {
diff --git a/src/vendorcode/amd/agesa/f15/AGESA.h b/src/vendorcode/amd/agesa/f15/AGESA.h
index ffa37ae..1a0c1f6 100644
--- a/src/vendorcode/amd/agesa/f15/AGESA.h
+++ b/src/vendorcode/amd/agesa/f15/AGESA.h
@@ -1145,7 +1145,7 @@ typedef struct {
/// GNB configuration info
typedef struct {
IN PCIe_COMPLEX_DESCRIPTOR *PcieComplexList; /**< Pointer to array of structures describe PCIe topology on each processor package or NULL.
- * Last element of array must ne terminated with DESCRIPTOR_TERMINATE_LIST
+ * Last element of array must be terminated with DESCRIPTOR_TERMINATE_LIST
* Example of topology definition for single socket system:
* @code
* PCIe_PORT_DESCRIPTOR PortList [] = {
diff --git a/src/vendorcode/amd/agesa/f15tn/AGESA.h b/src/vendorcode/amd/agesa/f15tn/AGESA.h
index a709274..1392810 100644
--- a/src/vendorcode/amd/agesa/f15tn/AGESA.h
+++ b/src/vendorcode/amd/agesa/f15tn/AGESA.h
@@ -1244,7 +1244,7 @@ typedef struct {
/// GNB configuration info
typedef struct {
IN PCIe_COMPLEX_DESCRIPTOR *PcieComplexList; /**< Pointer to array of structures describe PCIe topology on each processor package or NULL.
- * Last element of array must ne terminated with DESCRIPTOR_TERMINATE_LIST
+ * Last element of array must be terminated with DESCRIPTOR_TERMINATE_LIST
* Example of topology definition for single socket system:
* @code
* PCIe_PORT_DESCRIPTOR PortList [] = {
the following patch was just integrated into master:
commit 3b55602b258e04b82dbb41f3332c5fb7f1b7bd81
Author: Wilbert Duijvenvoorde <w.a.n.duijvenvoorde(a)gmail.com>
Date: Mon Mar 24 09:50:25 2014 +0100
util/superiotool: Register fix for Fintek F81865F/F-I
Datasheet: http://www.fintek.com.tw/files/productfiles/F81865_V028P.pdf
There is a multi-function select register listed as 0x2a-1 and 0x2a-2.
These are the original names in the datasheet, but superiotool will
display register 0x29 and 0x28 and their values.
This patch renames them both to 0x2a and shows both of the default values
for them. They are both 0x00, so one of them could be dropped though.
Change-Id: Iad91f9e4755d2d1a123e56ab0fa9257be7ea9978
Signed-off-by: Wilbert Duijvenvoorde <w.a.n.duijvenvoorde(a)gmail.com>
Reviewed-on: https://review.coreboot.org/5404
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
Reviewed-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
See https://review.coreboot.org/5404 for details.
-gerrit
Martin Roth (martinroth(a)google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14197
-gerrit
commit 7edb90accd7609f129bcba0001630072dfa7679b
Author: Martin Roth <martinroth(a)google.com>
Date: Wed Mar 30 14:08:52 2016 -0600
LINT TEST: Do not submit
This should cause all of the lint-stable tests to fail.
Change-Id: I38db15c4d169bfebc443007da883e17a08fadc01
Signed-off-by: Martin Roth <martinroth(a)google.com>
---
site-local/tmp.b6e9i3VnEc | 0
src/acpi/sata.c | 18 +++++++++---------
src/arch/power8/misc.c | 2 +-
src/arch/x86/bootblock_romcc.S | 1 +
src/arch/x86/thread.c | 18 +++++++++---------
src/lib/libgcc.c | 0
src/mainboard/aaeon/pfm-540i_revb/board_info.txt | 2 +-
src/mainboard/amd/bettong/Kconfig.name | 2 --
src/mainboard/google/storm/board_info.txt | 6 ------
src/soc/nvidia/tegra124/spi.c | 4 ++--
src/superio/common/conf_mode.c | 3 +++
11 files changed, 26 insertions(+), 30 deletions(-)
diff --git a/site-local/tmp.b6e9i3VnEc b/site-local/tmp.b6e9i3VnEc
new file mode 100644
index 0000000..e69de29
diff --git a/src/acpi/sata.c b/src/acpi/sata.c
index ec0d505..aab9c0d 100644
--- a/src/acpi/sata.c
+++ b/src/acpi/sata.c
@@ -10,12 +10,12 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
-
+
#include "sata.h"
-
+
#include <arch/acpi.h>
#include <arch/acpigen.h>
-
+
/* e.g.
* generate_sata_ssdt_ports("\_SB.PCI0.SATA", 0x3);
* generates:
@@ -38,23 +38,23 @@ void generate_sata_ssdt_ports(const char *scope, uint32_t enable_map)
int i;
uint32_t bit;
char port_name[4] = "PR00";
-
+
acpigen_write_scope(scope);
-
+
/* generate a device for every enabled port */
for (i = 0; i < 32; i++) {
bit = 1 << i;
if (!(bit & enable_map))
continue;
-
+
port_name[2] = '0' + i / 10;
port_name[3] = '0' + i % 10;
-
+
acpigen_write_device(port_name);
-
+
acpigen_write_name_dword("_ADR", 0xffff + i * 0x10000);
acpigen_pop_len(); /* close PRT%d */
}
-
+
acpigen_pop_len(); /* close scope */
}
diff --git a/src/arch/power8/misc.c b/src/arch/power8/misc.c
index 65b8ecf..fbc5678 100644
--- a/src/arch/power8/misc.c
+++ b/src/arch/power8/misc.c
@@ -6,7 +6,7 @@
* the Free Software Foundation; 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
+ without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
diff --git a/src/arch/x86/bootblock_romcc.S b/src/arch/x86/bootblock_romcc.S
index 6c1723a..0d7d759 100644
--- a/src/arch/x86/bootblock_romcc.S
+++ b/src/arch/x86/bootblock_romcc.S
@@ -1,3 +1,4 @@
+.att_syntax noprefix
/*
* This file is part of the coreboot project.
*
diff --git a/src/arch/x86/thread.c b/src/arch/x86/thread.c
index 993577d..f2dae2d 100644
--- a/src/arch/x86/thread.c
+++ b/src/arch/x86/thread.c
@@ -1,16 +1,16 @@
/*
- * This file is part of the coreboot project.
+
*
- * Copyright (C) 2013 Google, Inc.
+
*
- * 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; 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
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+
+
+
+
*/
#include <thread.h>
diff --git a/src/lib/libgcc.c b/src/lib/libgcc.c
old mode 100644
new mode 100755
diff --git a/src/mainboard/aaeon/pfm-540i_revb/board_info.txt b/src/mainboard/aaeon/pfm-540i_revb/board_info.txt
index 76246af..a8db96f 100644
--- a/src/mainboard/aaeon/pfm-540i_revb/board_info.txt
+++ b/src/mainboard/aaeon/pfm-540i_revb/board_info.txt
@@ -1,3 +1,3 @@
Board name: PFM-540I Rev.B
-Category: half
+Category: lint
Board URL: http://www.aaeonusa.com/products/details/?item_id=1043
diff --git a/src/mainboard/amd/bettong/Kconfig.name b/src/mainboard/amd/bettong/Kconfig.name
deleted file mode 100644
index 09201b5..0000000
--- a/src/mainboard/amd/bettong/Kconfig.name
+++ /dev/null
@@ -1,2 +0,0 @@
-config BOARD_AMD_BETTONG
- bool "Bettong"
diff --git a/src/mainboard/google/storm/board_info.txt b/src/mainboard/google/storm/board_info.txt
deleted file mode 100644
index edc4b32..0000000
--- a/src/mainboard/google/storm/board_info.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-Vendor name: Google
-Board name: Storm Qualcomm IPQ806X board
-Category: settop
-ROM protocol: SPI
-ROM socketed: n
-Flashrom support: y
diff --git a/src/soc/nvidia/tegra124/spi.c b/src/soc/nvidia/tegra124/spi.c
index d5be4a6..3d659d7 100644
--- a/src/soc/nvidia/tegra124/spi.c
+++ b/src/soc/nvidia/tegra124/spi.c
@@ -580,7 +580,7 @@ static int tegra_spi_dma_finish(struct tegra_spi_channel *spi)
}
ret = 0;
-done:
+ done:
spi->dma_in = NULL;
spi->dma_out = NULL;
return ret;
@@ -684,7 +684,7 @@ static int xfer_setup(struct tegra_spi_channel *spi, void *buf,
goto done;
}
-done:
+ done:
return ret;
}
diff --git a/src/superio/common/conf_mode.c b/src/superio/common/conf_mode.c
index cbe1a9e..423f127 100644
--- a/src/superio/common/conf_mode.c
+++ b/src/superio/common/conf_mode.c
@@ -11,6 +11,9 @@
* 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.
*/
#include <arch/io.h>
Martin Roth (martinroth(a)google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14193
-gerrit
commit 1403901a425dafae67adf340be3047e4635ea988
Author: Martin Roth <martinroth(a)google.com>
Date: Wed Mar 30 13:30:12 2016 -0600
src/: Fix lint style-labels warnings
The lint-stable-004-style-labels check tries to verify that labels in c
and asm files start at the first column, and don't have whitespace in
front of them.
- Fix 2 actual violations of the lint check.
- Update a comment that was showing up as a violation.
Change-Id: Ia11a90d7301e62a116c7a9ef9b4c2bc3f982b308
Signed-off-by: Martin Roth <martinroth(a)google.com>
---
src/commonlib/lz4.c.inc | 64 +++++++++++-----------
src/cpu/allwinner/a10/raminit.c | 2 +-
src/cpu/amd/family_10h-family_15h/processor_name.c | 2 +-
3 files changed, 34 insertions(+), 34 deletions(-)
diff --git a/src/commonlib/lz4.c.inc b/src/commonlib/lz4.c.inc
index b3be4e5..e8f6e59 100644
--- a/src/commonlib/lz4.c.inc
+++ b/src/commonlib/lz4.c.inc
@@ -1,36 +1,36 @@
/*
- LZ4 - Fast LZ compression algorithm
- Copyright (C) 2011-2015, Yann Collet.
-
- BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are
- met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following disclaimer
- in the documentation and/or other materials provided with the
- distribution.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- You can contact the author at :
- - LZ4 source repository : https://github.com/Cyan4973/lz4
- - LZ4 public forum : https://groups.google.com/forum/#!forum/lz4c
-*/
+ * LZ4 - Fast LZ compression algorithm
+ * Copyright (C) 2011-2015, Yann Collet.
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * You can contact the author at :
+ * - LZ4 source repository : https://github.com/Cyan4973/lz4
+ * - LZ4 public forum : https://groups.google.com/forum/#!forum/lz4c
+ */
/**************************************
diff --git a/src/cpu/allwinner/a10/raminit.c b/src/cpu/allwinner/a10/raminit.c
index e917e6e..f3b39cb 100644
--- a/src/cpu/allwinner/a10/raminit.c
+++ b/src/cpu/allwinner/a10/raminit.c
@@ -317,7 +317,7 @@ static int dramc_scan_dll_para(void)
return dramc_scan_readpipe();
}
- fail:
+fail:
clrbits_le32(&dram->dllcr[0], 0x3f << 6);
for (cr_i = 1; cr_i < 5; cr_i++)
clrbits_le32(&dram->dllcr[cr_i], 0x4f << 14);
diff --git a/src/cpu/amd/family_10h-family_15h/processor_name.c b/src/cpu/amd/family_10h-family_15h/processor_name.c
index ac0392b..3d92ee2 100644
--- a/src/cpu/amd/family_10h-family_15h/processor_name.c
+++ b/src/cpu/amd/family_10h-family_15h/processor_name.c
@@ -340,7 +340,7 @@ int init_processor_name(void)
}
}
- done:
+done:
strcpymax(&program_string[j], processor_name_string,
sizeof(program_string) - j);
}
Martin Roth (martinroth(a)google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14194
-gerrit
commit 631d52d6ab1fc5edcd550047f2eeeec72ddc163e
Author: Martin Roth <martinroth(a)google.com>
Date: Wed Mar 30 13:56:23 2016 -0600
lint/lint-stable-004-style-labels: Update script
- Look at entire tree instead of just the current commit. This was
causing the test to overlook some issues that were already in the tree.
- If git is on the system, and the code is in a git repo, use the
'git ls-files' command to find the files to examine. If those
conditions aren't met, fall back to using the find command.
- Wrap the command so it's easier to read.
Change-Id: I3dce219a29ffb1ae56a31318b995e3ba8ea43e70
Signed-off-by: Martin Roth <martinroth(a)google.com>
---
util/lint/lint-stable-004-style-labels | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/util/lint/lint-stable-004-style-labels b/util/lint/lint-stable-004-style-labels
index f024ca1..7b68b4a 100755
--- a/util/lint/lint-stable-004-style-labels
+++ b/util/lint/lint-stable-004-style-labels
@@ -2,6 +2,7 @@
# This file is part of the coreboot project.
#
# Copyright (C) 2012 Patrick Georgi <patrick(a)georgi-clan.de>
+# Copyright (C) 2016 Google Inc.
#
# 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
@@ -15,4 +16,15 @@
# DESCR: Check that C labels begin at start-of-line
LC_ALL=C export LC_ALL
-git diff --name-status |grep -v "^D" |cut -c3- |grep "^src/.*\.[csS]" | xargs grep -Hn '^[[:space:]][[:space:]]*[a-z][a-z]*:[[:space:]]*$' |grep -v "[^a-z_]default:"
+
+# Use git ls-files if the code is in a git repo, otherwise use find.
+if [ -n "$(command -v git)" ] && [ -d .git ]; then
+ FIND_FILES="git ls-files"
+else
+ FIND_FILES="find src"
+fi
+
+${FIND_FILES} | \
+ grep "^src/.*\.[csS]$" | \
+ xargs grep -Hn '^[[:space:]][[:space:]]*[a-z][a-z]*:[[:space:]]*$' | \
+ grep -v "[^a-z_]default:"