Skip to contentSkip to conversation

Add support for MPC832x MDS evaluation board

PATCH In review Kim Phillips 2 participants 2 messages Oct 1, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Add support for MPC832x MDS evaluation board

Add support for MPC832x MDS evaluation board.

This patch depends on the 8360+QE patches by Leo Li.

The MPC832x processors (MPC8323E, MPC8323, MPC8321E, MPC8321) sport the e300c2 core plus a QUICC Engine (QE). This patch adds support for the 832x MDS evaluation board.

The 832x MDS dts and defconfig files are pending more tests.

---
 arch/powerpc/Kconfig                      |    2 
 arch/powerpc/platforms/83xx/Kconfig       |   13 ++
 arch/powerpc/platforms/83xx/Makefile      |    1 
 arch/powerpc/platforms/83xx/mpc832x_mds.c |  215 +++++++++++++++++++++++++++++
 arch/powerpc/platforms/83xx/mpc832x_mds.h |   19 +++
 5 files changed, 249 insertions(+), 1 deletions(-)
arch/powerpc/Kconfig +1 -1
index 0402209..2ae7083 100644
@@ -357,7 +357,7 @@ endchoice
 
 config QUICC_ENGINE
 	bool
-	depends on PPC_MPC836x
+	depends on PPC_MPC836x || PPC_MPC832x
 	default y
 	help
 	  The QE(QUICC Engine) is a new generation of coprocessor on
arch/powerpc/platforms/83xx/Kconfig +13 -0
index 83dfded..7edb6b4 100644
@@ -5,6 +5,13 @@ choice
 	prompt "Machine Type"
 	default MPC834x_SYS
 
+config MPC832x_MDS
+	bool "Freescale MPC832x MDS"
+	select DEFAULT_UIMAGE
+	select QUICC_ENGINE
+	help
+	  This option enables support for the MPC832x MDS evaluation board.
+
 config MPC834x_SYS
 	bool "Freescale MPC834x SYS"
 	select DEFAULT_UIMAGE
@@ -34,6 +41,12 @@ config MPC8360E_PB
 
 endchoice
 
+config PPC_MPC832x
+	bool
+	select PPC_UDBG_16550
+	select PPC_INDIRECT_PCI
+	default y if MPC832x_MDS
+
 config MPC834x
 	bool
 	select PPC_UDBG_16550
arch/powerpc/platforms/83xx/Makefile +1 -0
index 0da2d0d..5cf1ac0 100644
@@ -3,6 +3,7 @@ # Makefile for the PowerPC 83xx linux ke
 #
 obj-y				:= misc.o
 obj-$(CONFIG_PCI)		+= pci.o
+obj-$(CONFIG_MPC832x_MDS)	+= mpc832x_mds.o
 obj-$(CONFIG_MPC834x_SYS)	+= mpc834x_sys.o
 obj-$(CONFIG_MPC834x_ITX)	+= mpc834x_itx.o
 obj-$(CONFIG_MPC8360E_PB)	+= mpc8360e_pb.o
arch/powerpc/platforms/83xx/mpc832x_mds.c new file +215 -0

215 lines not on this page · raw message

arch/powerpc/platforms/83xx/mpc832x_mds.h new file +19 -0
new file mode 100644
index 0000000..a495889
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) Freescale Semicondutor, Inc. 2006. All rights reserved.
+ *
+ * Description:
+ * MPC832x MDS board specific header.
+ *
+ * This program is free software; you can redistribute  it and/or modify it
+ * under  the terms of  the GNU General  Public License as published by the
+ * Free Software Foundation;  either version 2 of the  License, or (at your
+ * option) any later version.
+ *
+ */
+
+#ifndef __MACH_MPC832x_MDS_H__
+#define __MACH_MPC832x_MDS_H__
+
+extern u8 *get_bcsr(void);
+
+#endif				/* __MACH_MPC832x_MDS_H__ */
Signature · 1 line
1.4.2.1
#1 lore raw
Quoted 4 lines

-----Original Message-----
From:
[email protected] [mailto:linuxppc-dev-bounces+joakim.tjernlund=transmode.se@ozl

abs.org] On Behalf Of Kim Phillips

Quoted 7 lines

Sent: den 1 oktober 2006 04:55
To: [email protected]
Subject: [PATCH 2/2] Add support for MPC832x MDS evaluation board

Add support for MPC832x MDS evaluation board.

This patch depends on the 8360+QE patches by Leo Li.

Thank you, I have been struggling with adapting Leo's earlier 8360 patches
on top of 2.6.17 but could not get UCC2 and UCC4(only UCC3 worked) to work
as network i/f's.
Hopefully I will get some time next week to try this out on our MPC832x MDS evaluation board and/or our custom board.

I hope you will be able to address the of_device conversation problem you mentioned until then.

Jocke