29 Jan, 2018

1 commit


26 Sep, 2017

2 commits

  • The status register is optional in the AMD command sets, but it's
    presence can be checked by reading out CFI table entry 0xc bit 0.
    If the register is present, prefer using it's bit 7 to determine
    if the flash is busy over reading the flash ; this is needed ie.
    on Hyperflash memories.

    Signed-off-by: Marek Vasut
    Signed-off-by: Stefan Roese

    Marek Vasut
     
  • Embed the flash base into struct flash_info instead of having ad-hoc
    static array in the code. This does not only remove static variable,
    but also allows CFI-like controllers, ie. HyperFlash ones, to use most
    of the CFI flash code by populating the flash_info with matching base
    address.

    Signed-off-by: Marek Vasut
    Signed-off-by: Stefan Roese

    Marek Vasut
     

22 Aug, 2017

1 commit


14 Aug, 2017

1 commit

  • A few years ago STM32F1 SoCs support has been added :
    0144caf22ce6acd5c gpio: stm32: add stm32f1 support
    2d18ef2364fd3561a ARMv7M: add STM32F1 support

    But neither STM32F1 dedicated defconfig nor board was
    associated to these commits.

    Got confirmation from Tom Rini and Matt Porter to remove
    all this code [1]

    [1] http://u-boot.10912.n7.nabble.com/Remove-STM32F1-support-td301603.html

    Signed-off-by: Patrice Chotard
    Reviewed-by: Tom Rini

    Patrice Chotard
     

08 Aug, 2017

1 commit


21 May, 2016

1 commit


27 Mar, 2016

1 commit


30 Nov, 2015

1 commit


12 Nov, 2015

1 commit

  • Implement a Memory Technology Device (MTD) uclass. It should
    include most flash drivers in the future. Though no uclass ops
    are defined yet, the MTD ops could be used.

    The NAND flash driver is based on MTD. The CFI flash and SPI
    flash support MTD, too. It should make sense to convert them
    to MTD uclass.

    Signed-off-by: Thomas Chou

    Thomas Chou
     

28 May, 2015

1 commit


23 Apr, 2015

1 commit


19 Nov, 2014

1 commit

  • The device id makes u-boot think that this chip needs
    cfi_reverse_geometry(), which is not the case.
    Add it to jedec_flash, so it is handled properly.

    Signed-off-by: Dirk Eibach
    Signed-off-by: Stefan Roese

    Dirk Eibach
     

15 Oct, 2013

1 commit


24 Jul, 2013

1 commit


10 Jan, 2013

1 commit

  • Add support for SST 4KB sector granularity.

    Many recent SST flashes, i.e. SST39VF3201B and similar of this family
    are declared CFI-conformant from SST. They support CFI query, but implement
    2 different sector sizes in the same memory: a 64KB sector (they call it
    "block", std AMD erase cmd=0x30), and a 4KB sector (they call it "sector",
    erase cmd=0x50). Also, CFI query on these chips, reading from address 0x2dh
    of cfi query struct, detects a number of secotrs for the 4KB granularity
    (flinfo shows it).

    For all other aspects, they are CFI compliant, so, as Linux do, i think
    it's a good idea to handle these chips in the CFI driver, with a fixup
    to allow 4KB granularity, as should be expected, instead of 64KB.

    Signed-off-by: Angelo Dureghello
    Signed-off-by: Stefan Rose

    Angelo Dureghello
     

27 Oct, 2012

1 commit


03 Sep, 2012

1 commit


13 Aug, 2012

1 commit

  • commit 54652991
    Work around bug in Numonyx P33/P30 256-Mbit 65nm flash chips

    fixes a problem for Numonyx P33/P30 flashes for 256-Mbit, but this leads
    to problems for smaller versions of this chip e.g. the 32Mbit version
    with deviceid 0x16 on mgcoge. So move the code for this work around to
    an own function and check previously manufacturer id and device id to
    not break other flashes which don't need this work around.

    Signed-off-by: Holger Brunck
    Signed-off-by: Heiko Schocher
    cc: Stefan Roese
    cc: Philippe De Muyter
    cc: Gerlando Falauto
    Signed-off-by: Stefan Roese

    Holger Brunck
     

07 Apr, 2011

1 commit


20 Sep, 2010

1 commit

  • This patch simplifies the use of CONFIG_SYS_MAX_FLASH_BANKS_DETECT. By
    moving these optional variables and defines into the common code, board
    specific code is minimized. Currently only the following board use
    this feature:

    APC405, IDS8247, TQM834x

    And IDS8247 doesn't seem to really need this feature, since its not
    updating the bank number variable at all. So this patch removes the
    definition of CONFIG_SYS_MAX_FLASH_BANKS_DETECT from this board port.

    This new framework will be used by the upcoming lwmon5 update as well.

    Signed-off-by: Stefan Roese
    Acked-by: Heiko Schocher
    Cc: Matthias Fuchs

    Stefan Roese
     

26 Aug, 2009

1 commit


05 Apr, 2009

1 commit

  • On platforms with multiple NOR chips, currently only the first one
    can be selected using the "ubi part" command. This patch fixes this
    problem by using different names for the NOR "mtd devices".

    It also changes the name of the NOR MTD device from "cfi-mtd" to
    "norX" (X indexing the device numer) to better match the mtdparts
    defaults.

    Signed-off-by: Stefan Roese
    Signed-off-by: Andreas Huber

    Andreas Huber
     

12 Feb, 2009

1 commit

  • If on your board is more than one flash, you must know
    the size of every single flash, for example, for updating
    the DTS before booting Linux. So make this function
    flash_get_info() extern, and you can have all info
    about your flashes.

    Signed-off-by: Heiko Schocher
    Signed-off-by: Stefan Roese

    Heiko Schocher
     

05 Feb, 2009

1 commit

  • include/flash.h was commented to say that the address in
    flash_info->start was a physical address. However, from u-boot's
    point of view, and looking at most flash code, it makes more
    sense for this to be a virtual address. So I corrected the
    comment to indicate that this was a virtual address.

    The only flash driver that was actually treating the address
    as physical was the mtd/cfi_flash driver. However, this code
    was using it inconsistently as it actually directly dereferenced
    the "start" element, while it used map_physmem to get a
    virtual address in other places. I changed this driver so
    that the code which initializes the info->start field calls
    map_physmem to get a virtual address, eliminating the need for
    further map_physmem calls. The code is now consistent.

    The *only* place a physical address should be used is when defining the
    flash banks list that is used to initialize the flash_info struct,
    usually found in the board config file.

    Signed-off-by: Becky Bruce
    Signed-off-by: Stefan Roese

    Becky Bruce
     

24 Nov, 2008

3 commits

  • Add cfi-mtd driver, which exports CFI flash to MTD layer.
    This allows CFI flash devices to be used from MTD layer.

    Building of the new driver is controlled by CONFIG_FLASH_CFI_MTD
    option. Initialization is done by calling cfi_mtd_init() from
    flash_init().

    Signed-off-by: Piotr Ziecik
    Signed-off-by: Stefan Roese

    Piotr Ziecik
     
  • Add interface for flash verbosity control. It allows
    to disable output from low-level flash API. It is useful
    when calling these low-level functions from context other
    than flash commands (for example the MTD/CFI interface
    implmentation).

    Signed-off-by: Piotr Ziecik
    Signed-off-by: Stefan Roese

    Piotr Ziecik
     
  • Export flash_sector_size() function from drivers/mtd/cfi_flash.c,
    so that it can be used in the upcoming cfi-mtd driver.

    Signed-off-by: Piotr Ziecik
    Signed-off-by: Stefan Roese

    Piotr Ziecik
     

19 Oct, 2008

2 commits


21 May, 2008

1 commit

  • This commit gets rid of a huge amount of silly white-space issues.
    Especially, all sequences of SPACEs followed by TAB characters get
    removed (unless they appear in print statements).

    Also remove all embedded "vim:" and "vi:" statements which hide
    indentation problems.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

13 Dec, 2007

1 commit


08 Dec, 2007

1 commit


14 Aug, 2007

1 commit

  • Merge to two at45.c files into a common file, split to at45.c and spi.c
    Fix spelling error in DM9161 PHY Support.
    Initialize at91rm9200 board (and set LED).
    Add PIO control for at91rm9200dk LEDs and Mux.
    Change dataflash partition boundaries to be compatible with Linux 2.6.

    Signed-off-by: Peter Pearse
    Signed-off-by: Ulf Samuelsson

    Peter Pearse
     

19 Mar, 2007

1 commit


24 Jan, 2007

1 commit


24 Dec, 2006

1 commit


13 Nov, 2006

1 commit

  • * Adds support for AMD command set Top Boot flash geometry reversal
    * Adds support for reading JEDEC Manufacturer ID and Device ID
    * Adds support for displaying command set, manufacturer id and
    device ids (flinfo)
    * Makes flinfo output to be consistent when CFG_FLASH_EMPTY_INFO defined
    * Removes outdated change history (refer to git log instead)

    Signed-off-by: Tolunay Orkun
    Signed-off-by: Stefan Roese

    Stefan Roese
     

04 Oct, 2006

1 commit


30 May, 2006

1 commit

  • - Add IXP4xx NPE ethernet MAC support
    - Add support for Intel IXDPG425 board
    - Add support for Prodrive PDNB3 board
    - Add IRQ support
    Patch by Stefan Roese, 23 May 2006

    [This patch does not include cpu/ixp/npe/IxNpeMicrocode.c which still
    sufferes from licensing issues. Blame Intel.]

    Wolfgang Denk