]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: add a new field to mtd_info{}
authorHuang Shijie <b32955@freescale.com>
Fri, 16 Aug 2013 02:10:04 +0000 (10:10 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Sat, 17 Aug 2013 18:18:01 +0000 (11:18 -0700)
commitd4e63db21c44180a1459b52ba21f4839eb0dc227
treec1d0663c03983e95e7238f67bdbc3abef2b2b798
parent0b719345110e37c7192aa6637ba90868e218cf74
mtd: add a new field to mtd_info{}

In order to implement the NAND boot for some Freescale's chips, such as
imx23/imx28/imx50/imx6, we use a tool (called kobs-ng) to burn the uboot
and some metadata to nand chip. And the ROM code will use the metadata to
configrate the BCH, and to find the uboot.

The ECC information(ecc step size, ecc strength) which is used to configrate
the BCH is part of the metadata. The kobs-ng can gets the ecc strength from
the sys node /sys/*/ecc_strength now. But it can not gets the ecc step size.

This patch adds a new field to store the ecc step size in mtd_info{}, and
it makes preparation for the next patches.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
include/linux/mtd/mtd.h