86xx: mpc8610_hpcd: add support for ULI RTC
Subsystems (2)
PATCH 2/2 86xx: mpc8610_hpcd: add support for ULI RTC
The ULI "Super South Bridge" contains ISA bridge to the legacy devices, such as Super IO mouse/keyboard/floppy disk controllers, parallel port, i8259 interrupt controller and so on.
On the MPC8610HPCD, i8259 seems to be disabled (mpc8610_hpcd.c confirms this), and other peripherals are not traced out. So we use only RTC.
This patch also adds ULI quirk to make RTC actually work (this quirk differs a bit from the one in the fsl_uli1575.c).
--- arch/powerpc/boot/dts/mpc8610_hpcd.dts | 14 +++++++ arch/powerpc/configs/mpc8610_hpcd_defconfig | 51 ++++++++++++++++++++++++-- arch/powerpc/platforms/86xx/mpc8610_hpcd.c | 27 ++++++++++++++ 3 files changed, 88 insertions(+), 4 deletions(-)
arch/powerpc/boot/dts/mpc8610_hpcd.dts +14 -0
@@ -386,6 +386,20 @@ 0x01000000 0x0 0x00000000 0x01000000 0x0 0x00000000 0x0 0x00100000>; + + isa@1e { + device_type = "isa"; + #size-cells = <1>; + #address-cells = <2>; + reg = <0xf000 0 0 0 0>; + ranges = <1 0 0x01000000 0 0 + 0x00001000>; + + rtc@70 { + compatible = "pnpPNP,b00"; + reg = <1 0x70 2>; + }; + }; }; }; };
arch/powerpc/configs/mpc8610_hpcd_defconfig +47 -4
66 lines not on this page · raw message
arch/powerpc/platforms/86xx/mpc8610_hpcd.c +27 -0
@@ -275,6 +275,32 @@ static void __devinit quirk_uli5229(struct pci_dev *dev)pci_write_config_byte (dev,0x4b , c); } +/* We have to do a dummy read on the P2P for the RTC to work, WTF */ +static void __devinit final_uli5249 (struct pci_dev *dev) +{ +int i; +u8 __iomem *dummy; +struct pci_bus *bus = dev->bus; + +for (i =0 ; i <PCI_BUS_NUM_RESOURCES ; i++) { +if ((bus->resource[i]) && + (bus->resource[i]->flags &IORESOURCE_MEM )) { +/* +* fsl_uli1575.c reads at ->start, but I got the RTC +* working only when reading at 0xa0100000-0xafffffff, +* i.e. anything but outside of behind-the-bridge +* devices' assigned regions. Weird, but works here. +*/ + dummy =ioremap (bus->resource[i]->end -3 ,4 ); +if (dummy) { +in_8 (dummy); +iounmap (dummy); + } +break ; + } + } +} +/* * SATA interrupt pin bug fix * There's a chip bug for 5288, The interrupt pin should be 2,
@@ -307,6 +333,7 @@ static void __devinit final_uli5288(struct pci_dev *dev)DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_AL ,0x1575 , quirk_uli1575);DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_AL ,0x5288 , quirk_uli5288);DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_AL ,0x5229 , quirk_uli5229); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_AL ,0x5249 , final_uli5249);DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_AL ,0x5288 , final_uli5288);#endif /* CONFIG_PCI */
Signature · 1 line
1.5.5.1
Quoted 10 lines · Anton Vorontsov
The ULI "Super South Bridge" contains ISA bridge to the legacy devices, such as Super IO mouse/keyboard/floppy disk controllers, parallel port, i8259 interrupt controller and so on.
On the MPC8610HPCD, i8259 seems to be disabled (
mpc8610_hpcd.cconfirms this), and other peripherals are not traced out. So we use only RTC.This patch also adds ULI quirk to make RTC actually work (this quirk differs a bit from the one in the
fsl_uli1575.c).
Can we just one quick for both?
- k
=20
Quoted 21 lines
-----Original Message-----
From: [email protected]=20 [mailto:[email protected] g] On Behalf Of Kumar Gala
Sent: Tuesday, May 06, 2008 3:12 AM
To: Anton Vorontsov
Cc: [email protected]
Subject: Re: [PATCH 2/2] [POWERPC] 86xx:mpc8610_hpcd: add=20 support for ULI RTC
=20
=20
On May 5, 2008, at 1:56 PM, Anton Vorontsov wrote:
=20Quoted 8 lines
The ULI "Super South Bridge" contains ISA bridge to the legacy=20 devices, such as Super IO mouse/keyboard/floppy disk controllers,=20 parallel port, i8259 interrupt controller and so on.
On the MPC8610HPCD, i8259 seems to be disabled (mpc8610_hpcd.c=20 confirms this), and other peripherals are not traced out. So we use only RTC.
Quoted 5 lines
Quoted 1 line
This patch also adds ULI quirk to make RTC actually work=20
(this quirk=20
Quoted 1 line
differs a bit from the one in the
fsl_uli1575.c).=20
Can we just one quick for both?
mpc8610HPCD board did not use the quirks in fsl_uli1575.c=20
Jason