mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
ssb: move parallel flash config into an own struct
This is a preparing step for adding serial flash support. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
e5c9d7c075
commit
54c974984e
4 changed files with 19 additions and 16 deletions
|
@ -13,6 +13,11 @@ struct ssb_serial_port {
|
|||
unsigned int reg_shift;
|
||||
};
|
||||
|
||||
struct ssb_pflash {
|
||||
u8 buswidth;
|
||||
u32 window;
|
||||
u32 window_size;
|
||||
};
|
||||
|
||||
struct ssb_mipscore {
|
||||
struct ssb_device *dev;
|
||||
|
@ -20,9 +25,7 @@ struct ssb_mipscore {
|
|||
int nr_serial_ports;
|
||||
struct ssb_serial_port serial_ports[4];
|
||||
|
||||
u8 flash_buswidth;
|
||||
u32 flash_window;
|
||||
u32 flash_window_size;
|
||||
struct ssb_pflash pflash;
|
||||
};
|
||||
|
||||
extern void ssb_mipscore_init(struct ssb_mipscore *mcore);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue