diff options
author | Justin Waters <justin.waters@timesys.com> | 2009-06-17 10:09:00 -0400 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2009-06-17 10:09:00 -0400 |
commit | 4e35d9f7af6cb5d553511d6064f224885fd905f4 (patch) | |
tree | 7ae0aec6dffc515af7c84c1d25f9c4ec6d0bc9f6 /include/flash.h | |
parent | 180a90abdae72587c0f679edf8991455e559440d (diff) |
Add omapl137 support1.3.3-omapl137-evm-200906171409
Diffstat (limited to 'include/flash.h')
-rw-r--r-- | include/flash.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/flash.h b/include/flash.h index 2ed1e20fd2..bd92e59ef5 100644 --- a/include/flash.h +++ b/include/flash.h @@ -26,7 +26,7 @@ #ifndef CFG_NO_FLASH /*----------------------------------------------------------------------- - * FLASH Info: contains chip specific data, per FLASH bank + * FLASH Info: contains chip/board specific data, per FLASH bank */ typedef struct { @@ -56,8 +56,21 @@ typedef struct { ulong addr_unlock2; /* unlock address 2 for AMD flash roms */ const char *name; /* human-readable name */ #endif + + /* board specific write routines */ + void (*write8)(u8 value, void *addr); + void (*write16)(u16 value, void *addr); + void (*write32)(u32 value, void *addr); + void (*write64)(u64 value, void *addr); + + /* board specific read routines */ + u8 (*read8)(void *addr); + u16 (*read16)(void *addr); + u32 (*read32)(void *addr); + u64 (*read64)(void *addr); } flash_info_t; + /* * Values for the width of the port */ |