Skip to content

Commit

Permalink
powerpc/mpc5200: Add MDMA/UDMA support to MPC5200 ATA driver
Browse files Browse the repository at this point in the history
This patch adds MDMA/UDMA support using BestComm for DMA on the MPC5200
platform.  Based heavily on previous work by Freescale (Bernard Kuhn,
John Rigby) and Domen Puncer.

With this patch, a SanDisk Extreme IV CF card gets read speeds of
approximately 26.70 MB/sec.

Signed-off-by: Tim Yamin <plasm@roo.me.uk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Tim Yamin authored and Grant Likely committed Dec 21, 2008
1 parent aaab5e8 commit 6b61e69
Show file tree
Hide file tree
Showing 3 changed files with 488 additions and 78 deletions.
17 changes: 5 additions & 12 deletions arch/powerpc/sysdev/bestcomm/ata.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,11 @@ struct bcom_ata_bd {
u32 dst_pa;
};

extern struct bcom_task *
bcom_ata_init(int queue_len, int maxbufsize);

extern void
bcom_ata_rx_prepare(struct bcom_task *tsk);

extern void
bcom_ata_tx_prepare(struct bcom_task *tsk);

extern void
bcom_ata_reset_bd(struct bcom_task *tsk);

extern struct bcom_task * bcom_ata_init(int queue_len, int maxbufsize);
extern void bcom_ata_rx_prepare(struct bcom_task *tsk);
extern void bcom_ata_tx_prepare(struct bcom_task *tsk);
extern void bcom_ata_reset_bd(struct bcom_task *tsk);
extern void bcom_ata_release(struct bcom_task *tsk);

#endif /* __BESTCOMM_ATA_H__ */

3 changes: 2 additions & 1 deletion drivers/ata/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ config PATA_MARVELL

config PATA_MPC52xx
tristate "Freescale MPC52xx SoC internal IDE"
depends on PPC_MPC52xx
depends on PPC_MPC52xx && PPC_BESTCOMM
select PPC_BESTCOMM_ATA
help
This option enables support for integrated IDE controller
of the Freescale MPC52xx SoC.
Expand Down
Loading

0 comments on commit 6b61e69

Please sign in to comment.