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