linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] tqm85xx: enable PCMCIA bridge on ST85xx baseboards.
@ 2010-07-21 20:33 Dmitry Eremin-Solenikov
  2010-07-21 20:33 ` [PATCH 1/2] tqm85xx: update PCI interrupt-map attribute Dmitry Eremin-Solenikov
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Dmitry Eremin-Solenikov @ 2010-07-21 20:33 UTC (permalink / raw)
  To: linuxppc-dev

Baseboards for tqm85xx modules (STK85xx) bear TI PCI1520 PCMCIA controllers.
These two patches enables one to fully use this controller in Linux.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/2] tqm85xx: update PCI interrupt-map attribute
  2010-07-21 20:33 [PATCH 0/2] tqm85xx: enable PCMCIA bridge on ST85xx baseboards Dmitry Eremin-Solenikov
@ 2010-07-21 20:33 ` Dmitry Eremin-Solenikov
  2010-08-04 19:21   ` Kumar Gala
  2010-07-21 20:33 ` [PATCH 2/2] tqm85xx: add a quirk for ti1520 PCMCIA bridge Dmitry Eremin-Solenikov
  2010-07-30 12:33 ` [PATCH 0/2] tqm85xx: enable PCMCIA bridge on ST85xx baseboards Dmitry Eremin-Solenikov
  2 siblings, 1 reply; 7+ messages in thread
From: Dmitry Eremin-Solenikov @ 2010-07-21 20:33 UTC (permalink / raw)
  To: linuxppc-dev

Update PCI IRQ mapping on TQM85xx platforms: include INTC and INTD on PCI-X
slot and add INTA/INTB mapping for PCMCIA bridge.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 arch/powerpc/boot/dts/tqm8540.dts          |    9 ++++++++-
 arch/powerpc/boot/dts/tqm8541.dts          |    9 ++++++++-
 arch/powerpc/boot/dts/tqm8548-bigflash.dts |    9 ++++++++-
 arch/powerpc/boot/dts/tqm8548.dts          |    9 ++++++++-
 arch/powerpc/boot/dts/tqm8555.dts          |    9 ++++++++-
 arch/powerpc/boot/dts/tqm8560.dts          |    9 ++++++++-
 6 files changed, 48 insertions(+), 6 deletions(-)

diff --git a/arch/powerpc/boot/dts/tqm8540.dts b/arch/powerpc/boot/dts/tqm8540.dts
index 7161b93..b5c0940 100644
--- a/arch/powerpc/boot/dts/tqm8540.dts
+++ b/arch/powerpc/boot/dts/tqm8540.dts
@@ -290,7 +290,14 @@
 		interrupt-map = <
 				/* IDSEL 28 */
 				 0xe000 0 0 1 &mpic 2 1
-				 0xe000 0 0 2 &mpic 3 1>;
+				 0xe000 0 0 2 &mpic 3 1
+				 0xe000 0 0 3 &mpic 6 1
+				 0xe000 0 0 4 &mpic 5 1
+
+				/* IDSEL 11 */
+				 0x5800 0 0 1 &mpic 6 1
+				 0x5800 0 0 2 &mpic 5 1
+				 >;
 
 		interrupt-parent = <&mpic>;
 		interrupts = <24 2>;
diff --git a/arch/powerpc/boot/dts/tqm8541.dts b/arch/powerpc/boot/dts/tqm8541.dts
index b30f637..f49d091 100644
--- a/arch/powerpc/boot/dts/tqm8541.dts
+++ b/arch/powerpc/boot/dts/tqm8541.dts
@@ -311,7 +311,14 @@
 		interrupt-map = <
 				/* IDSEL 28 */
 				 0xe000 0 0 1 &mpic 2 1
-				 0xe000 0 0 2 &mpic 3 1>;
+				 0xe000 0 0 2 &mpic 3 1
+				 0xe000 0 0 3 &mpic 6 1
+				 0xe000 0 0 4 &mpic 5 1
+
+				/* IDSEL 11 */
+				 0x5800 0 0 1 &mpic 6 1
+				 0x5800 0 0 2 &mpic 5 1
+				 >;
 
 		interrupt-parent = <&mpic>;
 		interrupts = <24 2>;
diff --git a/arch/powerpc/boot/dts/tqm8548-bigflash.dts b/arch/powerpc/boot/dts/tqm8548-bigflash.dts
index 61f25e1..5dbb36e 100644
--- a/arch/powerpc/boot/dts/tqm8548-bigflash.dts
+++ b/arch/powerpc/boot/dts/tqm8548-bigflash.dts
@@ -442,7 +442,14 @@
 		interrupt-map = <
 				/* IDSEL 28 */
 				 0xe000 0 0 1 &mpic 2 1
-				 0xe000 0 0 2 &mpic 3 1>;
+				 0xe000 0 0 2 &mpic 3 1
+				 0xe000 0 0 3 &mpic 6 1
+				 0xe000 0 0 4 &mpic 5 1
+
+				/* IDSEL 11 */
+				 0x5800 0 0 1 &mpic 6 1
+				 0x5800 0 0 2 &mpic 5 1
+				 >;
 
 		interrupt-parent = <&mpic>;
 		interrupts = <24 2>;
diff --git a/arch/powerpc/boot/dts/tqm8548.dts b/arch/powerpc/boot/dts/tqm8548.dts
index 025759c..a050ae4 100644
--- a/arch/powerpc/boot/dts/tqm8548.dts
+++ b/arch/powerpc/boot/dts/tqm8548.dts
@@ -442,7 +442,14 @@
 		interrupt-map = <
 				/* IDSEL 28 */
 				 0xe000 0 0 1 &mpic 2 1
-				 0xe000 0 0 2 &mpic 3 1>;
+				 0xe000 0 0 2 &mpic 3 1
+				 0xe000 0 0 3 &mpic 6 1
+				 0xe000 0 0 4 &mpic 5 1
+
+				/* IDSEL 11 */
+				 0x5800 0 0 1 &mpic 6 1
+				 0x5800 0 0 2 &mpic 5 1
+				 >;
 
 		interrupt-parent = <&mpic>;
 		interrupts = <24 2>;
diff --git a/arch/powerpc/boot/dts/tqm8555.dts b/arch/powerpc/boot/dts/tqm8555.dts
index 95e2873..81bad8c 100644
--- a/arch/powerpc/boot/dts/tqm8555.dts
+++ b/arch/powerpc/boot/dts/tqm8555.dts
@@ -311,7 +311,14 @@
 		interrupt-map = <
 				/* IDSEL 28 */
 				 0xe000 0 0 1 &mpic 2 1
-				 0xe000 0 0 2 &mpic 3 1>;
+				 0xe000 0 0 2 &mpic 3 1
+				 0xe000 0 0 3 &mpic 6 1
+				 0xe000 0 0 4 &mpic 5 1
+
+				/* IDSEL 11 */
+				 0x5800 0 0 1 &mpic 6 1
+				 0x5800 0 0 2 &mpic 5 1
+				 >;
 
 		interrupt-parent = <&mpic>;
 		interrupts = <24 2>;
diff --git a/arch/powerpc/boot/dts/tqm8560.dts b/arch/powerpc/boot/dts/tqm8560.dts
index ff70580..22ec39b 100644
--- a/arch/powerpc/boot/dts/tqm8560.dts
+++ b/arch/powerpc/boot/dts/tqm8560.dts
@@ -382,7 +382,14 @@
 		interrupt-map = <
 				/* IDSEL 28 */
 				 0xe000 0 0 1 &mpic 2 1
-				 0xe000 0 0 2 &mpic 3 1>;
+				 0xe000 0 0 2 &mpic 3 1
+				 0xe000 0 0 3 &mpic 6 1
+				 0xe000 0 0 4 &mpic 5 1
+
+				/* IDSEL 11 */
+				 0x5800 0 0 1 &mpic 6 1
+				 0x5800 0 0 2 &mpic 5 1
+				 >;
 
 		interrupt-parent = <&mpic>;
 		interrupts = <24 2>;
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] tqm85xx: add a quirk for ti1520 PCMCIA bridge
  2010-07-21 20:33 [PATCH 0/2] tqm85xx: enable PCMCIA bridge on ST85xx baseboards Dmitry Eremin-Solenikov
  2010-07-21 20:33 ` [PATCH 1/2] tqm85xx: update PCI interrupt-map attribute Dmitry Eremin-Solenikov
@ 2010-07-21 20:33 ` Dmitry Eremin-Solenikov
  2010-08-04 19:21   ` Kumar Gala
  2010-08-04 19:23   ` Kumar Gala
  2010-07-30 12:33 ` [PATCH 0/2] tqm85xx: enable PCMCIA bridge on ST85xx baseboards Dmitry Eremin-Solenikov
  2 siblings, 2 replies; 7+ messages in thread
From: Dmitry Eremin-Solenikov @ 2010-07-21 20:33 UTC (permalink / raw)
  To: linuxppc-dev

By default ti1520 bridge expects an input clock on CLOCK pin (to control
power chip). However on this boards CLOCK should be generated by PCI1520
itself. Add a quirk that enables internal 16 KHz clock generation on
this pin.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 arch/powerpc/platforms/85xx/tqm85xx.c |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/platforms/85xx/tqm85xx.c b/arch/powerpc/platforms/85xx/tqm85xx.c
index 5b0ab99..8f29bbc 100644
--- a/arch/powerpc/platforms/85xx/tqm85xx.c
+++ b/arch/powerpc/platforms/85xx/tqm85xx.c
@@ -151,6 +151,27 @@ static void tqm85xx_show_cpuinfo(struct seq_file *m)
 	seq_printf(m, "PLL setting\t: 0x%x\n", ((phid1 >> 24) & 0x3f));
 }
 
+static void __init tqm85xx_ti1520_fixup(struct pci_dev *pdev)
+{
+	unsigned int val;
+
+	/* Do not do the fixup on other platforms! */
+	if (!machine_is(tqm85xx))
+		return;
+
+	dev_info(&pdev->dev, "Using TI 1520 fixup on TQM85xx\n");
+
+	/*
+	 * Enable P2CCLK bit in system control register
+	 * to enable CLOCK output to power chip
+	 */
+	pci_read_config_dword(pdev, 0x80, &val);
+	pci_write_config_dword(pdev, 0x80, val | (1 << 27));
+
+}
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_TI, PCI_DEVICE_ID_TI_1520,
+		tqm85xx_ti1520_fixup);
+
 static struct of_device_id __initdata of_bus_ids[] = {
 	{ .compatible = "simple-bus", },
 	{ .compatible = "gianfar", },
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] tqm85xx: enable PCMCIA bridge on ST85xx baseboards.
  2010-07-21 20:33 [PATCH 0/2] tqm85xx: enable PCMCIA bridge on ST85xx baseboards Dmitry Eremin-Solenikov
  2010-07-21 20:33 ` [PATCH 1/2] tqm85xx: update PCI interrupt-map attribute Dmitry Eremin-Solenikov
  2010-07-21 20:33 ` [PATCH 2/2] tqm85xx: add a quirk for ti1520 PCMCIA bridge Dmitry Eremin-Solenikov
@ 2010-07-30 12:33 ` Dmitry Eremin-Solenikov
  2 siblings, 0 replies; 7+ messages in thread
From: Dmitry Eremin-Solenikov @ 2010-07-30 12:33 UTC (permalink / raw)
  To: linuxppc-dev

Hello,

On 7/22/10, Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> wrote:
> Baseboards for tqm85xx modules (STK85xx) bear TI PCI1520 PCMCIA controllers.
> These two patches enables one to fully use this controller in Linux.

I'm sorry, what about these two patches?


-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] tqm85xx: update PCI interrupt-map attribute
  2010-07-21 20:33 ` [PATCH 1/2] tqm85xx: update PCI interrupt-map attribute Dmitry Eremin-Solenikov
@ 2010-08-04 19:21   ` Kumar Gala
  0 siblings, 0 replies; 7+ messages in thread
From: Kumar Gala @ 2010-08-04 19:21 UTC (permalink / raw)
  To: Dmitry Eremin-Solenikov; +Cc: linuxppc-dev


On Jul 21, 2010, at 3:33 PM, Dmitry Eremin-Solenikov wrote:

> Update PCI IRQ mapping on TQM85xx platforms: include INTC and INTD on PCI-X
> slot and add INTA/INTB mapping for PCMCIA bridge.
> 
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> arch/powerpc/boot/dts/tqm8540.dts          |    9 ++++++++-
> arch/powerpc/boot/dts/tqm8541.dts          |    9 ++++++++-
> arch/powerpc/boot/dts/tqm8548-bigflash.dts |    9 ++++++++-
> arch/powerpc/boot/dts/tqm8548.dts          |    9 ++++++++-
> arch/powerpc/boot/dts/tqm8555.dts          |    9 ++++++++-
> arch/powerpc/boot/dts/tqm8560.dts          |    9 ++++++++-
> 6 files changed, 48 insertions(+), 6 deletions(-)

applied to next

- k

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] tqm85xx: add a quirk for ti1520 PCMCIA bridge
  2010-07-21 20:33 ` [PATCH 2/2] tqm85xx: add a quirk for ti1520 PCMCIA bridge Dmitry Eremin-Solenikov
@ 2010-08-04 19:21   ` Kumar Gala
  2010-08-04 19:23   ` Kumar Gala
  1 sibling, 0 replies; 7+ messages in thread
From: Kumar Gala @ 2010-08-04 19:21 UTC (permalink / raw)
  To: Dmitry Eremin-Solenikov; +Cc: linuxppc-dev


On Jul 21, 2010, at 3:33 PM, Dmitry Eremin-Solenikov wrote:

> By default ti1520 bridge expects an input clock on CLOCK pin (to control
> power chip). However on this boards CLOCK should be generated by PCI1520
> itself. Add a quirk that enables internal 16 KHz clock generation on
> this pin.
> 
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> arch/powerpc/platforms/85xx/tqm85xx.c |   21 +++++++++++++++++++++
> 1 files changed, 21 insertions(+), 0 deletions(-)

applied to next

- k

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] tqm85xx: add a quirk for ti1520 PCMCIA bridge
  2010-07-21 20:33 ` [PATCH 2/2] tqm85xx: add a quirk for ti1520 PCMCIA bridge Dmitry Eremin-Solenikov
  2010-08-04 19:21   ` Kumar Gala
@ 2010-08-04 19:23   ` Kumar Gala
  1 sibling, 0 replies; 7+ messages in thread
From: Kumar Gala @ 2010-08-04 19:23 UTC (permalink / raw)
  To: Dmitry Eremin-Solenikov; +Cc: linuxppc-dev


On Jul 21, 2010, at 3:33 PM, Dmitry Eremin-Solenikov wrote:

> By default ti1520 bridge expects an input clock on CLOCK pin (to control
> power chip). However on this boards CLOCK should be generated by PCI1520
> itself. Add a quirk that enables internal 16 KHz clock generation on
> this pin.
> 
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> arch/powerpc/platforms/85xx/tqm85xx.c |   21 +++++++++++++++++++++
> 1 files changed, 21 insertions(+), 0 deletions(-)

applied to next

- k

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-08-04 19:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-21 20:33 [PATCH 0/2] tqm85xx: enable PCMCIA bridge on ST85xx baseboards Dmitry Eremin-Solenikov
2010-07-21 20:33 ` [PATCH 1/2] tqm85xx: update PCI interrupt-map attribute Dmitry Eremin-Solenikov
2010-08-04 19:21   ` Kumar Gala
2010-07-21 20:33 ` [PATCH 2/2] tqm85xx: add a quirk for ti1520 PCMCIA bridge Dmitry Eremin-Solenikov
2010-08-04 19:21   ` Kumar Gala
2010-08-04 19:23   ` Kumar Gala
2010-07-30 12:33 ` [PATCH 0/2] tqm85xx: enable PCMCIA bridge on ST85xx baseboards Dmitry Eremin-Solenikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).