mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] DA923RC: add PCI support
@ 2013-11-13 18:05 Renaud Barbier
  2013-11-13 18:05 ` [PATCH 1/2] ppc: mpc85xx: add fsl,mpic node frequency property Renaud Barbier
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Renaud Barbier @ 2013-11-13 18:05 UTC (permalink / raw)
  To: barebox

This patch set adds the fsl,mpic node frequency property
needed by Linux version 3.x for the PCI driver to function.
Also it was noticed that the board device reset was held
low preventing full probing of the PCI bus.

Renaud Barbier (2):
  ppc: mpc85xx: add fsl,mpic node frequency property
  ppc: DA923RC: update board initialisation

 arch/ppc/boards/geip-da923rc/da923rc.c          |    4 ++--
 arch/ppc/mach-mpc85xx/fdt.c                     |    5 +++++
 arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h |    3 +++
 3 files changed, 10 insertions(+), 2 deletions(-)


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 1/2] ppc: mpc85xx: add fsl,mpic node frequency property
  2013-11-13 18:05 [PATCH 0/2] DA923RC: add PCI support Renaud Barbier
@ 2013-11-13 18:05 ` Renaud Barbier
  2013-11-13 18:05 ` [PATCH 2/2] ppc: DA923RC: update board initialisation Renaud Barbier
  2013-11-18  9:51 ` [PATCH 0/2] DA923RC: add PCI support Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Renaud Barbier @ 2013-11-13 18:05 UTC (permalink / raw)
  To: barebox

The clock frequency property of the device tree node fsl,mpic is
added as it is needed by the PCI driver to function in newer
Linux version.

Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
---
 arch/ppc/mach-mpc85xx/fdt.c                     |    5 +++++
 arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/ppc/mach-mpc85xx/fdt.c b/arch/ppc/mach-mpc85xx/fdt.c
index fd919a5..b1da144 100644
--- a/arch/ppc/mach-mpc85xx/fdt.c
+++ b/arch/ppc/mach-mpc85xx/fdt.c
@@ -132,6 +132,11 @@ static int fdt_cpu_setup(struct device_node *blob, void *unused)
 		node = of_find_compatible_node(node, NULL, "ns16550");
 	}
 
+	node = of_find_compatible_node(blob, NULL, "fsl,mpic");
+	if (node)
+		of_property_write_u32(node, "clock-frequency",
+				sysinfo.freqSystemBus);
+
 	fdt_stdout_setup(blob);
 
 	return 0;
diff --git a/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h b/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h
index ff3a312..d5a9c97 100644
--- a/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h
+++ b/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h
@@ -158,5 +158,8 @@
 #define I2C1_BASE_ADDR		(CFG_IMMR + 0x3000)
 #define I2C2_BASE_ADDR		(CFG_IMMR + 0x3100)
 
+/* Global Timer Registers */
+#define MPC8xxx_PIC_TFRR_OFFSET		0x10F0
+
 #define PCI1_BASE_ADDR		(CFG_IMMR + MPC85xx_PCI1_OFFSET)
 #endif /*__IMMAP_85xx__*/
-- 
1.7.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 2/2] ppc: DA923RC: update board initialisation
  2013-11-13 18:05 [PATCH 0/2] DA923RC: add PCI support Renaud Barbier
  2013-11-13 18:05 ` [PATCH 1/2] ppc: mpc85xx: add fsl,mpic node frequency property Renaud Barbier
@ 2013-11-13 18:05 ` Renaud Barbier
  2013-11-18  9:51 ` [PATCH 0/2] DA923RC: add PCI support Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Renaud Barbier @ 2013-11-13 18:05 UTC (permalink / raw)
  To: barebox

Pull the board device reset GPIO pin high as this prevents
PCI bus probing.
The function da923rc_board_init_r is called at the postcore
initcall level so that the udelay function can take advantage
of the core initialisation.

Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
---
 arch/ppc/boards/geip-da923rc/da923rc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/ppc/boards/geip-da923rc/da923rc.c b/arch/ppc/boards/geip-da923rc/da923rc.c
index 99d1393..976aa8d 100644
--- a/arch/ppc/boards/geip-da923rc/da923rc.c
+++ b/arch/ppc/boards/geip-da923rc/da923rc.c
@@ -195,7 +195,7 @@ static int da923rc_board_init_r(void)
 		gpio_set_value(1, 1);
 		/* De-assert Board reset */
 		udelay(1000);
-		gpio_set_value(0, 0);
+		gpio_set_value(0, 1);
 	}
 
 	/* Enable PCI error reporting */
@@ -209,4 +209,4 @@ static int da923rc_board_init_r(void)
 	return 0;
 }
 
-core_initcall(da923rc_board_init_r);
+postcore_initcall(da923rc_board_init_r);
-- 
1.7.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 0/2] DA923RC: add PCI support
  2013-11-13 18:05 [PATCH 0/2] DA923RC: add PCI support Renaud Barbier
  2013-11-13 18:05 ` [PATCH 1/2] ppc: mpc85xx: add fsl,mpic node frequency property Renaud Barbier
  2013-11-13 18:05 ` [PATCH 2/2] ppc: DA923RC: update board initialisation Renaud Barbier
@ 2013-11-18  9:51 ` Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2013-11-18  9:51 UTC (permalink / raw)
  To: Renaud Barbier; +Cc: barebox

On Wed, Nov 13, 2013 at 06:05:32PM +0000, Renaud Barbier wrote:
> This patch set adds the fsl,mpic node frequency property
> needed by Linux version 3.x for the PCI driver to function.
> Also it was noticed that the board device reset was held
> low preventing full probing of the PCI bus.
> 
> Renaud Barbier (2):
>   ppc: mpc85xx: add fsl,mpic node frequency property
>   ppc: DA923RC: update board initialisation

Applied, thanks

Sascha

> 
>  arch/ppc/boards/geip-da923rc/da923rc.c          |    4 ++--
>  arch/ppc/mach-mpc85xx/fdt.c                     |    5 +++++
>  arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h |    3 +++
>  3 files changed, 10 insertions(+), 2 deletions(-)
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2013-11-18  9:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-13 18:05 [PATCH 0/2] DA923RC: add PCI support Renaud Barbier
2013-11-13 18:05 ` [PATCH 1/2] ppc: mpc85xx: add fsl,mpic node frequency property Renaud Barbier
2013-11-13 18:05 ` [PATCH 2/2] ppc: DA923RC: update board initialisation Renaud Barbier
2013-11-18  9:51 ` [PATCH 0/2] DA923RC: add PCI support Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox