22 Sep, 2012

3 commits


19 Sep, 2012

4 commits


08 Sep, 2012

1 commit

  • A device tree is used to configure the NAND, including memory
    timings and block/pages sizes.

    If this node is not present or is disabled, then NAND will not
    be initialized.

    Signed-off-by: Jim Lin
    Signed-off-by: Simon Glass
    Signed-off-by: Tom Warren

    Jim Lin
     

11 Aug, 2012

1 commit

  • Include arch specific gpio.h instead of asm-generic/gpio.h
    because several architectures (Microblaze, Blackfin, Nios2, OpenRISC)
    define gpio functions in header file.
    asm-generic/gpio.h can be included in arch specific gpio.h
    (For example: ARM)

    Signed-off-by: Michal Simek
    CC: Simon Glass
    Acked-by: Mike Frysinger
    Acked-by: Simon Glass

    Michal Simek
     

09 Jul, 2012

1 commit

  • * 'master' of git://git.denx.de/u-boot-arm: (212 commits)
    ARM: cache: Move the cp15 CR register read before flushing the cache.
    ARM: introduce arch_early_init_r()
    PXA: Enable CONFIG_PREBOOT on zipitz2
    ARM: mx28: Remove CONFIG_ARCH_CPU_INIT
    No need to define CONFIG_ARCH_CPU_INIT.
    add new board vl_ma2sc
    MTD: SPEAr SMI: Add write support for length < 4 bytes
    i2c: designware_i2c.c: Add support for the "i2c probe" command
    rtc/m41t62: Add support for M41T82 with HT (Halt Update)
    SPL: ARM: spear: Add SPL support for SPEAr600 platform
    Makefile: Add u-boot.spr build target (SPEAr)
    SPL: ARM: spear: Remove some objects from SPL build
    SPL: lib/Makefile: Add crc32.c to SPL build
    SPL: common/Makefile: Add image.c to SPL build
    arm: Don't use printf() in SPL builds
    GPIO: Add SPEAr GPIO driver
    net: Multiple updates/enhancements to designware.c
    cleanup/SPEAr: Define configuration flags more elegantly
    cleanup/SPEAr: Remove unnecessary parenthesis
    SPEAr: Correct SoC ID offset in misc configuration space
    SPEAr: explicitly select clk src for UART
    SPEAr: Remove CONFIG_MTD_NAND_VERIFY_WRITE to speed up NAND access
    SPEAr: Enable ONFI nand flash detection for spear3xx and 6xx and evb
    SPEAr: Enable CONFIG_SYS_FLASH_EMPTY_INFO macro
    SPEAr: Correct the definition of CONFIG_SYS_MONITOR_BASE
    SPEAr: Enable CONFIG_SYS_FLASH_PROTECTION
    SPEAr: Enable dcache for fast file transfer
    SPEAr: Enable autoneg for ethernet
    SPEAr: Enable udc and usb-console support only for usbtty configuration
    SPEAr: Enable usb device high speed support
    SPEAr: Initialize SNOR in early_board_init_f
    SPEAr: Change the default environment variables
    SPEAr: Remove unused flag (CONFIG_SYS_HZ_CLOCK)
    SPEAr: Add configuration options for spear3xx and spear6xx boards
    SPEAr: Add basic arch related support for SPEAr SoCs
    SPEAr: Add interface information in initialization
    SPEAr: Add macb driver support for spear310 and spear320
    SPEAr: Configure network support for spear SoCs
    SPEAr: Place ethaddr write and read within CONFIG_CMD_NET
    SPEAr: Eliminate dependency on Xloader table
    SPEAr: Fix ARM relocation support
    st_smi: Fixed page size for Winbond W25Q128FV flash
    st_smi: Change timeout loop implementation
    st_smi: Fix bug in flash_print_info()
    st_smi: Change the flash probing method
    st_smi: Removed no needed dependency on ST_M25Pxx_ID
    st_smi: Fix smi read status
    st_smi: Move status register read before modifying ctrl register
    st_smi: Read status until timeout happens
    st_smi: Enhance the error handling
    st_smi: Change SMI timeout values
    st_smi: Return error in case TFF is not set
    st_smi: Add support for SPEAr SMI driver
    mtd/NAND: Remove obsolete SPEAr specific NAND drivers
    SPEAr: Configure FSMC driver for NAND interface
    mtd/NAND: Add FSMC driver support
    arm/km: remove calls to kw_gpio_* in board_early_init_f
    arm/km: add implementation for read_dip_switch
    arm/km: support the 2 PCIe fpga resets
    arm/km: skip FPGA config when already configured
    arm/km: redefine piggy 4 reg names to avoid conflicts
    arm/km: cleanup km_kirkwood boards
    arm/km: enable BOCO2 FPGA download support
    arm/km: remove portl2.h and use km_kirkwood instead
    arm/km: convert mgcoge3un target to km_kirkwood
    arm/km: add kmcoge5un board support
    arm/km: add kmnusa board support
    arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0
    cm-t35: fix incorrect NAND_ECC layout selection
    ARM: OMAP4/5: Do not configure non essential pads, clocks, dplls.
    ARM: OMAP4/5: Move USB pads to essential list.
    ARM: OMAP4/5: Move USB clocks to essential group.
    ARM: OMAP4/5: Move gpmc clocks to essential group.
    ARM: OMAP4+: Move external phy initialisations to arch specific place.
    omap4: Use a smaller M,N couple for IVA DPLL
    da850/omap-l138: Enable auto negotiation in RMII mode
    omap: am33xx: accomodate input clocks other than 24 Mhz
    omap: emif: fix bug in manufacturer code test
    omap: emif: deal with rams that return duplicate mr data on all byte lanes
    OMAP4+: Force DDR in self-refresh after warm reset
    OMAP4+: Handle sdram init after warm reset
    ARM: OMAP3+: Detect reset type
    arm: bugfix: Move vector table before jumping relocated code
    Kirkwood: Add support for Ka-Ro TK71
    arm/km: use spi claim bus to switch between SPI and NAND
    arm/kirkwood: protect the ENV_SPI #defines
    ARM: don't probe PHY address for LaCie boards
    lacie_kw: fix CONFIG_SYS_KWD_CONFIG for inetspace_v2
    lacie_kw: fix SDRAM banks number for net2big_v2
    Kirkwood: add lschlv2 and lsxhl board support
    net: add helper to generate random mac address
    net: use common rand()/srand() functions
    lib: add rand() function
    kwboot: boot kirkwood SoCs over a serial link
    kw_spi: add weak functions board_spi_claim/release_bus
    kw_spi: support spi_claim/release_bus functions
    kw_spi: backup and reset the MPP of the chosen CS pin
    kirkwood: fix calls to kirkwood_mpp_conf
    kirkwood: add save functionality kirkwood_mpp_conf function
    km_arm: use filesize for erase in update command
    arm/km: enable mii cmd
    arm/km: remove CONFIG_RESET_PHY_R
    arm/km: change maintainer for mgcoge3un
    arm/km: fix wrong comment in SDRAM config for mgcoge3un
    arm/km: use ARRAY_SIZE macro
    arm/km: rename CONFIG option CONFIG_KM_DEF_ENV_UPDATE
    arm/km: add piggy mac adress offset for mgcoge3un
    arm/km: add board type to boards.cfg
    AT91SAM9*: Change kernel address in dataflash to match u-boot's size
    ATMEL/PIO: Enable new feature of PIO on Atmel device
    ehci-atmel: fix compiler warning
    AT91: at91sam9m10g45ek : Enable EHCI instead OHCI
    Atmel : usb : add EHCI driver for Atmel SoC
    Fix: AT91SAM9263 nor flash usage
    Fix: broken boot message at serial line on AT91SAM9263-EK board
    i.MX6 USDHC: Use the ESDHC clock
    mx28evk: Fix boot by adjusting HW_DRAM_CTL29 register
    i.MX28: Add function to adjust memory parameters
    mx28evk: Fix PSWITCH key position
    mx53smd: Remove CONFIG_SYS_I2C_SLAVE definition
    mx53loco: Remove CONFIG_SYS_I2C_SLAVE definition
    mx53evk: Remove CONFIG_SYS_I2C_SLAVE definition
    mx53ard: Remove CONFIG_SYS_I2C_SLAVE definition
    mx35pdk: Remove CONFIG_SYS_I2C_SLAVE definition
    imx31_phycore: Remove CONFIG_SYS_I2C_SLAVE definition
    mx53ard: Remove unused CONFIG_MII_GASKET
    mx6: Avoid writing to read-only bits in imximage.cfg
    m28evk: use same notation to alloc the 128kB stack
    ...

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

07 Jul, 2012

4 commits


25 May, 2012

1 commit

  • This directory includes tizen logo data, common tizen library and so on.

    Signed-off-by: Donghwa Lee
    Signed-off-by: Kyungmin Park
    Acked-by: Minkyu Kang

    [ agust: change to conditionally build lib/tizen directory ]
    Signed-off-by: Anatolij Gustschin

    Donghwa Lee
     

15 May, 2012

6 commits

  • Add support for internal matrix keyboard controller for Nvidia Tegra
    platforms. This driver uses the fdt decode function to obtain its key
    codes.

    Support for the Ctrl modifier is provided. The left and right ctrl keys are
    dealt with in the same way.

    This uses the new keyboard input library (drivers/input/input.c) to decode
    keys and handle most of the common input logic. The new key matrix library
    is also used to decode (row, column) key positions into key codes.

    The intent is to make this driver purely about dealing with the hardware.

    Key detection before the driver is loaded is supported. This key will be
    picked up when the keyboard driver is initialized.

    Modified by Bernie Thompson and
    Simon Glass for device tree, input layer, key matrix
    and various other things.

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

    Rakesh Iyer
     
  • Sometimes we don't need a full cell for each value. This provides
    a simple function to read a byte array, both with and without
    copying it.

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

    Anton Staff
     
  • Add support for setting up the memory controller parameters. Boards
    can set up an appropriate table in the device tree.

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

    Jimmy Zhang
     
  • Add support for AES using an implementation from Karl Malbrain.
    This offers small code size (around 5KB on ARM) and supports 128-bit
    AES only.

    Signed-off-by: Yen Lin
    Signed-off-by: Simon Glass
    Signed-off-by: Tom Warren

    Yen Lin
     
  • We need to iterate through subnodes of a parent, looking only at
    compatible nodes. Add a utility function to do this for us.

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

    Simon Glass
     
  • fdtdec_locate_array() locates an integer array but does not copy it. This
    saves the caller having to allocated wasted space.

    Access to array elements should be through the fdt32_to_cpu() macro.

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

    Simon Glass
     

30 Apr, 2012

1 commit


29 Apr, 2012

1 commit

  • md5.c: In function ‘MD5Final’:
    md5.c:156:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    md5.c:157:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

    Signed-off-by: Marek Vasut
    Cc: Wolfgang Denk
    Acked-by: Mike Frysinger

    Marek Vasut
     

11 Apr, 2012

1 commit

  • The standalone example does not have get_timer() defined, so we cannot
    rely on it being available.

    Move the timer function into boootstage.c to avoid this problem.

    This corrects a build breakage for the standalone example on some boards.

    Signed-off-by: Simon Glass
    Acked-by: Matthias Fuchs

    Simon Glass
     

31 Mar, 2012

1 commit

  • * 'agust@denx.de' of git://git.denx.de/u-boot-staging:
    lzma: fix printf warnings
    Remove CONFIG_SYS_EXTBDINFO from snapper9260.h
    cmd_pxe.c: fix strict-aliasing warnings
    net: smc91111: use mdelay()
    doc: Fix some typos in different files
    disk/part.c: Fix device enumeration through API
    mkenvimage: Really set the redundant byte when applicable
    mkenvimage: Don't try to detect comments in the input file
    mkenvimage: Use mmap() when reading from a regular file
    mkenvimage: Read/Write from/to stdin/out by default or if the filename is "-"
    mkenvimage: More error handling
    mkenvimage: Correct an include and add a missing one
    mkenvimage: correct and clarify comments and error messages
    MAKEALL: display SPL size if present
    ARMV7/Vexpress: add missing get_ticks() and get_tbclk()
    mkenvimage: fix usage message
    cmd_fat: add FAT write command
    fs/fat/fat_write.c: Fix GCC 4.6 warnings
    FAT write: Fix compile errors

    Wolfgang Denk
     

29 Mar, 2012

9 commits

  • Add basic i2c driver for Tegra2 with 8- and 16-bit address support.
    The driver requires CONFIG_OF_CONTROL to obtain its configuration
    from the device tree.

    (Simon Glass: sjg@chromium.org modified for upstream)

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

    Yen Lin
     
  • Some devices can deal with multiple compatible properties. The devices
    need to know which nodes to bind to which features. For example an
    I2C driver which supports two different controller types will want to
    know which type it is dealing with in each case.

    The new fdtdec_add_aliases_for_id() function deals with this by allowing
    the driver to search for additional compatible nodes for a different ID.
    It can then detect the new ones and perform appropriate processing.

    Another option considered was to return a tuple (node offset, compat id)
    and have the function be passed a list of compatible IDs. This is more
    overhead for the common case though. We may add such a function later if
    more drivers in U-Boot require it.

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

    Simon Glass
     
  • CONFIG_OF_CONTROL requires a valid device tree. However, we cannot call
    panic() before the console is set up since the message does not appear,
    and we get a silent failure.

    Remove the panic from fdtdec_check_fdt() and provide a new function to
    prepare the fdt for use. This will be called after the console is ready.

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

    Simon Glass
     
  • This adds basic support for the Tegra2 USB controller. Board files should
    call board_usb_init() to set things up.

    Configuration is performed through the FDT, with aliases used to set the
    order of the ports, like this fragment:

    aliases {
    /* This defines the order of our USB ports */
    usb0 = "/usb@0xc5008000";
    usb1 = "/usb@0xc5000000";
    };

    drivers/usb/host files ONLY: Acked-by: Remy Bohmer
    Signed-off-by: Simon Glass
    Signed-off-by: Tom Warren

    Simon Glass
     
  • This adds some support into fdtdec for reading GPIO definitions from
    the fdt. We permit up to FDT_GPIO_MAX GPIOs in the system. Each GPIO
    is of the form:

    gpio-function-name = ;

    where:

    phandle is a pointer to the GPIO node
    gpio_num is the number of the GPIO (0 to 223)
    flags is a flag, as follows:

    bit meaning
    0 0=polarity normal, 1=active low (inverted)

    An example is:

    enable-propounder-gpios = ;

    which means that GPIO 43 is used to enable the propounder (setting the
    GPIO high), or that you can detect that the propounder is enabled by
    checking if the GPIO is high (the fdt does not indicate input/output).

    Two main functions are provided:

    fdtdec_decode_gpio() reads a GPIO property from an fdt node and decodes it
    into a structure.

    fdtdec_setup_gpio() sets up the GPIO by calling gpio_request for you.

    Both functions can cope with the property being missing, which is taken to
    mean that that GPIO function is not available or is not needed.

    [For reference, from Stephen Warren . It may be that
    we add this extra complexity later if needed:

    The correct way to parse such a GPIO property in general is:

    * Read the first cell.
    * Find the node referenced by the phandle (the controller).
    * Ensure property gpio-controller is present in the controller node.
    * Read property #gpio-cells from the controller node.
    * Extract #gpio-cells from the original property.
    * Keep processing more cells from the original property; there may be
    multiple GPIOs listed.

    According to the binding documentation in the Linux kernel, Samsung
    Exynos4 doesn't use this format, and while all other chips do have a
    flags cell, about 50% of the controllers indicate the cell is unused.
    ]

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

    Simon Glass
     
  • Add a function to look up a property which is a phandle in a node, and
    another to read a fixed-length integer array from an fdt property.
    Also add a function to read boolean properties, although there is no
    actual boolean type in U-Boot.

    Signed-off-by: Simon Glass
    Acked-by: Gerald Van Baren
    Acked-by: Stephen Warren
    Signed-off-by: Tom Warren

    Simon Glass
     
  • This fixes five trivial issues in fdtdec.c:
    1. fdtdec_get_is_enabled() doesn't really need a default value
    2. The fdt must be word-aligned, since otherwise it will fail on ARM
    3. The compat_names[] array is missing its first element. This is needed
    only because the first fdt_compat_id is defined to be invalid.
    4. Added a header prototype for fdtdec_next_compatible()
    5. Change fdtdec_next_alias() to only increment its 'upto' parameter
    on success, to make the display error messages in the caller easier.

    Signed-off-by: Simon Glass
    Acked-by: Gerald Van Baren
    Acked-by: Stephen Warren
    Signed-off-by: Tom Warren

    Simon Glass
     
  • The fdtdec_find_aliases_for_id() function is complicated enough that
    it really should have some tests. This does not necessarily need to be
    committed to U-Boot, but it might be useful.

    (note there are a few minor inconsistencies with this patch which will be
    cleaned up when the USB series is applied)

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

    Simon Glass
     
  • Stephen Warren pointed out that we should use nodes whether or not they
    have an alias in the /aliases section. The aliases section specifies the
    order so far as it can, but is not essential. Operating without alisses
    is useful when the enumerated order of nodes does not matter (admittedly
    rare in U-Boot).

    This is considerably more complex, and it is important to keep this
    complexity out of driver code. This patch creates a function
    fdtdec_find_aliases() which returns an ordered list of node offsets
    for a particular compatible ID, taking account of alias nodes.

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

    Simon Glass
     

28 Mar, 2012

1 commit

  • Fix size_t printf format warnings:

    LzmaTools.c: In function 'lzmaBuffToBuffDecompress':
    LzmaTools.c:110:5: warning: format '%x' expects type 'unsigned int',
    but argument 2 has type 'SizeT'
    LzmaTools.c:111:5: warning: format '%x' expects type 'unsigned int',
    but argument 2 has type 'SizeT'

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

27 Mar, 2012

1 commit

  • Adds support for loading U-Boot from UART using YMODEM protocol.
    If YMODEM support is enabled in SPL and the romcode indicates
    that SPL loaded via UART then SPL will wait for start of a
    YMODEM transfer via the console port.

    Signed-off-by: Matt Porter
    Signed-off-by: Tom Rini

    Matt Porter
     

19 Mar, 2012

1 commit

  • Define timer_get_boot_us() which returns the number of microseconds
    since boot. If undefined then we use get_timer() * 1000.

    We can fit this in a 32-bit register which keeps everyone happy on
    the efficiency side. It will wrap around after about an hour. If we
    are still looking at it after an hour then we had better not be
    timing the boot.

    Signed-off-by: Simon Glass

    Simon Glass
     

27 Jan, 2012

2 commits

  • [backport from linux commit 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe]

    This is part of the synchronization with the nand driver to the
    Linux 3.0 state.

    Signed-off-by: Christian Hitz
    Cc: Scott Wood
    Signed-off-by: Scott Wood

    Christian Hitz
     
  • [backport from linux commit 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe]

    This patch merges the BCH ECC algorithm from the 3.0 Linux kernel.
    This enables U-Boot to support modern NAND flash chips that
    require more than 1-bit of ECC in software.

    Signed-off-by: Christian Hitz
    Cc: Scott Wood
    Signed-off-by: Scott Wood

    Christian Hitz
     

24 Dec, 2011

1 commit