blob: 10e5c2433fe30d3b1d34600fccedb7319a357976
1 | /* |
2 | * Copyright (C) 2017 Amlogic, Inc. All rights reserved. |
3 | * |
4 | * This program is free software; you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License as published by |
6 | * the Free Software Foundation; either version 2 of the License, or |
7 | * (at your option) any later version. |
8 | * |
9 | * This program is distributed in the hope that it will be useful, but WITHOUT |
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
12 | * more details. |
13 | * |
14 | */ |
15 | #ifndef __AML_NAND_H__ |
16 | #define __AML_NAND_H__ |
17 | |
18 | int amlnf_dtb_save(u8 *buf, unsigned int len); |
19 | int amlnf_dtb_erase(void); |
20 | int get_boot_num(struct mtd_info *mtd, size_t rwsize); |
21 | |
22 | #define RESERVED_BLOCK_NUM 48 |
23 | |
24 | #endif/* __AML_NAND_H__ */ |
25 |