Skip to contentSkip to conversation

IDE support for the MPC5200

RFC New Sylvain Munaut 1 participant 1 message Feb 5, 2006

lore
Share & tools
lore
#0 lore raw

RFC 1/1 IDE support for the MPC5200

Hello,

Here is a patch that adds PIO mode IDE support for the MPC5200. It's a rewrite based on the 2.4 code by Benjamin Herrenschmidt and a patch sent by Bernard Khun from metrowerks.

Obviously the patch works for me (I wouldn't post it if it didn't ...), but I'd like people to test it and/or comment the code (as my experience with the ide subsystem is limited I might have missed an obvious mistake).

The patch is here for test & review only. To test, you should fetch the 'ide' head of my git repository directly as the patch depends on some trivial fixes that are not in vanilla right now (I intend to push those along the IDE patch once reviewed).

To fetch: (just fetch, cloning the whole tree might take a while)
http://gitbits.246tnt.com/gitbits/linux-2.6-mpc52xx.git#ide

To view online:
http://gitbits.246tNt.com/gitweb.cgi?p=linux-2.6-mpc52xx.git;a=shortlog;h=ide

Sylvain

drivers/ide/Kconfig +4 -0
index 1c81174..e391cee 100644
@@ -969,6 +969,10 @@ config IDE_EXT_DIRECT
 
 endchoice
 
+config BLK_DEV_MPC52xx_IDE
+	tristate "MPC52xx Builtin IDE support"
+	depends on PPC_MPC52xx && IDE=y
+
 # no isa -> no vlb
 config IDE_CHIPSETS
 	bool "Other IDE chipset support"
drivers/ide/Makefile +1 -0
index 569fae7..fcca1f3 100644
@@ -34,6 +34,7 @@ ide-core-$(CONFIG_BLK_DEV_MAC_IDE)	+= le
 ide-core-$(CONFIG_BLK_DEV_Q40IDE)	+= legacy/q40ide.o
 
 # built-in only drivers from ppc/
+ide-core-$(CONFIG_BLK_DEV_MPC52xx_IDE)	+= ppc/mpc52xx_ide.o ppc/mpc52xx_ide_iops.o
 ide-core-$(CONFIG_BLK_DEV_MPC8xx_IDE)	+= ppc/mpc8xx.o
 ide-core-$(CONFIG_BLK_DEV_IDE_PMAC)	+= ppc/pmac.o
 
drivers/ide/ppc/mpc52xx_ide.c new file +420 -0

420 lines not on this page · raw message

drivers/ide/ppc/mpc52xx_ide.h new file +129 -0

129 lines not on this page · raw message

drivers/ide/ppc/mpc52xx_ide_iops.c new file +151 -0

151 lines not on this page · raw message

include/linux/ide.h +1 -1
index 110b3cf..4cc9608 100644
@@ -203,7 +203,7 @@ typedef enum {	ide_unknown,	ide_generic,
 		ide_rz1000,	ide_trm290,
 		ide_cmd646,	ide_cy82c693,	ide_4drives,
 		ide_pmac,	ide_etrax100,	ide_acorn,
-		ide_au1xxx, ide_forced
+		ide_au1xxx,	ide_mpc52xx,	ide_forced
 } hwif_chipset_t;
 
 /*