• Prabhakar Kushwaha's avatar
    mtd: move & update nand_ecclayout structure (plus board changes) · 68ec9c85
    Prabhakar Kushwaha authored
    nand_ecclayout is present in mtd.h at Linux.
    Move this structure to mtd.h to comply with Linux.
    Also, increase the ecc placement locations to 640 to suport device having
    writesize/oobsize of 8KB/640B. This means that the maximum oobsize has gone
    up to 640 bytes and consequently the maximum ecc placement locations have
    also gone up to 640.
    Changes from Prabhabkar's version (squashed into one patch to preserve
     - Added _LARGE to MTD_MAX_*_ENTRIES
       This makes the names match current Linux source, and resolves
       a conflict between
       The former was posted first and is closer to matching Linux, but
       unlike Linux it does not add _LARGE to the names.  The second adds
       _LARGE to one of the names, and depends on it in a subsequent patch
     - Made max oobfree/eccpos configurable, and used this on tricorder,
       alpr, ASH405, T4160QDS, and T4240QDS (these boards failed to build
       for me without doing so, due to a size increase).
       On tricorder SPL, this saves 2576 bytes (and makes the SPL build
       again) versus the new default of 640 eccpos and 32 oobfree, and
       saves 336 bytes versus the old default of 128 eccpos and 8 oobfree.
    Signed-off-by: default avatarPrabhakar Kushwaha <prabhakar@freescale.com>
    CC: Vipin Kumar <vipin.kumar@st.com>
    [scottwood@freescale.com: changes as described above]
    Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
    Cc: Thomas Weber <weber@corscience.de>
    Cc: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
    Cc: Stefan Roese <sr@denx.de>
    Cc: York Sun <yorksun@freescale.com>
    Cc: Tom Rini <trini@ti.com>
    Reviewed-by: default avatarStefan Roese <sr@denx.de>
README.nand 9.72 KB