Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b61e69e authored by Tim Yamin's avatar Tim Yamin Committed by Grant Likely
Browse files

powerpc/mpc5200: Add MDMA/UDMA support to MPC5200 ATA driver



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: default avatarTim Yamin <plasm@roo.me.uk>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent aaab5e83
Loading
Loading
Loading
Loading
+5 −12
Original line number Original line Diff line number Diff line
@@ -20,18 +20,11 @@ struct bcom_ata_bd {
	u32	dst_pa;
	u32	dst_pa;
};
};


extern struct bcom_task *
extern struct bcom_task * bcom_ata_init(int queue_len, int maxbufsize);
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
extern void bcom_ata_reset_bd(struct bcom_task *tsk);
bcom_ata_rx_prepare(struct bcom_task *tsk);
extern void bcom_ata_release(struct bcom_task *tsk);

extern void
bcom_ata_tx_prepare(struct bcom_task *tsk);

extern void
bcom_ata_reset_bd(struct bcom_task *tsk);



#endif /* __BESTCOMM_ATA_H__ */
#endif /* __BESTCOMM_ATA_H__ */
+2 −1
Original line number Original line Diff line number Diff line
@@ -456,7 +456,8 @@ config PATA_MARVELL


config PATA_MPC52xx
config PATA_MPC52xx
	tristate "Freescale MPC52xx SoC internal IDE"
	tristate "Freescale MPC52xx SoC internal IDE"
	depends on PPC_MPC52xx
	depends on PPC_MPC52xx && PPC_BESTCOMM
	select PPC_BESTCOMM_ATA
	help
	help
	  This option enables support for integrated IDE controller
	  This option enables support for integrated IDE controller
	  of the Freescale MPC52xx SoC.
	  of the Freescale MPC52xx SoC.
+481 −65

File changed.

Preview size limit exceeded, changes collapsed.