mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
0292be1b5c
PD#SWPL-140211 Problem: need update spinand info page. Solution: update new info page, for compatibility with A1 S1A C3. Verify: A1 S1A C3 Change-Id: I73ce561dc716aedd18ac2887af00fa912818794b Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
30 lines
617 B
C
30 lines
617 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __AML_PAGEINFO_H_
|
|
#define __AML_PAGEINFO_H_
|
|
#include <linux/mtd/mtd.h>
|
|
|
|
enum BL2_LAYOUT_VERS {
|
|
LAYOUT_VER0,
|
|
LAYOUT_VER1,
|
|
LAYOUT_VER2,
|
|
LAYOUT_VER3,
|
|
LAYOUT_VER_MAX,
|
|
};
|
|
|
|
enum PAGE_INFO_V {
|
|
PAGE_INFO_V1 = 1,
|
|
PAGE_INFO_V2,
|
|
PAGE_INFO_V3
|
|
};
|
|
|
|
int get_page_info_version(void);
|
|
int get_page_info_size(void);
|
|
int page_info_pre_init(u8 *boot_info, int version);
|
|
bool page_info_is_page(int page);
|
|
unsigned char *page_info_post_init(struct mtd_info *mtd, u8 cmd, u32 fip_size, u32 fip_copies);
|
|
#endif
|