mtd: RBTX4939: add MTD support
Subsystems (2)
PATCH 5/15 mtd: RBTX4939: add MTD support
From: Atsushi Nemoto <[email protected]>
Add platform support for NOR flash chips on RBTX4939 board. This board has complex flash mappings, controlled by its DIPSW setting.
[[email protected]: Use min_t]
Signed-off-by Atsushi Nemoto <[email protected]>
Cc David Woodhouse <[email protected]>
Cc Ralf Baechle <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/mips/include/asm/txx9/rbtx4939.h | 9 + arch/mips/txx9/rbtx4939/setup.c | 157 ++++++++++++++++++++++++ 2 files changed, 166 insertions(+)
arch/mips/include/asm/txx9/rbtx4939.h renamed from arch/mips/include/asm/txx9/rbtx4939.h~mtd-rbtx4939-add-mtd-support +9 -0
@@ -130,4 +130,13 @@void rbtx4939_prom_init (void );void rbtx4939_irq_setup (void ); +struct mtd_partition ; +struct map_info ; +struct rbtx4939_flash_data { +unsigned int width; +unsigned int nr_parts; +struct mtd_partition *parts; +void (*map_init)(struct map_info *map); +}; +#endif /* __ASM_TXX9_RBTX4939_H */
arch/mips/txx9/rbtx4939/setup.c renamed from arch/mips/txx9/rbtx4939/setup.c~mtd-rbtx4939-add-mtd-support +157 -0
175 lines not on this page · raw message
_