]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commita465a95800ee2cd32f7d31a49f863f065cc0aebd
tree49d7340e01512639d2e610c1630ecd124e4220c6
parentf58c4b422802e8d4e5dca7ccb90cb403f35a1006
[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]