mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
ssb: add struct for serial flash
This data allow writing for example MTD driver. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
4a71053ec5
commit
e570bd0472
2 changed files with 22 additions and 0 deletions
|
@ -20,6 +20,18 @@ struct ssb_pflash {
|
|||
u32 window_size;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_SSB_SFLASH
|
||||
struct ssb_sflash {
|
||||
bool present;
|
||||
u32 window;
|
||||
u32 blocksize;
|
||||
u16 numblocks;
|
||||
u32 size;
|
||||
|
||||
void *priv;
|
||||
};
|
||||
#endif
|
||||
|
||||
struct ssb_mipscore {
|
||||
struct ssb_device *dev;
|
||||
|
||||
|
@ -27,6 +39,9 @@ struct ssb_mipscore {
|
|||
struct ssb_serial_port serial_ports[4];
|
||||
|
||||
struct ssb_pflash pflash;
|
||||
#ifdef CONFIG_SSB_SFLASH
|
||||
struct ssb_sflash sflash;
|
||||
#endif
|
||||
};
|
||||
|
||||
extern void ssb_mipscore_init(struct ssb_mipscore *mcore);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue