From: Kumar Gala <galak@kernel.crashing.org>
To: Zhang Wei <wei.zhang@freescale.com>
Cc: mporter@kernel.crashing.org, paulus@samba.org,
linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org
Subject: Re: [PATCH 4/5 v3] Add RapidIO support to powerpc architecture.
Date: Fri, 27 Jul 2007 03:22:11 -0500 [thread overview]
Message-ID: <FFA9FE6D-81C8-429C-A0CD-FE356CF98C69@kernel.crashing.org> (raw)
In-Reply-To: <11854393763547-git-send-email-wei.zhang@freescale.com>
On Jul 26, 2007, at 3:42 AM, Zhang Wei wrote:
> This patch adds the RapidIO support to the powerpc architecture.
> Some files are moved from ppc. OF-tree and OF-device supports are
> added.
> New silicons such as MPC8548, MPC8641 with serial RapidIO
> controller are
> all supported.
> Memory driver hardware operations are added.
> Global mport variables are changed to master port private variables.
> Multi master ports are supported.
>
> Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
> ---
> arch/powerpc/Kconfig | 8 +
> arch/powerpc/kernel/Makefile | 1 +
> arch/powerpc/kernel/rio.c | 64 ++
> arch/powerpc/sysdev/Makefile | 1 +
> arch/powerpc/sysdev/fsl_rio.c | 1455 ++++++++++++++++++++++++++++++
> +++++++++++
how much of this moved from ppc85xx_rio.c?
> arch/powerpc/sysdev/fsl_rio.h | 20 +
> 6 files changed, 1549 insertions(+), 0 deletions(-)
> create mode 100644 arch/powerpc/kernel/rio.c
> create mode 100644 arch/powerpc/sysdev/fsl_rio.c
> create mode 100644 arch/powerpc/sysdev/fsl_rio.h
>
> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
> index 00099ef..45f32f1 100644
> --- a/arch/powerpc/Kconfig
> +++ b/arch/powerpc/Kconfig
> @@ -492,6 +492,14 @@ source "drivers/pci/Kconfig"
>
> source "drivers/pcmcia/Kconfig"
>
> +config RAPIDIO
> + bool "RapidIO support" if MPC8540 || MPC8560 || MPC8641 || MPC8548
> + help
> + If you say Y here, the kernel will include drivers and
> + infrastructure code to support RapidIO interconnect devices.
why not make this depend on something like HAS_RAPIDIO and let the
boards select HAS_RAPIDIO if they have it
> +
> +source "drivers/rapidio/Kconfig"
> +
> source "drivers/pci/hotplug/Kconfig"
>
> endmenu
> diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/
> Makefile
> index 42c42ec..02d4100 100644
> --- a/arch/powerpc/kernel/Makefile
> +++ b/arch/powerpc/kernel/Makefile
> @@ -70,6 +70,7 @@ pci64-$(CONFIG_PPC64) += pci_64.o pci_dn.o isa-
> bridge.o
> pci32-$(CONFIG_PPC32) := pci_32.o
> obj-$(CONFIG_PCI) += $(pci64-y) $(pci32-y) pci-common.o
> obj-$(CONFIG_PCI_MSI) += msi.o
> +obj-$(CONFIG_RAPIDIO) += rio.o
should probably live in sysdev/rio.c
> kexec-$(CONFIG_PPC64) := machine_kexec_64.o
> kexec-$(CONFIG_PPC32) := machine_kexec_32.o
> obj-$(CONFIG_KEXEC) += machine_kexec.o crash.o $(kexec-y)
> diff --git a/arch/powerpc/kernel/rio.c b/arch/powerpc/kernel/rio.c
> new file mode 100644
> index 0000000..8d41e93
> --- /dev/null
> +++ b/arch/powerpc/kernel/rio.c
> @@ -0,0 +1,64 @@
> +/*
> + * RapidIO PowerPC support
> + *
> + * Copyright (C) 2007 Freescale Semiconductor, Inc. All rights
> reserved.
> + * Zhang Wei <wei.zhang@freescale.com>, Jun 2007
> + *
> + * 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.
> + *
> + * New RapidIO peer-to-peer network initialize with of-device
> supoort.
> + *
> + */
> +
> +#include <linux/init.h>
> +#include <linux/kernel.h>
> +#include <linux/rio.h>
> +
> +#include <asm/rio.h>
> +#include <asm/of_device.h>
> +#include <asm/of_platform.h>
> +
> +#include <../sysdev/fsl_rio.h>
> +
> +
> +/* The probe function for RapidIO peer-to-peer network.
> + */
> +static int __devinit of_rio_rpn_probe(struct of_device *dev,
> + const struct of_device_id *match)
> +{
> + int rc;
> + printk(KERN_INFO "Setting up RapidIO peer-to-peer network %s\n",
> + dev->node->full_name);
> +
> + rc = fsl_rio_setup(dev);
> + if (rc)
> + goto out;
> +
> + /* Enumerate all registered ports */
> + rc = rio_init_mports();
> +out:
> + return rc;
> +};
> +
> +static struct of_device_id of_rio_rpn_ids[] = {
> + {
> + .compatible = "fsl,rapidio-delta",
> + },
> + {},
> +};
> +
> +static struct of_platform_driver of_rio_rpn_driver = {
> + .name = "of-rio",
> + .match_table = of_rio_rpn_ids,
> + .probe = of_rio_rpn_probe,
> +};
> +
> +static __init int of_rio_rpn_init(void)
> +{
> + return of_register_platform_driver(&of_rio_rpn_driver);
> +}
next prev parent reply other threads:[~2007-07-27 8:21 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-26 8:42 [PATCH 0/5 v3] Porting RapidIO driver from ppc to powerpc architecture and adding memory mapped RapidIO driver Zhang Wei
2007-07-26 8:42 ` [PATCH 1/5 v3] Add the explanation and a sample of RapidIO OF node to the document of booting-without-of.txt file Zhang Wei
2007-07-26 8:42 ` [PATCH 2/5 v3] Add RapidIO OF-node to the MPC8641HPCN board dts file Zhang Wei
2007-07-26 8:42 ` [PATCH 3/5 v3] Add the platform device support with RapidIO to MPC8641HPCN platform Zhang Wei
2007-07-26 8:42 ` [PATCH 4/5 v3] Add RapidIO support to powerpc architecture Zhang Wei
2007-07-26 8:42 ` [PATCH 5/5 v3] Add the memory management driver to RapidIO Zhang Wei
2008-01-24 7:01 ` Kumar Gala
2007-07-27 8:12 ` [PATCH 4/5 v3] Add RapidIO support to powerpc architecture Stephen Rothwell
2007-07-27 8:22 ` Kumar Gala [this message]
2007-07-27 9:03 ` Zhang Wei-r63237
2007-07-27 7:54 ` [PATCH 3/5 v3] Add the platform device support with RapidIO to MPC8641HPCN platform Stephen Rothwell
2007-07-29 13:56 ` Arnd Bergmann
2007-07-30 8:26 ` Zhang Wei-r63237
2007-07-27 8:51 ` [PATCH 1/5 v3] Add the explanation and a sample of RapidIO OF node to the document of booting-without-of.txt file Kumar Gala
2007-07-27 9:12 ` Zhang Wei-r63237
2007-07-31 16:15 ` Segher Boessenkool
2007-07-31 16:19 ` Segher Boessenkool
2007-07-27 8:28 ` [PATCH 0/5 v3] Porting RapidIO driver from ppc to powerpc architecture and adding memory mapped RapidIO driver Kumar Gala
2007-10-29 19:38 ` Phil Terry
2007-10-29 20:30 ` Kumar Gala
2007-10-30 8:40 ` Zhang Wei-r63237
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FFA9FE6D-81C8-429C-A0CD-FE356CF98C69@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=mporter@kernel.crashing.org \
--cc=paulus@samba.org \
--cc=wei.zhang@freescale.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox