Files
Jon Lin 9c5560bfce mtd: nand: add BBT using flash management strategy
Support storing ram BBT into flash.

Change-Id: I42c2e91779e5385d959a4ce3807006074ae17483
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-09-15 10:45:22 +08:00

27 lines
524 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2021 Rockchip Electronics Co. Ltd.
*
*/
#ifndef __BBT_STORE_H
#define __BBT_STORE_H
#include <linux/mtd/nand.h>
#ifdef CONFIG_MTD_NAND_BBT_USING_FLASH
int nanddev_scan_bbt_in_flash(struct nand_device *nand);
int nanddev_bbt_in_flash_update(struct nand_device *nand);
#else
static inline int nanddev_scan_bbt_in_flash(struct nand_device *nand)
{
return 0;
}
static inline int nanddev_bbt_in_flash_update(struct nand_device *nand)
{
return 0;
}
#endif
#endif