19 Jun, 2018

1 commit


16 May, 2018

2 commits

  • nios2 bitops.h provides a __clear_bit() but does not define
    PLATFORM__CLEAR_BIT as a result generic_clear_bit() is used instead of the
    architecturally provided __clear_bit().

    This patch defines PLATFORM__CLEAR_BIT which means that __clear_bit() in
    nios2 bitops.h will be called whenever generic_clear_bit() is called - as
    opposed to the default cross-platform generic_clear_bit().

    Signed-off-by: Bryan O'Donoghue
    Cc: Thomas Chou

    Bryan O'Donoghue
     
  • nios2 bitops.h provides a __set_bit() but does not define PLATFORM__SET_BIT
    as a result generic_set_bit() is used instead of the architecturally
    provided __set_bit().

    This patch defines PLATFORM__SET_BIT which means that __set_bit() in nios2
    bitops.h will be called whenever generic_set_bit() is called - as opposed
    to the default cross-platform generic_set_bit().

    Signed-off-by: Bryan O'Donoghue
    Cc: Thomas Chou

    Bryan O'Donoghue
     

07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

17 Nov, 2017

1 commit


03 Oct, 2017

1 commit

  • Convert the nios2 architecture to make use of the new asm-generic/io.h to
    provide address mapping functions. As nios2 actually performs
    non-identity mapping between physical & virtual addresses we can't
    simply make use of the generic functions, with the exception of being
    able to drop our no-op unmap_physmem() and definitions of unused map
    flags.

    Feedback from architecture maintainers is welcome.

    Signed-off-by: Paul Burton
    Cc: Thomas Chou

    Paul Burton
     

16 Aug, 2017

1 commit

  • We are now using an env_ prefix for environment functions. Rename these
    two functions for consistency. Also add function comments in common.h.

    Quite a few places use getenv() in a condition context, provoking a
    warning from checkpatch. These are fixed up in this patch also.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     

01 May, 2017

1 commit

  • With 3f66149d9fb4 we no longer have a common call fdt_fixup_ethernet.
    This was fine to do on PowerPC as they largely had calls already in
    ft_cpu_fixup. On ARM however we largely relied on this call. Rather
    than introduce a large number of changes to ft_cpu_fixup /
    ft_board_fixup we recognize that this is a common enough call that we
    should be doing it in a central location. Do it early enough that we
    can do any further updates in ft_cpu_fixup / ft_board_fixup.

    Cc: Gerd Hoffmann
    Cc: Chen-Yu Tsai
    Cc: Maxime Ripard
    Cc: Thomas Chou (maintainer:NIOS)
    Cc: York Sun (maintainer:POWERPC MPC85XX)
    Cc: Stefan Roese (maintainer:POWERPC PPC4XX)
    Cc: Simon Glass
    Cc: Joakim Tjernlund
    Fixes: 3f66149d9fb4 ("Remove extra fdt_fixup_ethernet() call")
    Signed-off-by: Tom Rini
    Acked-by: Stefan Roese
    Acked-by: York Sun
    Reviewed-by: Simon Glass

    Tom Rini
     

13 Apr, 2017

1 commit


08 Feb, 2017

1 commit

  • At present devices use a simple integer offset to record the device tree
    node associated with the device. In preparation for supporting a live
    device tree, which uses a node pointer instead, refactor existing code to
    access this field through an inline function.

    Signed-off-by: Simon Glass

    Simon Glass
     

19 Oct, 2016

1 commit


24 Sep, 2016

1 commit

  • Unlike Linux, nothing about errno.h is arch-specific in U-Boot.
    As you see, all of arch/${ARCH}/include/asm/errno.h is just a
    wrapper of . Actually, U-Boot does not
    export headers to user-space, so we just have to care about the
    consistency in the U-Boot tree.

    Now all of include directives for are gone.
    Deprecate .

    Signed-off-by: Masahiro Yamada
    Acked-by: Alexey Brodkin

    Masahiro Yamada
     

28 May, 2016

1 commit


15 Mar, 2016

1 commit


06 Feb, 2016

1 commit


14 Jan, 2016

1 commit

  • board_init_f_mem() alters the C runtime environment's
    stack it is actually already using. This is not a valid
    behaviour within a C runtime environment.

    Split board_init_f_mem into C functions which do not alter
    their own stack and always behave properly with respect to
    their C runtime environment.

    Signed-off-by: Albert ARIBAUD
    Acked-by: Thomas Chou

    Albert ARIBAUD
     

19 Dec, 2015

1 commit


22 Nov, 2015

1 commit


18 Nov, 2015

2 commits


12 Nov, 2015

2 commits

  • Add 10m50 devboard support. It is based on the Golden Hardware
    Reference Design (GHRD), available at,

    http://rocketboards.org/foswiki/view/Documentation/
    AlteraMAX1010M50RevCDevelopmentKitLinuxSetup

    Though we supported only one nios2-generic board in the past. Now,
    with the removal of the nios2-generic board dir, adding new nios2
    boards to u-boot is easier than before. It should be helpful to
    add those boards supported in Linux mainline. There are only two
    such nios2 boards, the 3c120 devboard and 10m50 devboard. The
    nios2-generic is actually 3c120, and should restore the name. The
    10m50 is this one.

    Signed-off-by: Thomas Chou
    Reviewed-by: Marek Vasut

    Thomas Chou
     
  • Add memcpy_fromio() and memcpy_toio().

    Signed-off-by: Thomas Chou

    Thomas Chou
     

10 Nov, 2015

1 commit

  • After consulting with some of the SPDX team, the conclusion is that
    Makefiles are worth adding SPDX-License-Identifier tags too, and most of
    ours have one. This adds tags to ones that lack them and converts a few
    that had full (or in one case, very partial) license blobs into the
    equivalent tag.

    Cc: Kate Stewart
    Signed-off-by: Tom Rini

    Tom Rini
     

06 Nov, 2015

6 commits


05 Nov, 2015

1 commit


23 Oct, 2015

10 commits