/*
 * (C) Copyright 2013-2016
* SPDX-License-Identifier:	GPL-2.0+
 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
 *
 */
#ifndef __PHY_BOOT__
#define __PHY_BOOT__

#include "nand_drv_cfg.h"

struct boot_physical_param {
	__u32 chip; /*chip no*/
	__u32 block; /* block no within chip*/
	__u32 page; /* apge no within block*/
	__u32 sectorbitmap; /*done't care*/
	void *mainbuf; /*data buf*/
	void *oobbuf; /*oob buf*/
};

extern __s32 PHY_SimpleErase(struct boot_physical_param *eraseop);
extern __s32 PHY_SimpleRead(struct boot_physical_param *readop);
extern __s32 PHY_SimpleWrite(struct boot_physical_param *writeop);
extern __s32 PHY_SimpleWrite_1K(struct boot_physical_param *writeop);
extern __s32 PHY_SimpleWrite_Seq(struct boot_physical_param *writeop);
extern __s32 PHY_SimpleRead_Seq(struct boot_physical_param *readop);
extern __s32 PHY_SimpleRead_1K(struct boot_physical_param *readop);
#endif
