summaryrefslogtreecommitdiffstats
path: root/include/flash.h
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2016-07-27 15:25:28 +0930
committerJoel Stanley <joel@jms.id.au>2016-07-27 15:44:01 +0930
commitff0c513c85b89c4a1ff602f3bc54e4570d176e40 (patch)
treea64844afb7fab6d84bfb8dfec49b47b957c4b4eb /include/flash.h
parenta83e1bc06bef1dc155b7f4d9f96f2bfc315d4dd7 (diff)
downloadtalos-obmc-uboot-ff0c513c85b89c4a1ff602f3bc54e4570d176e40.tar.gz
talos-obmc-uboot-ff0c513c85b89c4a1ff602f3bc54e4570d176e40.zip
aspeed: hacks made to common code
These are additions made by the Aspeed SDK outside of the arch directory. They need to be cleaned up and/or removed. Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'include/flash.h')
-rw-r--r--include/flash.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/flash.h b/include/flash.h
index 2a5e13a13d..6041bcb22e 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -47,6 +47,23 @@ typedef struct {
#ifdef CONFIG_MTD
struct mtd_info *mtd;
#endif
+#ifdef CONFIG_AST_SPI_NOR
+ ulong reg_base;
+ ulong readcmd;
+ ulong dualport;
+ ulong dummybyte;
+ ulong tCK_Write;
+ ulong tCK_Erase;
+ ulong tCK_Read;
+ ulong CE;
+ ulong sysspi;
+ ulong iomode;
+ ulong address32;
+ ulong quadport;
+ ulong dummydata;
+ ulong buffersize;
+ ulong specificspi;
+#endif
} flash_info_t;
extern flash_info_t flash_info[]; /* info for FLASH chips */
@@ -98,6 +115,10 @@ extern int flash_write (char *, ulong, ulong);
extern flash_info_t *addr2info (ulong);
extern int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt);
+#ifdef CONFIG_AST_SPI_NOR
+extern void memmove_dma(void * dest,const void *src,size_t count);
+#endif
+
/* drivers/mtd/cfi_mtd.c */
#ifdef CONFIG_FLASH_CFI_MTD
extern int cfi_mtd_init(void);
OpenPOWER on IntegriCloud