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
     

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
     

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
     

18 Nov, 2015

2 commits


12 Nov, 2015

1 commit


06 Nov, 2015

4 commits


05 Nov, 2015

1 commit


23 Oct, 2015

11 commits


28 Mar, 2015

1 commit

  • We have done with the generic board conversion for all the boards
    of ARC, Blackfin, M68000, MicroBlaze, MIPS, NIOS2, Sandbox, X86.

    Let's select SYS_GENERIC_BOARD for those architectures, so we can
    tell which architecture has finished the conversion at a glance.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Simon Glass
    Reviewed-by: Alexey Brodkin

    Masahiro Yamada
     

30 Aug, 2014

1 commit


24 Aug, 2014

2 commits

  • This patch implements the generic board init as described in
    doc/README.generic-board.

    Signed-off-by: Thomas Chou
    Signed-off-by: Scott McNutt
    Reviewed-by: Stefan Roese

    Thomas Chou
     
  • When compiling the current code on GCC 4.8.3, the following warnings
    appear:

    warning: format '%zu' expects argument of type 'size_t', but argument
    2 has type 'long unsigned int' [-Wformat=]

    There were many mails about such warnings on different architectures.
    This patch limits itself to the nios2 architecture.

    The problem is that for the size_t (%zu, %zd, ...) arguments of
    printf GCC does not verify the type match to size_t type. It verifies
    the type match to the compiler-defined __SIZE_TYPE__ type. Thus, if
    size_t is defined different from __SIZE_TYPE__ - warnings inevitably
    appear.

    There is a comment by Thomas Chou to the (rejected) patch:
    http://patchwork.ozlabs.org/patch/272102/
    which explains that the older GCC toolchains (gcc-3.4.6 and gcc-4.1.2)
    expect size_t to be "unsigned long" and the newer expect it to be
    "unsigned int". Thus, no matter how we define size_t - either way
    warnings appear when using some GCC version.

    By rejecting that patch, a choice was made to prefer older GCC versions
    and leave the warnings when building with the newer toolchains.
    Personally, I disagree with this choice...

    In any case, this patch proposes a way to fix the warnings for any GCC
    version. Just define size_t using the __SIZE_TYPE__ compiler-defined
    type and the type verification will pass.

    I tested that this fixes the warning on GCC 4.8.3. I don't have an
    older toolchain to test with, but __SIZE_TYPE__ was definitely defined
    in GCC 3.4.6, so it should work there too.

    Signed-off-by: Vasili Galka
    Signed-off-by: Thomas Chou

    Vasili Galka
     

13 May, 2014

1 commit

  • gd->bd->bi_baudrate is a copy of gd->baudrate.

    Since baudrate is a common feature for all architectures,
    keep gd->baudrate only.

    It is true that bi_baudrate was passed to the kernel in that structure
    but it was a long time ago.

    Signed-off-by: Masahiro Yamada
    Cc: Tom Rini
    Cc: Simon Glass
    Cc: Wolfgang Denk
    Cc: Heiko Schocher
    Acked-by: Michal Simek (For microblaze)

    Masahiro Yamada
     

24 Jul, 2013

1 commit


16 Mar, 2013

1 commit

  • We create a separate header file for link symbols defined by the link
    scripts. It is helpful to have these all in one place and try to
    make them common across architectures. Since Linux already has a similar
    file, we bring this in even though many of the symbols there are not
    relevant to us.

    Each architecture has its own asm/sections.h where symbols specifc to
    that architecture can be added. For now everything except AVR32 just
    includes the generic header.

    One change is needed in arch/avr32/lib/board.c to make this conversion
    work.

    Reviewed-by: Tom Rini (version 5)
    Signed-off-by: Simon Glass

    Simon Glass
     

04 Feb, 2013

1 commit


02 Feb, 2013

1 commit

  • We plan to move architecture-specific data into a separate structure so
    that we can make the rest of it common.

    As a first step, create struct arch_global_data to hold these fields.
    Initially it is empty.

    This patch applies to all archs at once. I can split it if this is really
    a pain.

    Signed-off-by: Simon Glass

    Simon Glass
     

10 Nov, 2012

1 commit

  • The file has a wrong inline keyword of __led_toggle(), which causes
    compilation error. And its content is defined in common status_led.h.
    So define CONFIG_BOARD_SPECIFIC_LED in board config files and remove
    this header file.

    Signed-off-by: Thomas Chou

    Thomas Chou
     

20 Oct, 2012

1 commit


10 Aug, 2012

1 commit


16 May, 2012

1 commit

  • This field gets read in one place (by "bdinfo"), and we can replace
    that with getenv("ipaddr"). After all, the bi_ip_addr field is kept
    up-to-date implicitly with the value of the ipaddr env var.

    Signed-off-by: Mike Frysinger
    Reviewed-by: Joe Hershberger

    Mike Frysinger
     

28 Oct, 2011

1 commit

  • This driver may handle multiple PIO cores and thus needs to be
    setup by calling the altera_pio_init() function within the early
    board setup routine.

    The driver comes with some extras, see below the copyleft header.

    Signed-off-by: Joachim Foerster
    Tested-by: Thomas Chou
    Signed-off-by: Thomas Chou

    Joachim Foerster
     

24 Oct, 2011

1 commit