26 Feb, 2014

1 commit


24 Feb, 2014

1 commit


22 Feb, 2014

1 commit

  • This function has been around for powerpc. It is used for systems with
    memory more than CONFIG_MAX_MEM_MAPPED. In case of non-contiguous memory,
    this feature can limit U-boot to one block without going over the limit.

    Signed-off-by: York Sun
    Acked-by: Albert ARIBAUD

    York Sun
     

21 Feb, 2014

5 commits


20 Feb, 2014

9 commits

  • Conflicts:
    Makefile
    drivers/net/npe/Makefile

    These two conflicts arise from commit 0b2d3f20
    ("ARM: NET: Remove the IXP NPE ethernet driver") and are
    resolved by deleting the drivers/net/npe/Makefile file
    and removing the CONFIG_IXP4XX_NPE line from Makefile.

    Albert ARIBAUD
     
  • - When CONFIG_DISPLAY_CPUINFO is not enabled,
    print_cpuinfo() should be defined as an empty function
    in a header, include/common.h

    - Remove #ifdef CONFIG_DISPLAY_CPUINFO .. #endif
    from caller, common/board_f.c and arch/arm/lib/board.c

    - Remove redundant prototypes in arch/arm/lib/board.c,
    arch/arm/include/asm/arch-am33x/sys_proto.h and
    board/nokia/rx51/rx51.h, keeping the one in include/common.h

    - Add #ifdef CONFIG_DISPLAY_CPUINFO to the func definition
    where it is missing

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Unlike Linux Kernel, U-Boot historically had *.dts files under
    board/$(VENDOR)/dts/ and *.dtsi files under arch/$(ARCH)/dts/.

    I think arch/$(ARCH)/dts dicretory is a better location
    to store both *.dts and *.dtsi files.

    For example, before this commit, board/xilinx/dts directory
    had both Microblaze dts (microblaze-generic.dts) and
    ARM dts (zynq-*.dts), which are totally unrelated.

    This commit moves *.dts to arch/$(ARCH)/dts/ directories,
    allowing us to describe nicely mutiple DTBs generation in the next commit.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • We had switched to Kbuild, so we do not need to
    delete sandburst board files at every build.

    U-Boot conventional build system did not check the
    update of command line option, -DBUILDUSER.

    Kbuild can handle it nicely and re-builds object files
    when command line options are changed.
    (The file ".*.cmd" stores the information how the file
    was generated at the previous build.)

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • This commit refactors cleaning targets such as
    clean, clobber, mrpropper, distclean
    with scripts/Makefile.clean.

    By using scripts/Makefile.clean, we can recursively descend
    into subdirectories and delete generated files there.

    We do not need add a big list of generated files
    to the "clean" target.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Now we are ready to switch over to real Kbuild.

    This commit disables temporary scripts:
    scripts/{Makefile.build.tmp, Makefile.host.tmp}
    and enables real Kbuild scripts:
    scripts/{Makefile.build,Makefile.host,Makefile.lib}.

    This switch is triggered by the line in scripts/Kbuild.include
    -build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
    +build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj

    We need to adjust some build scripts for U-Boot.
    But smaller amount of modification is preferable.

    Additionally, we need to fix compiler flags which are
    locally added or removed.

    In Kbuild, it is not allowed to change CFLAGS locally.
    Instead, ccflags-y, asflags-y, cppflags-y,
    CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
    are prepared for that purpose.

    Signed-off-by: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     
  • We are going to switch over to Kbuild in upcoming commits.

    Each makefile must have non-empty obj- or obj-y
    to generate built-in.o on Kbuild.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • This commit changes the working directory
    where the build process occurs.

    Before this commit, build process occurred under the source
    tree for both in-tree and out-of-tree build.

    That's why we needed to add $(obj) prefix to all generated
    files in makefiles like follows:
    $(obj)u-boot.bin: $(obj)u-boot

    Here, $(obj) is empty for in-tree build, whereas it points
    to the output directory for out-of-tree build.

    And our old build system changes the current working directory
    with "make -C " syntax when descending into the
    sub-directories.

    On the other hand, Kbuild uses a different idea
    to handle out-of-tree build and directory descending.

    The build process of Kbuild always occurs under the output tree.
    When "O=dir/to/store/output/files" is given, the build system
    changes the current working directory to that directory and
    restarts the make.

    Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj="
    syntax for descending into sub-directories.
    (We can write it like "make $(obj)=" with a shorthand.)
    This means the current working directory is always the top
    of the output directory.

    Signed-off-by: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     
  • Some Samsung boards have their own tools under board/samsung//tools/.
    This commit refactor more makefiles with "hostprogs-y".

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

19 Feb, 2014

12 commits


18 Feb, 2014

2 commits


14 Feb, 2014

1 commit

  • KMSUGP1 is from a u-boot perspective (almost) identical to KMNUSA.
    The only difference is that the PCIe reset is connected to Kirkwood pin
    MPP7_PEX_RST_OUTn, we use a dedicated config flag KM_PCIE_RESET_MPP7.
    Such pin should theoretically be handled by the PCIe subsystem
    automatically, but this turned out not to be the case.
    So simply configure this PIN as a GPIO and issue a pulse manually.

    Signed-off-by: Gerlando Falauto
    Cc: Karlheinz Jerg
    Cc: Valentin Longchamp
    Cc: Holger Brunck
    Acked-by: Valentin Longchamp

    Gerlando Falauto
     

13 Feb, 2014

6 commits

  • Add set_fdthigh subcommand to "subbootcmds" (release) so to set "fdt_high"
    This is necessary on Kirkwood so that the FDT does not get relocated
    above the memory limit that the kernel cannot access
    (that is the memory part reserved for the switch).
    This was tested on NUSA1, where it is necessary, and on ETER1, where it
    doesn't seem to hurt.

    We want the scripts to also work with older versions of u-boot, where:
    a) set_fdthigh is not defined (will be default env for newer u-boots)
    b) the fdt will not be available

    For this reason, we use "set_fdthigh" to tell whether we are running
    a newer (FDT-aware) u-boot or not.
    So if "set_fdthigh" runs successfully or arch != arm we try loading
    the fdt; otherwise we proceed normally.

    Notice how, contrary to release mode, set_fdthigh will _not_ be part of
    subbootcmds for develop and ramfs, but will be executed as part of
    "tftpfdt".

    Since this is only needed for kirkwood cards, and it prevents the kernel
    from booting on QorIQ (though it seemed to work on ETER1), we change
    its definition in the default env for powerpc so that the value is only
    set on ARM.

    Signed-off-by: Valentin Longchamp
    Signed-off-by: Gerlando Falauto
    Signed-off-by: Holger Brunck
    Acked-by: Valentin Longchamp

    Gerlando Falauto
     
  • This consists of:
    a) Defining the addresses, enabling fdtsupport [arm]
    b) Defining "cramfsloadfdt" [arm,powerpc => common]
    c) Adding the FDT address to bootm [arm,powerpc => common]
    d) Defining "tftpfdt" in ramfs-,develop- [arm,powerpc >= common]

    This should work with 3.10 kernels, whether loaded through TFTP
    (with rootfs either through NFS or TFTP-ramfs) or from the NAND.

    The machid was left unchanged, this should keep compatibility with both
    older and newer kernels.

    Signed-off-by: Valentin Longchamp
    Signed-off-by: Gerlando Falauto
    Signed-off-by: Holger Brunck
    Acked-by: Valentin Longchamp

    Gerlando Falauto
     
  • miiphy_read and miiphy_write are returning 0 on success.

    Signed-off-by: Holger Brunck
    Acked-by: Valentin Longchamp

    Holger Brunck
     
  • Signed-off-by: Holger Brunck
    Acked-by: Valentin Longchamp

    Holger Brunck
     
  • CONFIG_BOOTCOUNT_LIMIT is used on all boards from this board series. So
    remove this unneeded define.

    Signed-off-by: Holger Brunck
    Acked-by: Valentin Longchamp

    Holger Brunck
     
  • Albert ARIBAUD
     

11 Feb, 2014

2 commits