projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARM: highbank: Add boot counter support
[oweals/u-boot.git]
/
include
/
spi_flash.h
diff --git
a/include/spi_flash.h
b/include/spi_flash.h
index 1f8ba2987ef00f10346b15f7cbfdb47fc9798567..9da90624f23d665fc58c95e37da02096b1adde07 100644
(file)
--- a/
include/spi_flash.h
+++ b/
include/spi_flash.h
@@
-25,18
+25,19
@@
#include <spi.h>
#include <linux/types.h>
#include <spi.h>
#include <linux/types.h>
-
-struct spi_flash_region {
- unsigned int count;
- unsigned int size;
-};
+#include <linux/compiler.h>
struct spi_flash {
struct spi_slave *spi;
const char *name;
struct spi_flash {
struct spi_slave *spi;
const char *name;
+ /* Total flash size */
u32 size;
u32 size;
+ /* Write (page) size */
+ u32 page_size;
+ /* Erase (sector) size */
+ u32 sector_size;
int (*read)(struct spi_flash *flash, u32 offset,
size_t len, void *buf);
int (*read)(struct spi_flash *flash, u32 offset,
size_t len, void *buf);
@@
-68,4
+69,6
@@
static inline int spi_flash_erase(struct spi_flash *flash, u32 offset,
return flash->erase(flash, offset, len);
}
return flash->erase(flash, offset, len);
}
+void spi_boot(void) __noreturn;
+
#endif /* _SPI_FLASH_H_ */
#endif /* _SPI_FLASH_H_ */