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

Commit 88358ab0 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt
Browse files

libata/drivers: Add driver for Apple "MacIO" IDE controller



This is a libata driver for the "macio" IDE controller used on most Apple
PowerMac and PowerBooks. It's a libata equivalent of drivers/ide/ppc/pmac.c

It supports all the features of its predecessor, including mediabay hotplug
and suspend/resume. It should also support module load/unload.

The timing calculations have been simplified to use pre-calculated tables
compared to drivers/ide/pmac.c and it uses the new mediabay interface
provided by a previous patch.

Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: default avatarTejun Heo <tj@kernel.org>
parent f0353813
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -781,5 +781,15 @@ config PATA_BF54X

	  If unsure, say N.

config PATA_MACIO
	tristate "Apple PowerMac/PowerBook internal 'MacIO' IDE"
	depends on PPC_PMAC
	help
	  Most IDE capable PowerMacs have IDE busses driven by a variant
          of this controller which is part of the Apple chipset used on
          most PowerMac models. Some models have multiple busses using
          different chipsets, though generally, MacIO is one of them.


endif # ATA_SFF
endif # ATA
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ obj-$(CONFIG_SATA_MV) += sata_mv.o
obj-$(CONFIG_SATA_INIC162X)	+= sata_inic162x.o
obj-$(CONFIG_PDC_ADMA)		+= pdc_adma.o
obj-$(CONFIG_SATA_FSL)		+= sata_fsl.o
obj-$(CONFIG_PATA_MACIO)	+= pata_macio.o

obj-$(CONFIG_PATA_ALI)		+= pata_ali.o
obj-$(CONFIG_PATA_AMD)		+= pata_amd.o
+1427 −0

File added.

Preview size limit exceeded, changes collapsed.