Skip to contentSkip to conversation

POWERPC: mpc82xx merge: board-specific/platform stuff(resend)

PATCH In review Vitaly Bordug 2 participants 2 messages Sep 22, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 POWERPC: mpc82xx merge: board-specific/platform stuff(resend)

This intruduces 82xx family in arch/powerpc/platforms,
and has all the board-specific code to represent regression-less transaction from ppc. The functionality is apparently the same, including PCI controller.

---

 arch/powerpc/platforms/82xx/Kconfig       |   21 +
 arch/powerpc/platforms/82xx/Makefile      |    5 
 arch/powerpc/platforms/82xx/m82xx_pci.h   |   19 +
 arch/powerpc/platforms/82xx/mpc82xx.c     |  111 +++++
 arch/powerpc/platforms/82xx/mpc82xx_ads.c |  661 +++++++++++++++++++++++++++++
 arch/powerpc/platforms/82xx/pq2ads.h      |   67 +++
 6 files changed, 884 insertions(+), 0 deletions(-)
arch/powerpc/platforms/82xx/Kconfig new file +21 -0
new file mode 100644
index 0000000..47d841e
@@ -0,0 +1,21 @@
+menu "Platform support"
+       depends on PPC_82xx
+
+choice
+       prompt "Machine Type"
+       default MPC82xx_ADS
+
+config MPC82xx_ADS
+       bool "Freescale MPC82xx ADS"
+       select DEFAULT_UIMAGE
+       select PQ2ADS
+       select 8272
+       select 8260
+       select CPM2
+       select FSL_SOC
+       help
+         This option enables support for the MPC8272 ADS board
+
+endchoice
+
+endmenu
arch/powerpc/platforms/82xx/Makefile new file +5 -0
new file mode 100644
index 0000000..d9fd4c8
@@ -0,0 +1,5 @@
+#
+# Makefile for the PowerPC 82xx linux kernel.
+#
+obj-$(CONFIG_PPC_82xx) += mpc82xx.o
+obj-$(CONFIG_MPC82xx_ADS) += mpc82xx_ads.o
arch/powerpc/platforms/82xx/m82xx_pci.h new file +19 -0
new file mode 100644
index 0000000..9cd8893
@@ -0,0 +1,19 @@
+#ifndef _PPC_KERNEL_M82XX_PCI_H
+#define _PPC_KERNEL_M82XX_PCI_H
+
+/*
+ * 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.
+ */
+
+#include <asm/m8260_pci.h>
+
+#define SIU_INT_IRQ1   ((uint)0x13 + CPM_IRQ_OFFSET)
+
+#ifndef _IO_BASE
+#define _IO_BASE isa_io_base
+#endif
+
+#endif				/* _PPC_KERNEL_M8260_PCI_H */
arch/powerpc/platforms/82xx/mpc82xx.c new file +111 -0

111 lines not on this page · raw message

arch/powerpc/platforms/82xx/mpc82xx_ads.c new file +661 -0

661 lines not on this page · raw message

arch/powerpc/platforms/82xx/pq2ads.h new file +67 -0

67 lines not on this page · raw message

Acked-by on v1 1/1
#1 lore raw

So, like, the other day Vitaly Bordug mumbled:

Quoted 7 lines

This intruduces 82xx family in arch/powerpc/platforms,
and has all the board-specific code to represent regression-less transaction from ppc. The functionality is apparently the same, including PCI controller.

Excellent! Thanks!

arch/powerpc/platforms/82xx/mpc82xx_ads.c line 628

Quoted 13 lines

+++ b/arch/powerpc/platforms/82xx/mpc82xx_ads.c

arch/powerpc/platforms/82xx/mpc82xx_ads.c new file +11 -0
+/*
+ * Called very early, device-tree isn't unflattened
+ */
+static int __init mpc82xx_ads_probe(void)
+{
+	/* We always match for now, eventually we should look at
+	 * the flat dev tree to ensure this is the board we are
+	 * supposed to run on
+	 */
+	return 1;
+}

Please implement this routine fully. Something down this line:

    {
        unsigned long root = of_get_flat_dt_root();

        if (of_flat_dt_is_compatible(root, "mpc82xx"))
            return 1;        /* Looks good */

        return 0;
    }

And with that, ACK me:

Thanks,
jdl