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
     

04 Sep, 2017

2 commits


17 May, 2016

1 commit


15 Mar, 2016

2 commits

  • At present block devices are tied up with partitions. But not all block
    devices have partitions within them. They are in fact separate concepts.

    Create a separate blk.h header file for block devices.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Tested-by: Stephen Warren

    Simon Glass
     
  • Use 'struct' instead of a typdef. Also since 'struct block_dev_desc' is long
    and causes 80-column violations, rename it to struct blk_desc.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Tested-by: Stephen Warren

    Simon Glass
     

14 Jan, 2016

2 commits


26 Oct, 2014

1 commit


22 Jul, 2014

1 commit

  • clang chokes about the concept of having an alias to an
    always_inlined function. gcc likely just ignores the always
    inlined since binary sizes are equal before and after this
    patch. Convert the aliases to weak functions and provide
    missing prototypes.

    cc: Pavel Herrmann
    Signed-off-by: Jeroen Hofstee

    Jeroen Hofstee
     

25 Jul, 2013

1 commit


24 Jul, 2013

2 commits


16 Jul, 2013

1 commit

  • With CONFIG_SYS_64BIT_LBA, lbaint_t gets defined as a 64-bit type,
    which is required to represent block numbers for storage devices that
    exceed 2TiB (the block size usually is 512B), e.g. recent hard drives

    We now use lbaint_t for partition offset to reflect the lbaint_t change,
    and access partitions beyond or crossing the 2.1TiB limit.
    This required changes to signature of ext4fs_devread(), and type of all
    variables relatives to block sector.

    ext2/ext4 fs uses logical block represented by a 32 bit value. Logical
    block is a multiple of device block sector. To avoid overflow problem
    when calling ext4fs_devread(), we need to cast the sector parameter.

    Signed-off-by: Frédéric Leroy

    Frederic Leroy
     

26 Jun, 2013

1 commit

  • With CONFIG_SYS_64BIT_LBA, lbaint_t gets defined as a 64-bit type,
    which is required to represent block numbers for storage devices that
    exceed 2TiB (the block size usually is 512B), e.g. recent hard drives.

    For some obscure reason, the current U-Boot code uses lbaint_t for the
    number of blocks to read (a rather optimistic estimation of how RAM
    sizes will evolve), but not for the starting address. Trying to access
    blocks beyond the 2TiB boundary will simply wrap around and read a
    block within the 0..2TiB range.

    We now use lbaint_t for block start addresses, too. This required
    changes to all block drivers as the signature of block_read(),
    block_write() and block_erase() in block_dev_desc_t changed.

    Signed-off-by: Sascha Silbe

    Sascha Silbe
     

16 Mar, 2013

1 commit


22 Oct, 2012

1 commit


17 Oct, 2012

2 commits

  • This changes input_data() and friends from static function to global symbols
    under weak alias, to enable board specific overrides (and therefore get rid of
    board-specific code in cmd_ide.c)
    Also declare ide_bus_offset in the header file, so other files can use
    ATA_CURR_BASE as well.

    Signed-off-by: Pavel Herrmann

    Pavel Herrmann
     
  • move most of mpc8xx hooks from cmd_ide.c into ide_preinit() and newly created
    ide_init_postreset() (invoked after calling ide_reset after ide_preinit),
    some cleanup to make checkpatch happy, enable IDE init hooks in configs of
    affected boards.
    confusingly, these hooks are used by more than just mpc8xx-based boards, and
    therefore are placed in arch/ppc/lib/

    note: checkpatch still emits warnings about using volatile

    Signed-off-by: Pavel Herrmann

    Pavel Herrmann
     

16 Oct, 2012

1 commit


09 Oct, 2012

1 commit

  • The IDE_BUS(dev) macro was previously doing dev >> 1. This however is a
    mis-match of the usage in common/cmd_ide.c and would cause boards with
    multiple ports / devices to not correctly detect all devices. For more
    details please see:
    http://lists.denx.de/pipermail/u-boot/2012-April/122525.html

    [Tom Rini: Reword commit message only]

    Tested-by: Luka Perkov
    Signed-off-by: Simon Baatz
    Signed-off-by: Tom Rini

    Luka Perkov
     

01 May, 2011

2 commits

  • The changes introduced by commit 0abddf8 ``cmd_ide: enhance new
    feature "CONFIG_IDE_AHB"'' caused compiler warnings like

    cmd_ide.c: In function 'ide_init':
    cmd_ide.c:716: warning: assignment from incompatible pointer type

    Constify the respective function arguments to fix this.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • Although most IDE controller is designed to be connected to PCI bridge,
    there are still some IDE controller support AHB interface for SoC design.

    The driver implementation of these IDE-AHB controllers differ from other
    IDE-PCI controller, some additional registers and commands access is required
    during CMD/DATA I/O. Hence a configuration "CONFIG_IDE_AHB" in cmd_ide.c is
    required to be defined to support these kinds of SoC controllers. Such as
    Faraday's FTIDE020 series and Global Unichip's UINF-0301.

    Signed-off-by: Macpaul Lin

    Macpaul Lin
     

25 Sep, 2009

1 commit

  • U-Boot can detect if an IDE device is present or not.
    If not, and this new config option is activated, U-Boot
    removes the ATA node from the DTS before booting Linux,
    so the Linux IDE driver does not probe the device and
    crash. This is needed for buggy hardware (uc101) where
    no pull down resistor is connected to the signal IDE5V_DD7.

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     

19 Oct, 2008

1 commit


28 Aug, 2007

1 commit


20 Feb, 2007

2 commits


15 Mar, 2004

1 commit


14 Mar, 2004

1 commit

  • - Added LBA48 support (CONFIG_LBA48 & CFG_64BIT_LBA)
    - Added support for 64bit printing in vsprintf (CFG_64BIT_VSPRINTF)
    - Added support for 64bit strtoul (CFG_64BIT_STRTOUL)

    * Patch by Masami Komiya, 27 Feb 2004:
    Fix rarpboot: add autoload by NFS

    * Patch by Dan Eisenhut, 26 Feb 2004:
    fix flash_write return value in saveenv

    * Patch by Stephan Linz, 11 Dec 2003
    expand config.mk to avoid trigraph warnings on NIOS

    * Rename "BMS2003" board into "HMI10"

    wdenk
     

27 Aug, 2002

1 commit