1. 11 May, 2020 2 commits
    • rbokka's avatar
      trogdor: Latch GPIO interrupt support · 9ec99342
      rbokka authored
      Required for TPM IRQ.
      Change-Id: I8198213cf2808be5291620892185b1e534263e3f
      Signed-off-by: default avatarRavi Kumar Bokka <rbokka@codeaurora.org>
      Reviewed-on: https://review.coreboot.org/c/coreboot/+/38714
      Reviewed-by: default avatarJulius Werner <jwerner@chromium.org>
      Tested-by: default avatarbuild bot (Jenkins) <no-reply@coreboot.org>
    • Patrick Georgi's avatar
      treewide: Remove "this file is part of" lines · 6b5bc77c
      Patrick Georgi authored
      Stefan thinks they don't add value.
      Command used:
      sed -i -e '/file is part of /d' $(git grep "file is part of " |egrep ":( */\*.*\*/\$|#|;#|-- | *\* )" | cut -d: -f1 |grep -v crossgcc |grep -v gcov | grep -v /elf.h |grep -v nvramtool)
      The exceptions are for:
       - crossgcc (patch file)
       - gcov (imported from gcc)
       - elf.h (imported from GNU's libc)
       - nvramtool (more complicated header)
      The removed lines are:
      -       fmt.Fprintln(f, "/* This file is part of the coreboot project. */")
      -# This file is part of a set of unofficial pre-commit hooks available
      -/* This file is part of coreboot */
      -# This file is part of msrtool.
      -/* This file is part of msrtool. */
      - * This file is part of ncurses, designed to be appended after curses.h.in
      -/* This file is part of pgtblgen. */
      - * This file is part of the coreboot project.
      - /* This file is part of the coreboot project. */
      -#  This file is part of the coreboot project.
      -# This file is part of the coreboot project.
  2. 06 May, 2020 2 commits
    • Patrick Georgi's avatar
      treewide: replace GPLv2 long form headers with SPDX header · ac959039
      Patrick Georgi authored
      This replaces GPLv2-or-later and GPLv2-only long form text with the
      short SPDX identifiers.
      Commands used:
      perl -i -p0e 's|/\*[*\n\t ]*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.*or.*(at.*your.*option).*any.*later.*version.+This.*program.*is.*distributed.*in.*the.*hope.*that.*it.*will.*be.*useful,.*but.*;.*without.*even.*the.*implied.*warranty.*of.*MERCHANTABILITY.*or.*FITNESS.*FOR.*A.*PARTICULAR.*PURPOSE..*.*See.*the.*GNU.*General.*Public.*License for more details.[\n\t ]*\*/|/* SPDX-License-Identifier: GPL-2.0-or-later */|s' $(cat filelist)
      perl -i -p0e 's|/\*[*\n\t ]*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.+This.*program.*is.*distributed.*in.*the.*hope.*that.*it.*will.*be.*useful,.*but.*;.*without.*even.*the.*implied.*warranty.*of.*MERCHANTABILITY.*or.*FITNESS.*FOR.*A.*PARTICULAR.*PURPOSE..*.*See.*the.*GNU.*General.*Public.*License for more details.[\n\t ]*\*/|/* SPDX-License-Identifier: GPL-2.0-only */|s' $(cat filelist)
      perl -i -p0e 's|/\*[*\n\t ]*This program is free software[:;].*you.*can.*redistribute.*it.*and/or.*modify.*it.*under.*the.*terms.*of.*the.*GNU.*General.*Public.*License.*version.*2.*as.*published.*by.*the.*Free.*Software.*Foundation[.;,].+This.*program.*is.*distributed.*in.*the.*hope.*that.*it.*will.*be.*useful,.*but.*;.*without.*even.*the.*implied.*warranty.*of.*MERCHANTABILITY.*or.*FITNESS.*FOR.*A.*PARTICULAR.*PURPOSE..*.*See.*the.*GNU.*General.*Public.*License for more details.[\n\t ]*\*/|/* SPDX-License-Identifier: GPL-2.0-only */|s' $(cat filelist)
      perl -i -p0e 's|/\*[*\n\t ]*This software is licensed under.*the.*terms.*of.*the.*GNU.*General.*Public.*License.*version.*2.*as.*published.*by.*the.*Free.*Software.*Foundation,.+This.*program.*is.*distributed.*in.*the.*hope.*that.*it.*will.*be.*useful,.*but.*;.*without.*even.*the.*implied.*warranty.*of.*MERCHANTABILITY.*or.*FITNESS.*FOR.*A.*PARTICULAR.*PURPOSE..*.*See.*the.*GNU.*General.*Public.*License for more details.[\n\t ]*\*/|/* SPDX-License-Identifier: GPL-2.0-only */|s' $(cat filelist)
      Change-Id: I7a746088a35633c11fc7ebe86006e96458a1abf8
      Signed-off-by: default avatarPatrick Georgi <pgeorgi@google.com>
      Reviewed-on: https://review.coreboot.org/c/coreboot/+/41066
      Tested-by: default avatarbuild bot (Jenkins) <no-reply@coreboot.org>
      Reviewed-by: default avatarDavid Hendricks <david.hendricks@gmail.com>
      Reviewed-by: default avatarHAOUAS Elyes <ehaouas@noos.fr>
    • Patrick Georgi's avatar
      treewide: Move "is part of the coreboot project" line in its own comment · 02363b5e
      Patrick Georgi authored
      That makes it easier to identify "license only" headers (because they
      are now license only)
      Script line used for that:
        perl -i -p0e 's|/\*.*\n.*This file is part of the coreboot project.*\n.*\*|/* This file is part of the coreboot project. */\n/*|' # ...filelist...
      Change-Id: I2280b19972e37c36d8c67a67e0320296567fa4f6
      Signed-off-by: default avatarPatrick Georgi <pgeorgi@google.com>
      Reviewed-on: https://review.coreboot.org/c/coreboot/+/41065
      Tested-by: default avatarbuild bot (Jenkins) <no-reply@coreboot.org>
      Reviewed-by: default avatarDavid Hendricks <david.hendricks@gmail.com>
      Reviewed-by: default avatarHAOUAS Elyes <ehaouas@noos.fr>
      Reviewed-by: default avatarPaul Menzel <paulepanter@users.sourceforge.net>
      Reviewed-by: default avatarAngel Pons <th3fanbus@gmail.com>
  3. 18 Mar, 2020 1 commit
  4. 07 Mar, 2020 1 commit
  5. 01 Nov, 2019 1 commit
  6. 25 Oct, 2019 1 commit
  7. 18 Mar, 2019 2 commits
  8. 17 Aug, 2018 1 commit
    • Julius Werner's avatar
      arm64: Factor out common parts of romstage execution flow · 5d6593a4
      Julius Werner authored
      The romstage main() entry point on arm64 boards is usually in mainboard
      code, but there are a handful of lines that are always needed in there
      and not really mainboard specific (or chipset specific). We keep arguing
      every once in a while that this isn't ideal, so rather than arguing any
      longer let's just fix it. This patch moves the main() function into arch
      code with callbacks that the platform can hook into. (This approach can
      probably be expanded onto other architectures, so when that happens this
      file should move into src/lib.)
      Tested on Cheza and Kevin. I think the approach is straight-forward
      enough that we can take this without testing every board. (Note that in
      a few cases, this delays some platform-specific calls until after
      console_init() and exception_init()... since these functions don't
      really take that long, especially if there is no serial console
      configured, I don't expect this to cause any issues.)
      Change-Id: I7503acafebabed00dfeedb00b1354a26c536f0fe
      Signed-off-by: default avatarJulius Werner <jwerner@chromium.org>
      Reviewed-on: https://review.coreboot.org/28199
      Reviewed-by: default avatarAaron Durbin <adurbin@chromium.org>
      Tested-by: default avatarbuild bot (Jenkins) <no-reply@coreboot.org>
  9. 26 Mar, 2018 2 commits
  10. 29 Jun, 2017 1 commit
  11. 31 Oct, 2015 1 commit
  12. 21 May, 2015 1 commit
    • Patrick Georgi's avatar
      Remove address from GPLv2 headers · b890a122
      Patrick Georgi authored
      As per discussion with lawyers[tm], it's not a good idea to
      shorten the license header too much - not for legal reasons
      but because there are tools that look for them, and giving
      them a standard pattern simplifies things.
      However, we got confirmation that we don't have to update
      every file ever added to coreboot whenever the FSF gets a
      new lease, but can drop the address instead.
      util/kconfig is excluded because that's imported code that
      we may want to synchronize every now and then.
      $ find * -type f -exec sed -i "s:Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *MA[, ]*02110-1301[, ]*USA:Foundation, Inc.:" {} +
      $ find * -type f -exec sed -i "s:Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA:Foundation, Inc.:" {} +
      $ find * -type f -exec sed -i "s:Foundation, Inc., 59 Temple Place[-, ]*Suite 330, Boston, MA *02111-1307[, ]*USA:Foundation, Inc.:" {} +
      $ find * -type f -exec sed -i "s:Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.:Foundation, Inc.:" {} +
      $ find * -type f
      	-a \! -name \*.patch \
      	-a \! -name \*_shipped \
      	-a \! -name LICENSE_GPL \
      	-a \! -name LGPL.txt \
      	-a \! -name COPYING \
      	-a \! -name DISCLAIMER \
      	-exec sed -i "/Foundation, Inc./ N;s:Foundation, Inc.* USA\.* *:Foundation, Inc. :;s:Foundation, Inc. $:Foundation, Inc.:" {} +
      Change-Id: Icc968a5a5f3a5df8d32b940f9cdb35350654bef9
      Signed-off-by: default avatarPatrick Georgi <pgeorgi@chromium.org>
      Reviewed-on: http://review.coreboot.org/9233
      Tested-by: build bot (Jenkins)
      Reviewed-by: default avatarVladimir Serbinenko <phcoder@gmail.com>
  13. 06 Apr, 2015 1 commit
    • Julius Werner's avatar
      New mechanism to define SRAM/memory map with automatic bounds checking · ec5e5e0d
      Julius Werner authored
      This patch creates a new mechanism to define the static memory layout
      (primarily in SRAM) for a given board, superseding the brittle mass of
      Kconfigs that we were using before. The core part is a memlayout.ld file
      in the mainboard directory (although boards are expected to just include
      the SoC default in most cases), which is the primary linker script for
      all stages (though not rmodules for now). It uses preprocessor macros
      from <memlayout.h> to form a different valid linker script for all
      stages while looking like a declarative, boilerplate-free map of memory
      addresses to the programmer. Linker asserts will automatically guarantee
      that the defined regions cannot overlap. Stages are defined with a
      maximum size that will be enforced by the linker. The file serves to
      both define and document the memory layout, so that the documentation
      cannot go missing or out of date.
      The mechanism is implemented for all boards in the ARM, ARM64 and MIPS
      architectures, and should be extended onto all systems using SRAM in the
      future. The CAR/XIP environment on x86 has very different requirements
      and the layout is generally not as static, so it will stay like it is
      and be unaffected by this patch (save for aligning some symbol names for
      consistency and sharing the new common ramstage linker script include).
      TEST=Booted normally and in recovery mode, checked suspend/resume and
      the CBMEM console on Falco, Blaze (both normal and vboot2), Pinky and
      Pit. Compiled Ryu, Storm and Urara, manually compared the disassemblies
      with ToT and looked for red flags.
      Change-Id: Ifd2276417f2036cbe9c056f17e42f051bcd20e81
      Signed-off-by: default avatarPatrick Georgi <pgeorgi@chromium.org>
      Original-Commit-Id: f1e2028e7ebceeb2d71ff366150a37564595e614
      Original-Change-Id: I005506add4e8fcdb74db6d5e6cb2d4cb1bd3cda5
      Original-Signed-off-by: default avatarJulius Werner <jwerner@chromium.org>
      Original-Reviewed-on: https://chromium-review.googlesource.com/213370
      Reviewed-on: http://review.coreboot.org/9283
      Tested-by: build bot (Jenkins)
      Reviewed-by: default avatarStefan Tauner <stefan.tauner@gmx.at>
      Reviewed-by: default avatarAaron Durbin <adurbin@google.com>
  14. 03 Jan, 2015 1 commit
  15. 01 Dec, 2014 1 commit
  16. 26 Aug, 2014 1 commit
  17. 08 Jul, 2014 1 commit
  18. 21 Dec, 2013 1 commit
  19. 10 Jul, 2013 3 commits
  20. 15 Feb, 2013 1 commit
  21. 08 Dec, 2012 1 commit
  22. 01 Dec, 2012 1 commit
  23. 28 Nov, 2012 2 commits
  24. 07 Nov, 2012 1 commit