Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81260
b: refs/heads/master
c: 9cd55be
h: refs/heads/master
v: v3
  • Loading branch information
Olof Johansson committed Jan 15, 2008
1 parent f183e8d commit 1990049
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 114 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 61f7162117d4767875825abf2f6ed1eeebbcceed
refs/heads/master: 9cd55be4d22376893d2818ce3c0e5706a3d74121
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/configs/pasemi_defconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.24-rc6
# Fri Dec 28 11:01:53 2007
# Tue Jan 15 10:26:10 2008
#
CONFIG_PPC64=y

Expand Down Expand Up @@ -152,7 +152,6 @@ CONFIG_PPC_PASEMI=y
CONFIG_PPC_PASEMI_IOMMU=y
# CONFIG_PPC_PASEMI_IOMMU_DMA_FORCE is not set
CONFIG_PPC_PASEMI_MDIO=y
CONFIG_ELECTRA_IDE=y
# CONFIG_PPC_CELLEB is not set
# CONFIG_PPC_PS3 is not set
# CONFIG_PPC_CELL is not set
Expand Down Expand Up @@ -663,6 +662,7 @@ CONFIG_PATA_PCMCIA=y
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set
CONFIG_PATA_PLATFORM=y
CONFIG_PATA_OF_PLATFORM=y
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=y
Expand Down
9 changes: 0 additions & 9 deletions trunk/arch/powerpc/platforms/pasemi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,4 @@ config PPC_PASEMI_MDIO
help
Driver for MDIO via GPIO on PWRficient platforms

config ELECTRA_IDE
tristate "Electra IDE driver"
default y
depends on PPC_PASEMI && ATA
select PATA_PLATFORM
help
This includes driver support for the Electra on-board IDE
interface.

endmenu
1 change: 0 additions & 1 deletion trunk/arch/powerpc/platforms/pasemi/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
obj-y += setup.o pci.o time.o idle.o powersave.o iommu.o
obj-$(CONFIG_PPC_PASEMI_MDIO) += gpio_mdio.o
obj-$(CONFIG_ELECTRA_IDE) += electra_ide.o
obj-$(CONFIG_PPC_PASEMI_CPUFREQ) += cpufreq.o
96 changes: 0 additions & 96 deletions trunk/arch/powerpc/platforms/pasemi/electra_ide.c

This file was deleted.

20 changes: 15 additions & 5 deletions trunk/drivers/ata/pata_of_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,20 @@ static int __devinit pata_of_platform_probe(struct of_device *ofdev,
return -EINVAL;
}

ret = of_address_to_resource(dn, 1, &ctl_res);
if (ret) {
dev_err(&ofdev->dev, "can't get CTL address from "
"device tree\n");
return -EINVAL;
if (of_device_is_compatible(dn, "electra-ide")) {
/* Altstatus is really at offset 0x3f6 from the primary window
* on electra-ide. Adjust ctl_res and io_res accordingly.
*/
ctl_res = io_res;
ctl_res.start = ctl_res.start+0x3f6;
io_res.end = ctl_res.start-1;
} else {
ret = of_address_to_resource(dn, 1, &ctl_res);
if (ret) {
dev_err(&ofdev->dev, "can't get CTL address from "
"device tree\n");
return -EINVAL;
}
}

ret = of_irq_to_resource(dn, 0, &irq_res);
Expand Down Expand Up @@ -76,6 +85,7 @@ static int __devexit pata_of_platform_remove(struct of_device *ofdev)

static struct of_device_id pata_of_platform_match[] = {
{ .compatible = "ata-generic", },
{ .compatible = "electra-ide", },
{},
};
MODULE_DEVICE_TABLE(of, pata_of_platform_match);
Expand Down

0 comments on commit 1990049

Please sign in to comment.