diff options
| author | Xiaolei Li <xiaolei.li@mediatek.com> | 2017-05-31 16:26:40 +0800 |
|---|---|---|
| committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-06-01 10:09:37 +0200 |
| commit | 7ec4a37c5d71f0a0bfeb1346d4e832a090ca292d (patch) | |
| tree | 3f1a297efbb185dfdb76aefefbd77c304a493f97 /tools/perf/scripts/python/bin | |
| parent | mtd: nand: mediatek: refine register NFI_PAGEFMT setting (diff) | |
| download | linux-7ec4a37c5d71f0a0bfeb1346d4e832a090ca292d.tar.gz linux-7ec4a37c5d71f0a0bfeb1346d4e832a090ca292d.zip | |
mtd: nand: mediatek: add support for different MTK NAND FLASH Controller IP
ECC strength and spare size supported may be different among MTK NAND
FLASH Controller IPs.
This patch contains changes as following:
(1) add new struct mtk_nfc_caps to support different spare size.
(2) add new struct mtk_ecc_caps to support different ecc strength.
(3) remove ECC_CNFG_xBIT define, use a for loop to do ecc strength config.
(4) remove PAGEFMT_SPARE_ define, use a for loop to do spare format config.
(5) malloc ecc->eccdata buffer according to max ecc strength of this IP.
Signed-off-by: Xiaolei Li <xiaolei.li@mediatek.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
