Files
i2som-imx-uboot/include/otf_update.h
SteveChen 5e56f8119d i2SOM: add write bootstream to NAND flash
The u-boot of i.MX6ULL chip needs header data.The update_nand.c will
add header data when writing into NAND flash.
These code reference from Digi ccimx6ul.
2018-03-25 15:25:59 +08:00

27 lines
853 B
C

/*
* Copyright (C) 2014 by Digi International Inc.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version2 as published by
* the Free Software Foundation.
*/
#ifndef __OTF_UPDATE_H
#define __OTF_UPDATE_H
/* OTF flags */
#define OTF_FLAG_FLUSH (1 << 0) /* flag to write last chunk */
#define OTF_FLAG_INIT (1 << 1) /* flag to write first chunk */
typedef struct otf_data {
unsigned int loadaddr; /* address in RAM to load data to */
unsigned int offset; /* offset in media to write data to */
unsigned char *buf; /* buffer with data to write */
unsigned int len; /* length of chunk to write */
disk_partition_t *part; /* partition data */
unsigned int flags; /* on-the-fly flags */
}otf_data_t;
#endif /* __OTF_UPDATE_H */