flash related cleanups
[openwrt-10.03/.git] / target / linux / brcm47xx-2.6 / files / include / linux / ssb / ssb_driver_mips.h
1 #ifndef LINUX_SSB_MIPSCORE_H_
2 #define LINUX_SSB_MIPSCORE_H_
3
4 #ifdef __KERNEL__
5
6 #ifdef CONFIG_BCM947XX
7
8 struct ssb_device;
9
10 struct ssb_serial_port {
11         void *regs;
12         unsigned long clockspeed;
13         unsigned int irq;
14         unsigned int baud_base;
15         unsigned int reg_shift;
16 };
17
18
19 struct ssb_mipscore {
20         struct ssb_device *dev;
21
22         int nr_serial_ports;
23         struct ssb_serial_port serial_ports[4];
24
25         int flash_buswidth;
26         u32 flash_window;
27         u32 flash_window_size;
28 };
29
30 extern void ssb_mipscore_init(struct ssb_mipscore *mcore);
31 extern u32 ssb_cpu_clock(struct ssb_mipscore *mcore);
32 extern unsigned int ssb_mips_irq(struct ssb_device *dev);
33
34
35 #else /* CONFIG_BCM947XX */
36
37 struct ssb_mipscore {
38 };
39
40 static inline
41 void ssb_mipscore_init(struct ssb_mipscore *mcore)
42 {
43 }
44
45 #endif /* CONFIG_BCM947XX */
46
47 #endif /* __KERNEL__ */
48 #endif /* LINUX_SSB_MIPSCORE_H_ */