18 Feb, 2015

1 commit


17 Feb, 2015

34 commits

  • This reverts commit bd2a4888b123713adec271d6c8040ca9f609aa2f which was
    an older version of af21f2f which is what we actually want in.

    Signed-off-by: Tom Rini

    Tom Rini
     
  • For example on a raspberry pi the u-boot environment can be
    saved in a file on the first VFAT partition.
    This example illustrates how to use it with fw_printenv/fw_setenv.

    Signed-off-by: Waldemar Brodkorb

    Waldemar Brodkorb
     
  • Tom Rini
     
  • The only LPC3250 board works fine with enabled generic board support,
    add CONFIG_SYS_GENERIC_BOARD right into the arch config header.

    Signed-off-by: Vladimir Zapolskiy

    Vladimir Zapolskiy
     
  • This is not used anymore since the procedure was split into a simple
    read function and a later alaysis.

    The ivm_read_eeprom name is now used for the previous
    ivm_simple_read_eeprom function.

    Signed-off-by: Valentin Longchamp

    Valentin Longchamp
     
  • This allows to define the ethaddr env variable according to the the IVM
    content by reading the IVM in misc_init_r.

    Later, when HUSH is available the content read earlier is analyzed to
    populate some non env variables.

    Signed-off-by: Valentin Longchamp

    Valentin Longchamp
     
  • This allows to define the ethaddr env variable according to the the IVM
    content by reading the IVM in misc_init_r.

    Later, when HUSH is available the content read earlier is analyzed to
    populate some non env variables.

    Signed-off-by: Valentin Longchamp

    Valentin Longchamp
     
  • This allows to define the ethaddr env variable according to the the IVM
    content by reading the IVM in misc_init_r.

    Later, when HUSH is available the content read earlier is analyzed to
    populate some non env variables.

    Signed-off-by: Valentin Longchamp

    Valentin Longchamp
     
  • This allows to define the ethaddr env variable according to the the IVM
    content by reading the IVM in misc_init_r.

    Later, when HUSH is available the content read earlier is analyzed to
    populate some non env variables.

    Signed-off-by: Valentin Longchamp

    Valentin Longchamp
     
  • This allows to first read the IVM content (earlier in the boot sequence)
    and define the ethaddr env variable thanks to the ivm_read_eepromi().
    Later, the IVM content can be parsed and used to define some hush
    variables, when the hush subsystem is available thanks to
    ivm_analyze_eeprom().

    To avoid the HW read to happen twice, the buffer passed to
    ivm_read_eeprom() has to be reused by ivm_analyze_eeprom (and thus
    allocated before calling ivm_read_eeprom()).

    Signed-off-by: Valentin Longchamp

    Valentin Longchamp
     
  • executing "tools/buildman/buildman mpc5xx" drops this warning:

    common/spl/spl_nor.c: In function 'spl_nor_load_image':
    common/spl/spl_nor.c:26:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]

    fix this.

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     
  • remove powerpc 824x build, as this architecture not longer
    exists.

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     
  • PCI specification allow prefetchable memory to be 32-bit or 64-bit.
    PCI express specification states that all memmory bars for prefetchable
    memory must be implemented as 64-bit. They all require that 64 bit
    prefetchble memory are suported especially when u-boot is ported to
    more and more 64bit processors.

    Signed-off-by: David Feng
    Reviewed-by: Bin Meng

    David Feng
     
  • So that the CONFIG_SPL_FEL option is not needed anymore. And the regular
    SPL binary, generated by the default u-boot build, is now also bootable
    over USB in the FEL mode. The SPL still can boot from the SD card too.

    A bunch of system registers need to be saved/restored in order to ensure
    that the IRQ handler still works in the BROM FEL code after getting
    control back from the SPL. This is done in the sunxi code instead of
    abusing ifdefs in 'start.S'.

    The decision whether to load the main u-boot binary from the SD card or
    return to the FEL code in the BROM is done at runtime.

    Signed-off-by: Siarhei Siamashka
    [hdegoede@redhat.com: Since we now restore various regs before returning to
    the FEL BROM code we can drop the sunxi specific #ifdefs in start.S]
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Siarhei Siamashka
     
  • Make sunxi's FEL code fit with the normal U-Boot boot sequence instead of
    creating its own. There are some #ifdefs required in start.S. Future work
    will hopefully remove these.

    This series is available at u-boot-dm, branch sunxi-working.

    Signed-off-by: Simon Glass
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Simon Glass
     
  • Some boards have a special way of loading U-Boot that does not fit with
    the existing SPL code. For example sunxi uses an 'FEL' mode where U-Boot
    is loaded over USB. Add a CONFIG option and boot mode for this.

    Signed-off-by: Simon Glass
    Acked-by: Siarhei Siamashka
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Simon Glass
     
  • The link register value can be required on some boards (e.g. FEL mode on
    sunxi) so use a branch instruction to jump to save_boot_params() instead
    of a branch link.

    This requires a branch back to save_boot_params_ret so adjust the users
    to deal with this. For exynos just drop the function since it doesn't
    do anything.

    Signed-off-by: Simon Glass
    Acked-by: Siarhei Siamashka
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Simon Glass
     
  • Now my PS3 can be also used to build u-boot for sunxi devices.

    Signed-off-by: Siarhei Siamashka
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Siarhei Siamashka
     
  • Peripheral mode needs us to signal vusb high to the phy for it to work,
    just like the host mode does.

    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Hans de Goede
     
  • Move the dram helper functions to a separate C file, rather then having them
    as inline helpers in dram.h. This saves 144 bytes in the .text segment for
    sun6i builds.

    Signed-off-by: Hans de Goede
    Reviewed-by: Simon Glass

    Hans de Goede
     
  • Only use CONFIG_SUNXI_MAX_FB_SIZE to reserve memory at the top when relocating
    u-boot, and calculate the actual amount of memory necessary when setting up
    the video-mode and use only that, freeing up some additional memory for use
    by the kernel.

    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Hans de Goede
     
  • Do not use CONFIG_SYS_MEM_TOP_HIDE for the framebuffer, instead override
    board_get_usable_ram_top to make sure that u-boot is not relocated into the
    area where we want to use the framebuffer, and patch the devicetree from
    sunxi_simplefb_setup() to tell the kernel to not touch the framebuffer.

    This makes u-boot properly see the framebuffer as dram, and initalize the
    level 2 cache for it, fixing the very slow cfb scrolling problem.

    As an added bonus this stops us from reserving the framebuffer when simplefb
    is not used because an older kernel is booted, or hdp is used and no hdmi
    cable was plugged in, freeing up the memory for kernel use in these cases.

    Reported-by: Siarhei Siamashka
    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Hans de Goede
     
  • Signed-off-by: Hans de Goede

    Hans de Goede
     
  • Signed-off-by: Paul Kocialkowski
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Paul Kocialkowski
     
  • The recent changes to config_distro_bootcmd.h require CONFIG_CMD_PART to be
    defined, as the default bootcmd now uses the "part" command.

    This fixes sunxi boards not booting with v2015.04-rc1.

    Signed-off-by: Hans de Goede
    Acked-by: Stephen Warren

    Hans de Goede
     
  • Use fdt_for_each_subnode macro to simplify the code a bit.

    Signed-off-by: Axel Lin
    Acked-by: Simon Glass

    Axel Lin
     
  • Commit a93648d197df48fa46dd55f925ff70468bd81c71 introduced linker generated
    lists for imagetool which is the base for some host tools (mkimage, dumpimage,
    et al.). Unfortunately some host tool chains do not support the used type of
    linker scripts. Therefore this commit broke these host-tools for them, namely
    FreeBSD and Darwin (OS/X).

    This commit tries to fix this. In order to have a clean distinction between host
    and embedded code space we need to introduce our own linker generated list
    instead of re-using the available linker_lists.h provided functionality. So we
    copy the implementation used in linux kernel script/mod/file2alias.c which has
    the very same problem (cause it is a host tool). This code also comes with an
    abstraction for Mach-O binary format used in Darwin systems.

    Signed-off-by: Andreas Bießmann
    Cc: Guilherme Maciel Ferreira

    Andreas Bießmann
     
  • On Keystone2 devices serdes must be initialized before accessing MDIO bus.
    This commit moves the keystone2_net_serdes_setup() from keystone2_eth_open
    to keystone2_emac_initialize to meet that requirement.

    This also eliminates unnecessary serdes initializatin every time when the
    keystone2_eth_open is being called.

    Signed-off-by: Vitaly Andrianov
    Acked-by: Joe Hershberger
    Tested-by: Nishanth Menon

    Vitaly Andrianov
     
  • KS2 ddr3 initialization uses ddr3_size global variable before u-boot
    relocation. Even if the variable is not being used after relocation,
    writing to it corrupts relocation table.

    This patch removes the global ddr3_size variable and uses local one
    instead.

    Signed-off-by: Vitaly Andrianov
    Tested-by: Nishanth Menon

    Vitaly Andrianov
     
  • When EMAC is in the boot order, the boot ROM sets OPP50 and the
    MAC clock is set to /2. SPL needs to change it to /5 for Ethernet
    to generate the correct txclk. This patch sets it correctly.

    Signed-off-by: Steve Kipisz

    Steve Kipisz
     
  • Update the software leveling parameters.
    This fixes the random crash seen on DRA7-evm.

    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     
  • The value in SDRAM_REF_CTRL controls the delay time between
    the initial rising edge of DDR_RESETn to rising edge of DDR_CKE
    (JEDEC specs this as 500us). In order to achieve this, SDRAM_REF_CTRL
    should be written with a value corresponding to 500us delay before
    starting DDR initialization sequence, and configure proper
    value at the end of sequence.

    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     
  • DDR3 timing and latency paramenters were not configured
    correctly for 666MHz. Fixing the timing and latency values
    according to Data sheet.
    This fixes the random crashes seen on DRA72-evm.

    Signed-off-by: Angela Stegmaier
    Signed-off-by: Lokesh Vutla

    Angela Stegmaier
     
  • The patch c316f577b4b72d1a1aeb559e9b3fad20808f1ffd breaks
    siemens boards because prefetch mode is not enabled.
    I assume it breaks other boards as well that don't use
    prefetch.

    This patch sets read_buf to nand_read_buf if
    NAND_OMAP_GPMC_PREFETCH is not defined.

    Signed-off-by: Samuel Egli
    CC: Daniel Mack
    CC: Guido Martínez
    CC: Tom Rini
    CC: Heiko Schocher

    Egli, Samuel
     

16 Feb, 2015

5 commits