10 Jul, 2012

34 commits

  • Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • * 'master' of git://git.denx.de/u-boot-arm:
    tegra: define fdt_load/fdt_high variables
    tegra: enable bootz command
    tegra: usb: Fix device enumeration problem of USB1
    tegra: trimslice: set up serial flash pinmux
    tegra: add pin_mux_spi() board initialization function
    tegra: add GMC/GMD funcmux entry for SFLASH
    tegra: bootcmd: start USB only when needed
    tegra: bootcmd enhancements
    tegra: add enterrcm command
    tegra: enable CONFIG_ENV_VARS_UBOOT_CONFIG
    Add env vars describing U-Boot target board
    tegra: usb: fix wrong error check
    tegra: add ULPI on USB2 funcmux entry
    tegra: fix leftover CONFIG_TEGRA2_MMC & _SPI build switches
    tegra: Add Tamonten Evaluation Carrier support
    tegra: Use SD write-protect GPIO on Tamonten
    tegra: Implement gpio_early_init() on Tamonten
    tegra: Allow boards to perform early GPIO setup
    tegra: plutux: Add device tree support
    tegra: medcom: Add device tree support
    tegra: Rework Tamonten support
    beagle: add eeprom expansion board info for bct brettl4

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • Fixed the compiler warning message.

    Signed-off-by: Rajeshwari Shinde
    Acked-by: Marek Vasut

    Rajeshwari Shinde
     
  • * 'master' of git://git.denx.de/u-boot-usb:
    CONFIG: EXYNOS5: USB: Enable USB 2.0 on smdk5250
    EXYNOS5: USB: Fix incorrect USB base addresses
    EXYNOS: Add power Enable/Disable for USB-EHCI
    USB: EXYNOS: Set USB 2.0 HOST Link mode
    EXYNOS5: Add structure for PMU registers
    EXYNOS5: Fix system register structure
    USB: EXYNOS: Incorporate EHCI review comments

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • These variables act like loadaddr, but for a device tree image. Defining
    them in the environment allows boot scripts to be identical on Tegra20 and
    Tegra30, which have different memory base addresses, and hence need
    different values for these variables.

    Signed-off-by: Stephen Warren
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • bootz is just like bootm, except that it can boot a raw zImage, without
    requiring it to be wrapped inside a uImage.

    Signed-off-by: Stephen Warren
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • A known hardware issue of USB1 port where bit 1 (connect status
    change) of PORTSC register will be set after issuing Port Reset
    (like "usb reset" in u-boot command line).
    This will be treated as an error and stops later device enumeration.

    Therefore we clear that bit after Port Reset in order to proceed
    later device enumeration.

    Signed-off-by: Jim Lin
    Acked-by: Stephen Warren
    Signed-off-by: Tom Warren

    Jim Lin
     
  • When Trimslice is booted from serial flash, the boot ROM does this, so
    U-Boot doesn't need to. However, booting from the SD slot for recovery
    purposes, the boot ROM does not set up the pinmux for serial flash. Add
    code to U-Boot to set this up, so that an SD-based recovery U-Boot image
    can upgrade the U-Boot in serial flash.

    Signed-off-by: Stephen Warren
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • Boards can override this to set up the pinmux correctly to access serial
    flash.

    Signed-off-by: Stephen Warren
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • This is used on TrimSlice.

    Signed-off-by: Stephen Warren
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • Instead of initializing USB as soon as bootcmd is executed, defer it
    until the first boot device that (potentially in the case of network)
    uses USB is scanned. This avoids initializing USB when booting from MMC,
    so speeds that up.

    Signed-off-by: Stephen Warren
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • Place the list of searched boot devices, file-system types, boot file
    locations/prefixes, and boot script names into variables. This allows
    the user to override them directly (e.g. to change boot order, or select
    the specific values they use) without having to edit the main bootcmd
    and script_boot variables.

    The default boot order is changed from USB, MMC, DHCP to MMC, USB, DHCP.
    This speeds up the typical MMC boot case. People who want USB boot can
    now edit variable boot_targets appropriately.

    Also, reformat BOOTCMDS_COMMON to fit within 80 columns.

    Potential future enhancements might be:
    * Allow boards to specify which of bootcmd_mmc0/... should be defined,
    based on the HW they contain.
    * Allow boards to influence the order that the boot targets are added
    into the boot_targets variable.

    Signed-off-by: Stephen Warren
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • Tegra's boot ROM supports a mode whereby code may be downloaded and flash
    programmed over a USB connection. On dev boards, this is typically entered
    by holding down a "force recovery" button and resetting the CPU. However,
    not all boards have such a button (one example is the Compulab Trimslice),
    so a method to enter RCM from software is useful.

    This change implements the command "enterrcm" to do this, and enables it
    for all Tegra boards by default. Even on boards other than Trimslice,
    controlling this over a UART may be useful, e.g. to allow simple remote
    control without the need for mechanical button actuators, or hooking up
    relays/... to the button.

    Signed-off-by: Stephen Warren
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • So that all Tegra boards define environment variables that describe
    themselves.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • This can be useful for generic scripts. For example, rather than hard-
    coding a script to ext2load tegra-harmony.dtb, it could load
    ${soc}-${board}.dtb and hence not need adjustments to run on multiple
    boards.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • loop_count runs down from 10000, so the correct condition to error out
    is ==0.

    Signed-off-by: Lucas Stach
    Acked-by: Stephen Warren
    CC: Stephen Warren
    CC: Tom Warren
    Tested-by: Stephen Warren
    Signed-off-by: Tom Warren

    Lucas Stach
     
  • This is needed as a prerequisite for Tegra USB ULPI support
    within U-Boot.

    Signed-off-by: Lucas Stach
    Acked-by: Stephen Warren
    CC: Stephen Warren
    CC: Tom Warren
    Signed-off-by: Tom Warren

    Lucas Stach
     
  • Missed some boards after my tegra2_mmc.* -> tegra_mmc.* change, and
    one instance of CONFIG_TEGRA2_SPI. MAKEALL -s tegra2 AOK, Seaboard MMC
    AOK. Didn't test Tamonten, Paz00 or TrimSlice, as I have none here.

    Signed-off-by: Tom Warren
    Acked-by: Stephen Warren

    Tom Warren
     
  • The Tamonten Evaluation Carrier is an evaluation board for the Tamonten
    processor board. More information is available here:

    http://www.avionic-design.de/en/products/nvidia-tegra-tamonten-system-en/nvidia-tegra-tamonten-evboard-en.html

    Signed-off-by: Thierry Reding
    Acked-by: Stephen Warren
    Signed-off-by: Tom Warren

    Thierry Reding
     
  • GPIO PI6 can be used to obtain the write-protect status of an SD card
    inserted into the SD slot.

    Signed-off-by: Thierry Reding
    Acked-by: Stephen Warren
    Signed-off-by: Tom Warren

    Thierry Reding
     
  • The PI4 GPIO is used on Tamonten to reset carrier board peripherals.
    Power sequencing hardware on the carrier pulls the reset low before
    powering up the Tegra, and the CPU is supposed to signal readiness,
    and therefore bring peripherals out of reset by pulling PI4 high.

    Signed-off-by: Thierry Reding
    Acked-by: Stephen Warren
    Signed-off-by: Tom Warren

    Thierry Reding
     
  • The new gpio_early_init() function, which does nothing by default, can
    be overridden by boards to configure GPIOs at an early stage.

    Signed-off-by: Thierry Reding
    Acked-by: Stephen Warren
    Signed-off-by: Tom Warren

    Thierry Reding
     
  • Device tree support is required for working USB host support, which in
    turn enables ethernet support.

    Signed-off-by: Thierry Reding
    Acked-by: Stephen Warren
    Signed-off-by: Tom Warren

    Thierry Reding
     
  • Device tree support is required for working USB host support, which in
    turn enables ethernet support.

    Signed-off-by: Thierry Reding
    Acked-by: Stephen Warren
    Signed-off-by: Tom Warren

    Thierry Reding
     
  • This commit uses the common Tegra board implementation instead of
    duplicating a lot of the code. In addition, the Plutux and Medcom
    specific board files can be removed as the MMC/SD setup is common
    among all Tamonten-based boards.

    Signed-off-by: Thierry Reding
    Acked-by: Stephen Warren
    Signed-off-by: Tom Warren

    Thierry Reding
     
  • this is for a prototyping board

    vendor/product ids have been added to
    http://elinux.org/BeagleBoardPinMux#List_of_Vendor_and_Device_IDs

    Signed-off-by: Peter Meerwald

    Peter Meerwald
     
  • Signed-off-by: Vivek Gautam
    Signed-off-by: Rajeshwari Shinde
    Acked-by: Minkyu Kang

    Rajeshwari Shinde
     
  • This patch corrects the base addresses for USB_PHY and USB_OTG.

    Signed-off-by: Vivek Gautam
    Signed-off-by: Rajeshwari Shinde
    Acked-by: Chander Kashyap
    Acked-by: Minkyu Kang

    Rajeshwari Shinde
     
  • This patch adds functions to enable/disable the power of USB
    host controller for EXYNOS5.

    Signed-off-by: Vivek Gautam
    Signed-off-by: Che-Liang Chiou
    Signed-off-by: Rajeshwari Shinde

    Rajeshwari Shinde
     
  • This patch adds a function to set usb host mode to USB 2.0 HOST Link
    for EXYNOS5

    Signed-off-by: Rajeshwari Shinde

    Rajeshwari Shinde
     
  • This patch adds power mananagement registers structure for exynos5 SoC.

    Signed-off-by: Rajeshwari Shinde
    Acked-by: Chander Kashyap
    Acked-by: Minkyu Kang

    Rajeshwari Shinde
     
  • This patch corrects the SYSREG structure.
    We have removed the sysreg.h added in the previous patchset
    version as the sysreg structure is already defined in system.h.

    Signed-off-by: Rajeshwari Shinde
    Acked-by: Minkyu Kang

    Rajeshwari Shinde
     
  • This patch incorates the review comments given by Minkyu Kang for
    EHCI support on EXYNOS

    Signed-off-by: Rajeshwari Shinde

    Rajeshwari Shinde
     

09 Jul, 2012

6 commits

  • This reverts commit fa042186b932e9b9ee9a2fd8a04a3acf7c70d224.
    It causes build warnings like this:
    cpu.c:48:1: warning: -fstack-usage not supported for this target
    [enabled by default]

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • Commit 896bbb5 "fdt: avoid bad MAKEALL status" added logic to capture
    the result code from dtc by echoing $? to stdout and capturing it using
    $(). However, dtc emits some diagnostics to stderr and some to stdout.
    The diagnostics send to stdout ended up getting captured via $() rather
    than being echo'd to the user. This caused those diagnostics to be passed
    to the exit command, which would then fail with the following cryptic
    error message:

    /bin/sh: line 1: exit: too many arguments

    Solve this by redirecting all dtc output to stderr so that $() does not
    capture it. This allows the user to see the actual error message from dtc.

    Cc: Wolfgang Denk
    Cc: Simon Glass
    Cc: albert.u.boot@aribaud.net
    Cc: Tom Warren
    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass

    Stephen Warren
     
  • This warning was introduced in 436da3c "ext2load: increase read
    speed":

    ext2fs.c: In function 'ext2fs_read_file':
    ext2fs.c:458:19: warning: 'blocknxt' may be used uninitialized in this function [-Wuninitialized]

    this change makes it go away.

    Cc: Eric Nelson
    Cc: Thierry Reding
    Cc: Jason Cooper
    Cc: Andreas Bießmann
    Cc: Reinhard Arlt
    Signed-off-by: Kim Phillips

    Kim Phillips
     
  • mkenvimage does not build due to missed os_support.o and unsupported
    file modes S_IRGRP S_IWGRP.
    Tested with mingw 4.2.1 on ubuntu 12.04.

    Signed-off-by: Vladimir Yakovlev

    Vladimir Yakovlev
     
  • commit "net: use common rand()/srand() functions" introduced the following
    build warning on the current u-boot-arm tree:

    $ ./MAKEALL MPC8313ERDB_66
    Configuring for MPC8313ERDB_66 - Board: MPC8313ERDB, Options: SYS_66MHZ
    text data bss dec hex filename
    271988 13976 41768 327732 50034 ./u-boot
    In file included from bootp.c:15:0:
    net_rand.h: In function 'srand_mac':
    net_rand.h:40:2: warning: implicit declaration of function 'srand' [-Wimplicit-function-declaration]

    adding this dependency fixes it.

    Cc: Michael Walle
    Cc: Joe Hershberger
    Signed-off-by: Kim Phillips
    Acked-by: Michael Walle

    Kim Phillips
     
  • Drop mdelay() macros since we already have a common mdelay() func.

    Signed-off-by: Anatolij Gustschin
    Acked-by: Mike Frysinger

    Anatolij Gustschin