public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] PPC: Some PCI generalization in the global_data structure.
@ 2008-07-13 12:06 Matvejchikov Ilya
  2008-07-13 15:02 ` Wolfgang Denk
  2008-07-13 17:20 ` Wolfgang Denk
  0 siblings, 2 replies; 4+ messages in thread
From: Matvejchikov Ilya @ 2008-07-13 12:06 UTC (permalink / raw)
  To: u-boot

The global_data structure has no well defined method of the PCI clocks
and other PCI related variables declaration. This patch adds initial
support for the generalized method based on CONFIG_PCI usage. At present
it only affects when CONFIG_MPC8272 or CONFIG_MPC8272_FAMILY defined.

Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
---
 include/asm-ppc/global_data.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/asm-ppc/global_data.h b/include/asm-ppc/global_data.h
index c5ac658..ac3e719 100644
--- a/include/asm-ppc/global_data.h
+++ b/include/asm-ppc/global_data.h
@@ -42,6 +42,11 @@ typedef	struct	global_data {
 	unsigned long	baudrate;
 	unsigned long	cpu_clk;	/* CPU clock in Hz! */
 	unsigned long	bus_clk;
+#ifdef CONFIG_PCI
+#if defined(CONFIG_MPC8272) || defined(CONFIG_MPC8272_FAMILY)
+	u32		pci_clk;
+#endif
+#endif
 #if defined(CONFIG_8xx)
 	unsigned long	brg_clk;
 #endif
-- 
1.5.6.2

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

end of thread, other threads:[~2008-07-13 17:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-13 12:06 [U-Boot-Users] [PATCH] PPC: Some PCI generalization in the global_data structure Matvejchikov Ilya
2008-07-13 15:02 ` Wolfgang Denk
2008-07-13 16:26   ` Matvejchikov Ilya
2008-07-13 17:20 ` Wolfgang Denk

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