Skip to contentSkip to conversation

ata: Add support for the MPC52xx ATA controller using libata

PATCH In review Sylvain Munaut 3 participants 7 messages Dec 4, 2006 – Dec 11, 2006 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ata: Add support for the MPC52xx ATA controller using libata

This patch adds libata support for the Freescale MPC5200 IDE controller.

---
Hello Jeff,

This patch has been posted a few weeks ago and didn't receive major critics so, If it's ok by you I'd like to see it merged for 2.6.20.

In the mean time it has been tested on other platforms like lite5200B and Efika and reported to work fine.

Sylvain

---
 drivers/ata/Kconfig        |    9 +
 drivers/ata/Makefile       |    1 
 drivers/ata/pata_mpc52xx.c |  510 ++++++++++++++++++++++++++++++++++++++++++++
 drivers/ata/pata_mpc52xx.h |  107 +++++++++
 4 files changed, 627 insertions(+), 0 deletions(-)
drivers/ata/Kconfig +9 -0
index 03f6338..be01ddf 100644
@@ -328,6 +328,15 @@ config PATA_TRIFLEX
 
 	  If unsure, say N.
 
+config PATA_MPC52xx
+	tristate "Freescale MPC52xx SoC internal IDE"
+	depends on PPC_MPC52xx
+	help
+	  This option enables support for integrated IDE controller
+	  of the Freescale MPC52xx SoC.
+
+	  If unsure, say N.
+
 config PATA_MPIIX
 	tristate "Intel PATA MPIIX support"
 	depends on PCI
drivers/ata/Makefile +1 -0
index 72243a6..e3a741c 100644
@@ -38,6 +38,7 @@ obj-$(CONFIG_PATA_NETCELL)	+= pata_netce
 obj-$(CONFIG_PATA_NS87410)	+= pata_ns87410.o
 obj-$(CONFIG_PATA_OPTI)		+= pata_opti.o
 obj-$(CONFIG_PATA_OPTIDMA)	+= pata_optidma.o
+obj-$(CONFIG_PATA_MPC52xx)	+= pata_mpc52xx.o
 obj-$(CONFIG_PATA_MPIIX)	+= pata_mpiix.o
 obj-$(CONFIG_PATA_OLDPIIX)	+= pata_oldpiix.o
 obj-$(CONFIG_PATA_PCMCIA)	+= pata_pcmcia.o
drivers/ata/pata_mpc52xx.c new file +510 -0

510 lines not on this page · raw message

drivers/ata/pata_mpc52xx.h new file +107 -0

107 lines not on this page · raw message

Signature · 1 line
1.4.2
Acked-by Alan Cox on v1 1/1
#1 lore raw
Quoted 2 lines · On Mon, 04 Dec 2006 09:15:10 +0100 Sylvain Munaut <[email protected]> wrote:

This patch adds libata support for the Freescale MPC5200 IDE controller.

nit timings to PIO0 */
urce(op->node, 0, &res_mem);

Quoted 1 line
#3 lore raw

PATCH 1/1 ata: Add support for the MPC52xx ATA controller using libata

In reply to Sylvain Munaut

This patch adds initial libata support for the Freescale MPC5200 integrated IDE controller.

---

Sorry about the previous patch, I didn't think of using #upstream as a base.

---
 drivers/ata/Kconfig        |    9 +
 drivers/ata/Makefile       |    1 
 drivers/ata/pata_mpc52xx.c |  510 ++++++++++++++++++++++++++++++++++++++++++++
 drivers/ata/pata_mpc52xx.h |  107 +++++++++
 4 files changed, 627 insertions(+), 0 deletions(-)
drivers/ata/Kconfig +9 -0
index 984ab28..ec7c271 100644
@@ -337,6 +337,15 @@ config PATA_MARVELL
 
 	  If unsure, say N.
 
+config PATA_MPC52xx
+	tristate "Freescale MPC52xx SoC internal IDE"
+	depends on PPC_MPC52xx
+	help
+	  This option enables support for integrated IDE controller
+	  of the Freescale MPC52xx SoC.
+
+	  If unsure, say N.
+
 config PATA_MPIIX
 	tristate "Intel PATA MPIIX support"
 	depends on PCI
drivers/ata/Makefile +1 -0
index bc3d81a..3081e1f 100644
@@ -38,6 +38,7 @@ obj-$(CONFIG_PATA_NETCELL)	+= pata_netce
 obj-$(CONFIG_PATA_NS87410)	+= pata_ns87410.o
 obj-$(CONFIG_PATA_OPTI)		+= pata_opti.o
 obj-$(CONFIG_PATA_OPTIDMA)	+= pata_optidma.o
+obj-$(CONFIG_PATA_MPC52xx)	+= pata_mpc52xx.o
 obj-$(CONFIG_PATA_MARVELL)	+= pata_marvell.o
 obj-$(CONFIG_PATA_MPIIX)	+= pata_mpiix.o
 obj-$(CONFIG_PATA_OLDPIIX)	+= pata_oldpiix.o
drivers/ata/pata_mpc52xx.c new file +510 -0

510 lines not on this page · raw message

drivers/ata/pata_mpc52xx.h new file +107 -0

107 lines not on this page · raw message

Signature · 1 line
1.4.2
#4 lore raw
Quoted 4 lines · Sylvain Munaut

This patch adds initial libata support for the Freescale MPC5200 integrated IDE controller.

ACK, with one final revision request: please kill the header, and just add that stuff to the top of the .c file.

Resend and I'll apply swiftly :)

#5 lore raw

PATCH 1/1 libata: Add support for the MPC52xx ATA controller

This patch adds initial libata support for the Freescale MPC5200 integrated IDE controller.

---
Hi Jeff,

There you go ;) Hopefully this one is the good one.

Sylvain

---
 drivers/ata/Kconfig        |    9 +
 drivers/ata/Makefile       |    1 
 drivers/ata/pata_mpc52xx.c |  563 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 573 insertions(+), 0 deletions(-)
drivers/ata/Kconfig +9 -0
index 984ab28..ec7c271 100644
@@ -337,6 +337,15 @@ config PATA_MARVELL
 
 	  If unsure, say N.
 
+config PATA_MPC52xx
+	tristate "Freescale MPC52xx SoC internal IDE"
+	depends on PPC_MPC52xx
+	help
+	  This option enables support for integrated IDE controller
+	  of the Freescale MPC52xx SoC.
+
+	  If unsure, say N.
+
 config PATA_MPIIX
 	tristate "Intel PATA MPIIX support"
 	depends on PCI
drivers/ata/Makefile +1 -0
index bc3d81a..3081e1f 100644
@@ -38,6 +38,7 @@ obj-$(CONFIG_PATA_NETCELL)	+= pata_netce
 obj-$(CONFIG_PATA_NS87410)	+= pata_ns87410.o
 obj-$(CONFIG_PATA_OPTI)		+= pata_opti.o
 obj-$(CONFIG_PATA_OPTIDMA)	+= pata_optidma.o
+obj-$(CONFIG_PATA_MPC52xx)	+= pata_mpc52xx.o
 obj-$(CONFIG_PATA_MARVELL)	+= pata_marvell.o
 obj-$(CONFIG_PATA_MPIIX)	+= pata_mpiix.o
 obj-$(CONFIG_PATA_OLDPIIX)	+= pata_oldpiix.o
drivers/ata/pata_mpc52xx.c new file +563 -0

563 lines not on this page · raw message

Signature · 1 line
1.4.2
Applied
#6 lore raw

Re: [PATCH] libata: Add support for the MPC52xx ATA controller

Quoted 8 lines · Sylvain Munaut

This patch adds initial libata support for the Freescale MPC5200 integrated IDE controller.

---
Hi Jeff,

There you go ;) Hopefully this one is the good one.

applied, thanks