diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2008-08-19 09:55:11 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-11 11:18:42 -0400 |
commit | 51f607c76e1e7bd089dcad97b6b0a58649be06a3 (patch) | |
tree | bcf9389a1e3bcd347d7c560163d2c014d804a162 /include/asm-mips/txx9/tx4927.h | |
parent | c7b95bcb38ea492fd025008ef99501a2b90aa237 (diff) |
MIPS: TXx9: Add mtd support
Add helper routines to register physmap-flash platform devices for NOR
flashes.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/txx9/tx4927.h')
-rw-r--r-- | include/asm-mips/txx9/tx4927.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-mips/txx9/tx4927.h b/include/asm-mips/txx9/tx4927.h index 195f6515db9a..36a9241b0cac 100644 --- a/include/asm-mips/txx9/tx4927.h +++ b/include/asm-mips/txx9/tx4927.h | |||
@@ -196,6 +196,8 @@ struct tx4927_ccfg_reg { | |||
196 | #define TX4927_EBUSC_BA(ch) ((TX4927_EBUSC_CR(ch) >> 48) << 20) | 196 | #define TX4927_EBUSC_BA(ch) ((TX4927_EBUSC_CR(ch) >> 48) << 20) |
197 | #define TX4927_EBUSC_SIZE(ch) \ | 197 | #define TX4927_EBUSC_SIZE(ch) \ |
198 | (0x00100000 << ((unsigned long)(TX4927_EBUSC_CR(ch) >> 8) & 0xf)) | 198 | (0x00100000 << ((unsigned long)(TX4927_EBUSC_CR(ch) >> 8) & 0xf)) |
199 | #define TX4927_EBUSC_WIDTH(ch) \ | ||
200 | (64 >> ((__u32)(TX4927_EBUSC_CR(ch) >> 20) & 0x3)) | ||
199 | 201 | ||
200 | /* utilities */ | 202 | /* utilities */ |
201 | static inline void txx9_clear64(__u64 __iomem *adr, __u64 bits) | 203 | static inline void txx9_clear64(__u64 __iomem *adr, __u64 bits) |
@@ -251,5 +253,6 @@ int tx4927_report_pciclk(void); | |||
251 | int tx4927_pciclk66_setup(void); | 253 | int tx4927_pciclk66_setup(void); |
252 | void tx4927_setup_pcierr_irq(void); | 254 | void tx4927_setup_pcierr_irq(void); |
253 | void tx4927_irq_init(void); | 255 | void tx4927_irq_init(void); |
256 | void tx4927_mtd_init(int ch); | ||
254 | 257 | ||
255 | #endif /* __ASM_TXX9_TX4927_H */ | 258 | #endif /* __ASM_TXX9_TX4927_H */ |