29 Jan, 2018

1 commit


13 Feb, 2017

2 commits

  • The whole of common/flash.c is guarded by #if defined() ... #endif.
    Move the conditional to common/Makefile.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • We repeated partial moves for CONFIG_SYS_NO_FLASH, but this is
    not completed. Finish this work by the tool.

    During this move, let's rename it to CONFIG_MTD_NOR_FLASH.
    Actually, we have more instances of "#ifndef CONFIG_SYS_NO_FLASH"
    than those of "#ifdef CONFIG_SYS_NO_FLASH". Flipping the logic will
    make the code more readable. Besides, negative meaning symbols do
    not fit in obj-$(CONFIG_...) style Makefiles.

    This commit was created as follows:

    [1] Edit "default n" to "default y" in the config entry in
    common/Kconfig.

    [2] Run "tools/moveconfig.py -y -r HEAD SYS_NO_FLASH"

    [3] Rename the instances in defconfigs by the following:
    find . -path './configs/*_defconfig' | xargs sed -i \
    -e '/CONFIG_SYS_NO_FLASH=y/d' \
    -e 's/# CONFIG_SYS_NO_FLASH is not set/CONFIG_MTD_NOR_FLASH=y/'

    [4] Change the conditionals by the following:
    find . -name '*.[ch]' | xargs sed -i \
    -e 's/ifndef CONFIG_SYS_NO_FLASH/ifdef CONFIG_MTD_NOR_FLASH/' \
    -e 's/ifdef CONFIG_SYS_NO_FLASH/ifndef CONFIG_MTD_NOR_FLASH/' \
    -e 's/!defined(CONFIG_SYS_NO_FLASH)/defined(CONFIG_MTD_NOR_FLASH)/' \
    -e 's/defined(CONFIG_SYS_NO_FLASH)/!defined(CONFIG_MTD_NOR_FLASH)/'

    [5] Modify the following manually
    - Rename the rest of instances
    - Remove the description from README
    - Create the new Kconfig entry in drivers/mtd/Kconfig
    - Remove the old Kconfig entry from common/Kconfig
    - Remove the garbage comments from include/configs/*.h

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

06 Jan, 2015

1 commit


24 Jul, 2013

1 commit


22 Apr, 2013

1 commit

  • Sometimes it might make sense to verify the written data to NOR flash.
    This patch adds this feature. To enable this verify-after-write, you
    need to define CONFIG_FLASH_VERIFY in your board config header.

    Please note that this option is useless in nearly all cases,
    since such flash programming errors usually are detected earlier
    while unprotecting/erasing/programming. Please only enable
    this option if you really know what you are doing.

    Signed-off-by: Stefan Roese

    Stefan Roese
     

03 Sep, 2012

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
     

09 Aug, 2010

1 commit

  • If a flash is unable to be detected, and then someone calls flash_protect
    on it (like the common code does in flash_init), the flash_protect logic
    will dereference a NULL pointer.

    Since flash_protect already does sanity checking on the info structs, add
    a NULL pointer check in there.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

19 Oct, 2008

1 commit


14 Jul, 2008

1 commit


31 Jul, 2007

1 commit

  • Changed storage type of cfg_simulate_spd_eeprom to const
    Changed storage type of gpio_tab to stack storage
    (Cannot access global data declarations in .bss until afer code relocation)

    Improved SDRAM tests to catch problems where data is not uniquely addressable
    (e.g. incorrectly programmed SDRAM row or columns)

    Added CONFIG_PROG_SDRAM_TLB to support Bamboo SIMM/DIMM modules
    Fixed AM29LV320DT (OpCode Flash) sector map

    Signed-off-by: Eugene OBrien
    Signed-off-by: Stefan Roese

    Eugene OBrien
     

16 Oct, 2005

1 commit


13 Oct, 2005

1 commit


12 Oct, 2005

1 commit


09 Apr, 2004

1 commit


17 Aug, 2002

1 commit