[POWERPC] pasemi: Electra IDE/pata_platform glue
authorOlof Johansson <olof@lixom.net>
Sat, 12 May 2007 14:50:41 +0000 (00:50 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 25 Jun 2007 06:58:05 +0000 (16:58 +1000)
commit8fa336d889caa72637e0860f53fa40ef66dcceaf
tree49d7340e01512639d2e610c1630ecd124e4220c6
parent0c358e70762861f8d479f3fa8bec358c599ba04a
[POWERPC] pasemi: Electra IDE/pata_platform glue

Glue code to hook up the pata_platform on the PA Semi Electra eval board.
CFE sets up device tree entries for the IDE interface, with device type
'ide' and compatible field 'electra-ide'.

We unfortunately need to modify the resources before calling the generic
platform driver, since the device tree only has one register window in
it and the driver expects two.  Adding this as an of_platform driver
instead doesn't give us any benefit, it just adds one more layer of
register/probe functions.

Since CONFIG_PATA_PLATFORM depends on CONFIG_EMBEDDED, add that as a
default for PPC_PASEMI.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pasemi/Kconfig
arch/powerpc/platforms/pasemi/Makefile
arch/powerpc/platforms/pasemi/electra_ide.c [new file with mode: 0644]